Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Remotely Run a Group Policy Update

Posted on 2008-06-19
4
Medium Priority
?
1,577 Views
Last Modified: 2011-01-30
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.
Thanks!
0
Comment
Question by:azstbzimms
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 77

Accepted Solution

by:
Rob Williams earned 1400 total points
ID: 21827661
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.
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 21827673
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.
http://technet2.microsoft.com/windowsserver/en/library/6880fef3-76b7-4eb3-b993-fa00799615851033.mspx?mfr=true
0
 
LVL 2

Expert Comment

by:j0rdan
ID: 21828694
If your PC has the 2k3 AdminPak, I would *highly* recommend SpecOps GPUpdate add-in for the AD snap-in.

http://www.specopssoft.com/products/specopsgpupdate/

It integrates into the snap-in and will let you run multiple commands to any computer on the domain (including gpupdate, reboot, etc).
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 21850982
Thanks azstbzimms.
Cheers !
--Rob
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Here's a look at newsworthy articles and community happenings during the last month.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question