The script below is a VBScript. Just paste the script into a .vbs file (or download it from here) and run it. You will need to run this on a domain controller with Domain Admin rights. You also will need to have the PSTools suite installed at C:\Tools. You can download the PSTools suite from Microsofts’ website here: http://technet.microsoft.com/en-us/sysinternals/bb896649
Your output when you run the script should look like this:
set Shell = CreateObject(“Wscript.shell”)
set oNet = CreateObject(“Wscript.Network”)DomainName = oNet.UserDomain
Set Domain = GetObject(“WinNT://” & DomainName)
For Each ADSIObject In Domain
If ADSIObject.Class = “Computer” Then
Wscript.echo “Currently running gpupdate on ” & ADSIOBject.Name
Shell.Run “C:\tools\psexec -d \\” & ADSIObject.Name & ” gpupdate /force /wait:0″, 0,TrueEnd If
Next












