Jump to content

RegWrite not writing the correct Value


tharris
 Share

Recommended Posts

I am working on a script to point our laptops to our WSUS server to get updates. Everything works correctly except for one line. The line of code is:

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU", "RescheduleWaitTime", "REG_DWORD", "0000002D")

The registry value should be 0000002D(45) but it is writing it as just 2.

Any help would be greatly appreciated.

Link to comment
Share on other sites

I am working on a script to point our laptops to our WSUS server to get updates. Everything works correctly except for one line. The line of code is:

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU", "RescheduleWaitTime", "REG_DWORD", "0000002D")

The registry value should be 0000002D(45) but it is writing it as just 2.

Any help would be greatly appreciated.

How about:

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU", "RescheduleWaitTime", "REG_DWORD", "45")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...