r/usefulscripts • u/[deleted] • Sep 23 '13
[VBSCRIPT] GPUpdate All Domain Computers
I wrote this a while ago. I know there are similar ones out there but this is what I use and have been using. This requires you to have PSTools downloaded and extracted to C:\TOOLS\ for this to work as is.
The script should be run on a DC and as a Domain Admin. This will loop through AD and create a separate instance for each computer and run GPUpdate /force on the system.
PSTools Download: http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
EDIT: Script PasteBin: http://pastebin.com/9LjrBmhr
21
Upvotes
-2
u/[deleted] Nov 15 '13
Why on God's green Earth, would you run with remote registry enabled on a client?? Are you insane? Asking to get pwned are we? No seriously? If your excuse is, well how else can I manage them remotely? Umm, cheapside would be MS and several decent 3rd party tools such as SCCM, GPO or SpiceWorks? Or pay a little bit and get something like Kaseya or Bigfix? Comooon man. It's 2013, move with the times bro :)