Page 1 of 1 1
Topic Options
#185489 - 2008-02-19 11:58 PM Cached Exchange Mode
DStelz Offline
Getting the hang of it

Registered: 2007-01-26
Posts: 72
Loc: Green Bay, WI
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 

Top
#185501 - 2008-02-20 09:59 AM Re: Cached Exchange Mode [Re: DStelz]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
You shouldn't need to do this if you are using GPOs.

From this MS article:
 Quote:
It's important to be aware that, despite its name, the Disable Cached Exchange Mode on new profiles policy setting just described applies to existing as well as new profiles.

Also note that in the user dialog box where this setting is first displayed, the setting value shown is determined from the user profile, not from the policy setting.


Note that final sentence - the GUI will show the value in the user's profile, not the value which is actually in effect and is taken from your GPO.

Top
#185514 - 2008-02-20 08:18 PM Re: Cached Exchange Mode [Re: Richard H.]
DStelz Offline
Getting the hang of it

Registered: 2007-01-26
Posts: 72
Loc: Green Bay, WI
So in essence, if the GPO says to Disabled Cached Exchange Mode on new profiles, that's what it's going to do for all profiles, even though under the GUI it says that it's enabled?? Microsoft and confusion sometimes go together very well. Could just be my brain too that's confused.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 735 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.052 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org