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

Answer Summary:
Cancel
1 Comment   [ + ] Show Comment

Comments

  • 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!
Please log in to comment

Answers

0

I seemed to have resolved the issue by using HKLM64.

Answered 04/02/2013 by: pregiec
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share