• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1593
  • Last Modified:

Remotely Run a Group Policy Update

Looking for a VBscript that will refresh group policy on a remote computer.  (the equivalent of running gpupdate /force from the command line of a local machine).  I'd like to launch the script from my WinXP machine, have it ask me for a computer name, and then refresh the group policy on the target machine.  This is in a W2K3 environment.
  • 3
1 Solution
Rob WilliamsCommented:
You can run any command remotely using the free PSExec tool from Sysinternals/Microsoft
psexec  \\Computername  gpupdate /force
This can be included in a script.
Rob WilliamsCommented:
By the way if you want to apply it to a series of computers you can use a text file list of computers and include that in the command rather than one specific PC. See the syntax in the link above.

Also because gpupdate often returns a response asking if you want to log off now, to deal with that you may want to use the  /logoff or /boot switches with the gpupdate command.
If your PC has the 2k3 AdminPak, I would *highly* recommend SpecOps GPUpdate add-in for the AD snap-in.


It integrates into the snap-in and will let you run multiple commands to any computer on the domain (including gpupdate, reboot, etc).
Rob WilliamsCommented:
Thanks azstbzimms.
Cheers !
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now