In an Attemp to address DST2007 changes, I’m trying to deploy/install the TZMove.exe utility (needed to updated Outlook meetings) to all workstations. After the utility has been installed, it needs to be run with the current (active) user.
I have tried using the RunAsCurrenUser.exe command available in BigFix, this has worked great in windows XP but when trying to run this same command in MS Win2k i get the following error logged in the events log:
… “Windows cannot unload your registry file”. If you have a roaming profile your settings are not replicated
the code that I’m using for both XP and 2k is the following:
continue if { (size of it = 8418388 and sha1 of it = “c81ef191d56c1f4454193ecd8d6f524e578aeb62”) of file “big1.tmp” of folder “__Download”}
extract big1.tmp
waithidden “__Download\tzmove.exe” /quiet
waithidden __Download\RunAsCurrentUser.exe “{value of variable “ProgramFiles” of enviroment}\Microsoft Office\Office12\Office Outlook Time Zone Data Update Tool\tzmove.exe” /quiet
big1.tmp contains TZMove.exe and RunAsCurrentUser.exe
This has worked ok in WinXp but it has not worked so far in Win2k… Any help will be highly appreciated.
I haven’t ever seen that error before… My guess is that something about the way that the local users registry branch is loaded by RunAsCurrentUser.exe on Win2k. Unfortunately, I don’t have a good solution for you…
If you run the tool manually on Win2k, does it work?
I have 4 things for you to explore. These are unlikely to lead you to your point of failure but worth looking at.
do you have
exists current user
as part of your relevance for your fixlet?
When you use runascurrentuser.exe this should be part of your relevance.
is this failing on all your Windows 2000 machines or just some of them?
are you sure that the system account on Windows has the environment variable
ProgramFiles
?
The environment variables for the system account are different than normal users. An easy way to check this is to create an analysis with the property:
exists value of variable “ProgramFiles” of enviroment
on a machine that is failing, log on as a different user than the one that got the failure, open regedit and try to load the registry hive of the user that got the failure. If it fails, reboot and try again.
do you have exists current user as part of your relevance for your fixlet?
When you use runascurrentuser.exe this should be part of your relevance.
A. The relevance exists, however even when running the RunAsCurrentUser.exe manually, it fails.
is this failing on all your Windows 2000 machines or just some of them?
A. so far 6 out of 6 win 2k stations have this error.
are you sure that the system account on Windows has the environment variable ProgramFiles?
The environment variables for the system account are different than normal users. An easy way to check this is to create an analysis with the property: exists value of variable “ProgramFiles” of enviroment .
A. Yes, getting as a result “C:\Program Files” when running the analysis.
on a machine that is failing, log on as a different user than the one that got the failure, open regedit and try to load the registry hive of the user that got the failure. If it fails, reboot and try again.
A. I was able to load the Registry Hive of another user running regedt32 / Load Hive. Access was successful.
…
Have you guys had problems running any program and/or file with the RunAsCurrentUser.exe on Win2K before?
(name of operating system = “Win95” OR name of operating system = “Win98” OR name of operating system = “WinME” OR name of operating system = “WinNT” OR name of operating system = “Win2000” OR name of operating system = “WinXP” OR name of operating system = “Win2003”) AND (exists regapp “Outlook.exe”) AND ((not exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{95120000-0038-0409-0000-0000000FF1CE}” of registry) OR (not exists value “DisplayName” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{95120000-0038-0409-0000-0000000FF1CE}” of registry) OR (value “DisplayName” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{95120000-0038-0409-0000-0000000FF1CE}” of registry as string != “Time Zone Data Update Tool for Microsoft Office Outlook”)) and exists current userActions