Compartilhar via


Group Policy in Windows Server 2012: Using Remote GPUpdate

Group Policy in Windows Server 2012: Using Remote GPUpdate

If someone calls to say their computer doesn’t work quite right, the first thing you might have them do is run gpupdate /force to ensure they have the latest policy applied to their system. Now, you have the power to reach out and force a gpupdate without needing to be at the computer, remote in, or ask the user do it themselves.

The way remote gpupdate works is this: It creates a task through task scheduler. The task will execute within the next 10 minutes, which runs the GPUpdate locally on the machine. This will work on Vista and beyond.

Because this feature uses a remote connection, in order to use it you will need the following firewall rules enabled on clients.

· Remote Scheduled Tasks Management (RPC)

· Remote Scheduled Tasks Management (RPC-EPMAP)

· Windows Management Instrumentation (WMI-In)

Once you have these firewall rules applied to your clients, there are two ways you can invoke a remote Group Policy update.

Remote GP Update Wizard

From the GPMC, right click on an OU that contains computer objects.

clip_image001[6]

Click the “Group Policy Update” option.

clip_image002[7]

This will run a gpupdate /force on all computers in the OU, and any subOUs. Computer policy will be refreshed for each computer, and user policy will be refreshed for any and all users currently logged into those computers.

clip_image003[6]

The “success” and “failure” headers indicate how many computers were contacted and had the event planted on the computer. It does not indicate that those computers have already run gpupdate – just that they have successfully scheduled the update for some time in the next 10 minutes. In this case, I intentionally sabotaged one of my clients to demonstrate what failure looks like – you see an error code and a description, and you can “Save” your results to a .csv file to review what computers succeeded and did not succeed in receiving the task.

Powershell

The other option is to use Group Policy’s new PowerShell cmdlets. The Invoke-gpupdate cmdlet is part of the Group Policy Powershell Module that is installed when you install the Group Policy Management Feature on a machine.

This cmdlet gives you more flexibility with how Group Policy is updated. You can use all of the gpupdate parameters you may be familiar with, plus you can use the new remote GP update functionality to target one computer – or write a script that targets many computers.

An example of the most basic use of invoke-gpupdate:

Import-module groupPolicy

Invoke-gpupdate computername

The completion of this cmdlet will put a task on the computer that will execute a gpupdate /force

Comments

  • Anonymous
    January 01, 2003
    While I too LOVE this feature, how can it be modified to NOT show the CMD window??  I just have a bunch of machines that we ran this on call our help desk.  So much for being IT Ninjas with this one.

  • Anonymous
    January 01, 2003
    One of my favorite features in Windows Server 2012

  • Anonymous
    December 28, 2013
    Pingback from Group Policy in Windows Server 2012: Using Remote GPUpdate UNI Data Inc.

  • Anonymous
    December 28, 2013
    Pingback from Group Policy in Windows Server 2012: Using Remote GPUpdate UNI Data Inc.

  • Anonymous
    December 28, 2013
    Pingback from Group Policy in Windows Server 2012: Using Remote GPUpdate UNI Data Inc.

  • Anonymous
    June 03, 2014
    Pingback from Official 2014 Latest Microsoft 70-411 Exam Dump Free Download(361-370)! | Latest 2014 Apple 9L0-010, 9L0-064, 9L0-314, 9L0-406, 9L0-412, 9L0-518 Exam Questions

  • Anonymous
    June 03, 2014
    Pingback from Official 2014 Latest Microsoft 70-411 Exam Dump Free Download(361-370)! | Offer Online 2014 Pass4sure Brocade Exam Dumps

  • Anonymous
    June 03, 2014
    Pingback from Official 2014 Latest Microsoft 70-411 Exam Dump Free Download(361-370)! | Offer 2014 Latest Exin Exam Questions

  • Anonymous
    June 03, 2014
    Pingback from Official 2014 Latest Microsoft 70-411 Exam Dump Free Download(361-370)! | Free 2014 IBM C4040-122, C4040-123, C4040-124, C4040-224, C4040-225, C4090-450 Exam Questions

  • Anonymous
    June 03, 2014
    The comment has been removed

  • Anonymous
    June 03, 2014
    Pingback from Official 2014 Latest Microsoft 70-411 Exam Dump Free Download(361-370)! | Free 2014 Latest Pass4sure PMI Exam Dumps

  • Anonymous
    June 03, 2014
    Pingback from Official 2014 Latest Microsoft 70-411 Exam Dump Free Download(361-370)! | Free 2014 Latest Redhat RHCSA & RHCE Exam Dumps