Link to home
Create AccountLog in
Avatar of Irrylyn
Irrylyn

asked on

Script to get WSUS server from Local Group Policy and Registry

Environment:  All Windows 7 x64 Enterprise
SCCM 2007 R2 & SUP for updates

Hi experts!!  (aka my favorite people!)

I have a computerlist.txt with about 200 computer names in it.  I would like a script that will check the value of the following two entries and then output it to a file:

In Registry:  HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate  : the Data value for WUServer.

In Local Group Policy:  Computer Configuration\Administrative Templates\Windows Components\Windows Update\Specify Intranet Update Service Location  :  the value of option 'Set the intranet update service for detecting updates'


I would love both to be done, but if it's not possible to get the value from the Local Group Policy, I will be ok with just the registry key.


Thank you!!
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Irrylyn
Irrylyn

ASKER

Rob...  you continue to blow my mind, as always.  Every time I see your name on one of my questions I breath a little easier because I know you hit the nail on the head every single time!  I hope you really love what you do, because you're awesome!

The above vbs worked without a hitch.  No changes/modifications were needed.  Beautiful.  Thank you, this is helping me to verify an issue we've been having and now I can begin figuring out the cause/fix!
Avatar of Irrylyn

ASKER

Perfect script.
Great.  Thanks for the grade.  I do love the things we can do with scripting, which is why I've been using it for more than 8 years now.  It can make life much easier!

Glad it worked for you.

Regards,

Ro.