here is a snippet that may help...

code:
 
$MsgKey = "$HKCUSMWNTCV\Windows Messaging Subsystem\Profiles"
$MProfile = ReadValue($MsgKey, "DefaultProfile") ;Read the current default profile
IF $MProfile = "" ;If there is not default profile, create the profile using the PRF
IF $MProfile = "" $MProfile = @userid endif

_________________________
How to ask questions the smart way <-----------> Before you ask