/build/static/layout/Breadcrumb_cap_w.png

False Positive on Registry Settings

Hello,

I am trying to run a script to change a registry value on the K1000 through scripting. I have ran a few scripts already without any issues, however, I seem to be having issues changing a particular registry value. I receive a false-positive when running the script. The logs says the script succeeded; however, the values remain unchanged on the target machines.

Here is what I have in the script:

Verify

  1. Verify that “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update”exists.
  2. Verify that “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update!AUOptions” exists.

On Success

  1. Set “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update!AUOptions” to“0x00000001”.
 

Here is the log for the script:

Output Log

Running as: SYSTEM
Checking if registry key exists 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update' succeeded
Checking if registry 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update' value 'AUOptions' does exist succeeded
Setting registry 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update' value 'AUOptions' equal to '0x00000001' succeeded

Activity Log

Checking if registry exists: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update
Checking if registry 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update' value 'AUOptions' does exist
Setting registry 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update' value 'AUOptions' equal to '0x00000001'

I have tried this through the Registry Settings Configurator also, however, the same false-positive appears. I am able to change these values on the target machine directly without any issues.

Any help would be appreciated.

Thanks.

 *Edit* I seemed to have resolved the issue by using HKLM64


1 Comment   [ + ] Show comment
  • Thank you for this! I was racking my brain as to why mine kept saying succeeded but yet the value remained unchanged. I tried HKLM64 and it worked perfect! - rmcdonald 10 years ago

Answers (1)

Answer Summary:
Posted by: pregiec 11 years ago
Senior Purple Belt
0

I seemed to have resolved the issue by using HKLM64.

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