Saturday, May 23, 2009

How do I force Windows XP Local Group Policy to update?

In windows 2000, you could use Secedit /refreshpolicy to force Group Policy to update, without waiting for the default update interval.

Windows XP provides Gpupdate for the same purpose. The syntax is:

GPUpdate [/Target:{Computer | User}] [/Force] [/Wait:value ] [/Logoff] [/Boot]

where:

[/Target:{Computer | User}] If the switch is omitted, both Computer and User policy settings are updated.
[/Force] Causes all policy settings to be reapplied, not just the changed settings.
[/Wait:nnn] If you omit this switch, the maximum wait time to complete the processing, and proceed to the next command, is 600 seconds. A nnn of 0 eliminates any wait, while an nnn of -1 will wait until policy processing is finished. If the wait time is exceeded, the next command is processed, but policy processing continues in the background.
[/Logoff] This switch will log you off when policy processing finishes. It should be used if you apply a policy that is only applied during logon, like Folder Redirection. If no such policy was applied, the switch is ignored.
[/Boot] This switch will restart the computer, if you apply a policy that can only be applied during startup, like computer-targeted Software Installation. If no such policy was applied, the switch is ignored.


No comments:

DISCLAIMER

WE USE LINKS TO SITES AND NOT DIRECT DOWNLOAD LINKS. THERE NO FILES HOSTED ON OUR SERVER,THEY ARE ONLY INDEXED MUCH LIKE GOOGLEWORKS.
The hosting server or the administrator cannot be held responsible for the contents of any linked sites or any link contained in a linked site, or changes / updates to such sites.

BY ENTERING THIS SITE YOU AGREE TO BE BOUND BY THESE CONDITIONS
If you don't like the software posted here, please don't hesitate to let us know and we will unpost it.