Scripting Windows 7 x64 Registry Check Fails
This script succeeds when running on a Windows XP SP3 machine but throws a "did not succeed: (2)" when running on a Windows 7 SP1 x64 box. Any thoughts? KACE Agent: 5.3.47657
Task 1:
Verify that “HKLM\SOFTWARE\CRW!RUNTIME_VERSION†is equal to “10.6.0040â€Â.
Output Log
Running as: SYSTEM
Checking if registry 'HKEY_LOCAL_MACHINE\SOFTWARE\CRW' value 'RUNTIME_VERSION' is equal to '10.6.0040' did not succeed: (2)
Activity Log
Checking if registry 'HKEY_LOCAL_MACHINE\SOFTWARE\CRW' value 'RUNTIME_VERSION' is equal to '10.6.0040'
Task 1:
Verify that “HKLM\SOFTWARE\CRW!RUNTIME_VERSION†is equal to “10.6.0040â€Â.
Output Log
Running as: SYSTEM
Checking if registry 'HKEY_LOCAL_MACHINE\SOFTWARE\CRW' value 'RUNTIME_VERSION' is equal to '10.6.0040' did not succeed: (2)
Activity Log
Checking if registry 'HKEY_LOCAL_MACHINE\SOFTWARE\CRW' value 'RUNTIME_VERSION' is equal to '10.6.0040'
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
mramsdell
12 years ago
Posted by:
cmccracken
12 years ago
Posted by:
joncutler
12 years ago
I'm running into a similar issue and it's due to the way that Microsoft handles (protects?) access/display of the registry under x64 Windows (see http://support.microsoft.com/kb/896459 ). See if the keys you are looking for are available under HKLM\Software\Wow6432Node\... I am trying to work through an issue with CustomInventory rules (see http://www.appdeploy.com/messageboards/fb.asp?m=89448 ) and it sounds like you may be running into a similar challenge.
Posted by:
afincher
12 years ago
Ok- what I'm really trying to do is fix that Userinit issue that the KACE agent causes - where the My Documents opens on log in. I was just using the "HKLM\SOFTWARE\CRW!RUNTIME_VERSION" key as a test because I know it exists on our different environments.
I don't just want to blindly go about updating the registry on computers for the off chance that the computer already has a modified Userinit key.
It just seems like the registry features of scripting do not work properly on Windows 7 x64 SP1 machines (and possible other x64 machines).
Does anyone have this (or any registry items) actually working on x64 machines?
I don't just want to blindly go about updating the registry on computers for the off chance that the computer already has a modified Userinit key.
It just seems like the registry features of scripting do not work properly on Windows 7 x64 SP1 machines (and possible other x64 machines).
Does anyone have this (or any registry items) actually working on x64 machines?
Posted by:
afincher
12 years ago
UPDATE... I think maybe I misunderstood how KACE reported registry keys.
"did not succeed: (0)" must mean that it could not find the key, not that an error occurred.
Anyways, this appears to be working with mramsdell's HKLM64 recommendation.
Verify
Verify that “HKLM64\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!Userinit†is equal to “C:\Windows\system32\userinit.exe,C:\Windows\System32\KUsrInit.exe,â€Â.
On Success
Set “HKLM64\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!Userinit†to “C:\Windows\System32\KUsrInit.exe,â€Â.
"did not succeed: (0)" must mean that it could not find the key, not that an error occurred.
Anyways, this appears to be working with mramsdell's HKLM64 recommendation.
Verify that “HKLM64\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!Userinit†is equal to “C:\Windows\system32\userinit.exe,C:\Windows\System32\KUsrInit.exe,â€Â.
On Success
Set “HKLM64\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!Userinit†to “C:\Windows\System32\KUsrInit.exe,â€Â.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.