gpupdate
gpupdate is a Windows command-line tool used to refresh Group Policy settings on a local computer. Group Policy objects (GPOs) define settings for both computer and user configurations, and gpupdate retrieves the latest policy data from domain controllers and applies it to the machine where the command is run. Policy refresh can affect security settings, software installation, scripts, and other managed configurations.
When you run gpupdate, Windows proceeds to update computer policy and user policy as applicable. By default,
- /force to reapply all policy settings, not only those that have changed.
- /target:computer or /target:user to update only the computer or the user policy.
- /wait:value to specify how many seconds gpupdate should wait for policy processing to complete.
- /logoff to log off if a policy requires a logoff to apply.
- /boot to reboot if a policy requires a reboot to apply.
Results are shown in the command output and can also be viewed in the Event Viewer under