tharris Posted February 23, 2009 Share Posted February 23, 2009 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 More sharing options...
exodius Posted February 23, 2009 Share Posted February 23, 2009 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 More sharing options...
Authenticity Posted February 23, 2009 Share Posted February 23, 2009 What he did is fine but he double quoted it. It should be 0x0000002D instead of a string. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now