I´m gonna generate Outlook profiles for users who hasn´t got one. I´m gonna check for the existance of the DefaultProfile value. Is this a secure way determine if the value exist?
Code:
 $Outlook = ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsytem\Profiles", "DefaultProfile")
If not @ERROR = 0
command to generate Outlook Profile
Endif