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
- Verify that “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update”exists.
- Verify that “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update!AUOptions” exists.
On Success
- 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
-
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