Jump to content
Sign in to follow this  
tharris

RegWrite not writing the correct Value

Recommended Posts

tharris

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.

Share this post


Link to post
Share on other sites
exodius

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")

Share this post


Link to post
Share on other sites
Authenticity

What he did is fine but he double quoted it. It should be 0x0000002D instead of a string.

Share this post


Link to post
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
Sign in to follow this  

×