RunAsCurrentUser.exe issue - DST 2007

(imported topic written by HGA8191)

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:

Download http://Server:port/Uploads/c81ef191d56c1f4454193ecd8d6f524e578aeb62/big1.tmp

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.

(imported comment written by BenKus)

Hey HGA81,

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?

Ben

(imported comment written by brolly3391)

Hello HGA81,

I have 4 things for you to explore. These are unlikely to lead you to your point of failure but worth looking at.

  1. 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.

  1. is this failing on all your Windows 2000 machines or just some of them?

  2. 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

  1. 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.

Cheers,

Brolly

(imported comment written by HGA8191)

Hi Guys, thanks for the quick response…

Answers to your questions:

  1. 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.

  1. 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.

  1. 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.

  1. 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?

Thanks!

(imported comment written by mmurty)

(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

Action1

download http://x.x.x.x:52311/Uploads/263157f2816c99b837354462b4a36c75cbcb9416/big7A.tmp

continue if { (size of it = 8438220 and sha1 of it = “263157f2816c99b837354462b4a36c75cbcb9416”) of file “big7A.tmp” of folder “__Download”}

extract big7A.tmp

wait __Download\tzmove.exe /quiet

wait __Download\RunAsCurrentUser-2.0.exe --w “C:\Program Files\Microsoft Office\Office12\Office Outlook Time Zone Data Update Tool\tzmove.exe” /quiet

Quite generic. Can be modifed. Working as is.

Madhu

(imported comment written by birg91)

big fix has been removed from my computor how do i get it back on???