In GP we have it set that all new profiles do not use cached exchange mode. We still have several existing users that are running in cached mode. We don't have a lot of travelers so we don't really have a need for it. According to several posts the registry entry HKCU\Software\Microsoft\WindowsNT\CurrentVersion\Messaging Subsystem\<profile>\13dblahblah\00036601 is supposed to have the registry entry. Now I need a way to try and change it via login script. I have a start to enumerate what the name of the profile is and go from there, but it just doesn't seem to be working as the profiles keep coming up greyed out and Cached Exchange Mode enabled. Here is what I have so far:
 Code:
$SO=SETOPTION("Explicit", "ON")
$SO=SETOPTION("NoMacrosInStrings", "ON")
$SO=SetOption("NoVarsInStrings", "ON")
Break ON

DIM $rc,$key,$key2,$keyarr[],$index

$index = 0
$key2 = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\"
While @ERROR = 0
	$key = EnumKey($key2,$index)
	If $key <> ""
		? "Key found:" +$key
		ReDIM Preserve $keyarr[$index]
		$keyarr[$index] = $key
		$index = $index + 1
	EndIf
	$rc = WriteValue($key2+""+$keyarr[$index]+"\13dbb0c8aa05101a9bb000aa002fc45a","00036601","04000000","REG_SZ")	
Loop