Manage Group policies on Windows devices.
Refresh computer or user Group Policy settings and apply new group policy settings on domain machines which do not receive GPO automatically.
Script Update Group Policy Settings
- Version 22.214.171.124 – Major script update
- Version 126.96.36.199 – Initial release
Refreshes computer or user Group Policy settings using the ‘gpupdate’ command. The script is designed for Windows 10 and 7.
Execution context and suggested scheduling
Run the script as interactive user. In some environments it might be necessary to run as local system. The script should be executed manually.
A timeout of 1200 seconds is recommended.
|1||Group Policy Target||Group Policy type to be updated. Choose whether to update the “user” or the “computer” policies|
|2||Force||Reapplies all policy settings. Set it to “true” to apply all policy settings, not just those that have changed, “false” otherwise|
|3||Maximum Delay In Seconds||Maximum random delay set to avoid domain controller overload. Provide number of seconds|
|1||User Name||String||User who is currently logged in|
During execution, ‘gpupdate’ sends a number of queries to domain controller. To reduce server overload, the script contains a random wait function which delays its execution from 0 up to maximum 600 seconds.
Maximum value of random script execution delay can be set in input parameter ‘MaximumDelayInSeconds’.
It is recommended that the device be restarted for some applied policies to take effect.
- The script should not be concurrently executed on many devices which point to the same domain controller.