/build/static/layout/Breadcrumb_cap_w.png

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'

0 Comments   [ + ] Show comments

Answers (5)

Posted by: mramsdell 12 years ago
Orange Senior Belt
2
I had this same issue. the issues is that you are querying a 64 bit registry from a 32 bit system(kbox). try HKLM64\SOFTWARE\ instead of HKLM\SOFTWARE\
Posted by: cmccracken 12 years ago
Orange Senior Belt
0
On the x64 PC, is the entry under HKLM\Software\CRW or HKLM\Software\Wow6432Node?

Casey
Posted by: joncutler 12 years ago
Blue Belt
0
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
Senior Purple Belt
0
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?
Posted by: afincher 12 years ago
Senior Purple Belt
0
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,”.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ