Code:
Is there a list of all the permitations of 'equal/not equal to' because I want it to email if the key does not equal 'Outlook'?


I think you mis-understand the registry keys.

Within "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles" you can have many profilses, not just one. Most people will only have one on their work machine, but they may have more. To check what keys are present you have to enumerate them.

There is a value which defines which (if any) of the messaging profiles is the default.

The important thing to note is that the profile name is not fixed and is not significant - it could be "Outlook" or "Billy's mail" or just about anything.

If you want to check the default profile here is an example of how you might do it:
 Code:
$sProfileKey="HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
$sDefaultProfileValue="DefaultProfile"
$sExpectedProfile="Default Outlook Profile"

$sProfile=ReadValue($sProfileKey,$sDefaultProfileValue)

If $sProfile=$sExpectedProfile
	"Your default messaging profile matches the expected '"+$sExpectedProfile+"'"+@CRLF
Else
	"Your default messaging profile is '"+$sProfile+"' which does not match the expected '"+$sExpectedProfile+"'"+@CRLF
EndIf


You will get better answers from us if you explain what you are checking for and why, otherwise we may send you off down an inappropriate route.