How To Use The Gpupdate Command In Windows (2026)
Gpupdate refreshes Group Policy settings on a Windows PC right away, so you do not have to wait for the next automatic refresh.
The command most people need is gpupdate /force, which reapplies every policy setting.
This guide follows Microsoft’s gpupdate reference and its Group Policy refresh pages, so each switch below is documented.
Table of Contents
- Gpupdate quick answers
- What the gpupdate command does
- Open Command Prompt
- The gpupdate syntax
- Gpupdate switches at a glance
- Force every policy to reapply
- Update only computer or user policy
- Control the wait time with /wait
- When you need /logoff or /boot
- What /sync does
- How often Group Policy refreshes by itself
- Run the same refresh in PowerShell
- Which settings need a restart or sign-in
- Invoke-GPUpdate parameters
- Refresh policy for a whole organizational unit
- Apply a policy change step by step
- Related guides
- Official sources
- More Windows guides
Gpupdate quick answers
| I want to | Type this |
|---|---|
| Refresh changed policies | gpupdate |
| Reapply every policy | gpupdate /force |
| Refresh only computer policy | gpupdate /target:computer |
| Refresh only user policy | gpupdate /target:user |
| Refresh and then restart if required | gpupdate /boot |
| Refresh and then sign out if required | gpupdate /logoff |
What the gpupdate command does
Gpupdate updates Group Policy settings.
Microsoft lists it for Windows 11 and Windows 10, as well as current Windows Server releases.
It is mostly used on work or school PCs, where an administrator pushes policies to the computer.
Open Command Prompt
- Press the Windows key and type **cmd**.
- Right-click **Command Prompt** and choose **Run as administrator**.
- Type your gpupdate command and press **Enter**.
The steps for an elevated window are in how to open Terminal as administrator.
The gpupdate syntax
Microsoft gives the syntax as gpupdate [/target:{computer | user}] [/force] [/wait:.
Every part is optional, so plain gpupdate is a valid command.
By default, only the policy settings that have changed are applied.
Gpupdate switches at a glance
| Switch | What it does |
|---|---|
/target:computer or /target:user | Updates only the Computer or only the User policy settings, and by default both are updated. |
/force | Reapplies all policy settings, not just the changed ones. |
/wait: | Sets how many seconds to wait for processing to finish before returning to the prompt. |
/logoff | Signs you out after the settings are updated. |
/boot | Restarts the computer after the settings are applied. |
/sync | Makes the next foreground policy application synchronous. |
/? | Shows help at the command prompt. |
Force every policy to reapply
Run gpupdate /force to reapply all policy settings regardless of whether they changed.
This is Microsoft’s own example for forcing a background update of all Group Policy settings.
Use it when a policy you expect is not showing up and you want to rule out a stale setting.
Update only computer or user policy
Use /target:computer for settings that apply to the machine, and /target:user for settings that apply to the signed-in account.
Limiting the scope is a quicker way to test one side of a policy change.
Control the wait time with /wait
| Value | Meaning |
|---|---|
| Default | 600 seconds. |
0 | Do not wait. |
-1 | Wait indefinitely. |
| Any other number | Wait that many seconds. |
If the time limit is exceeded, the prompt returns but policy processing continues in the background.
In a script, you can use a limit to continue with commands that do not depend on gpupdate finishing.
When you need /logoff or /boot
Some Group Policy client-side extensions do not process on a background refresh.
Those that apply at user sign-in need /logoff, and Microsoft names user-targeted software installation and folder redirection as examples.
Those that apply at computer startup need /boot, and Microsoft names computer-targeted software installation as the example.
Both switches have no effect if no extension that requires a sign-out or restart is involved.
What /sync does
Foreground policy is applied at computer boot and at user sign-in.
The /sync switch makes the next foreground application run synchronously, and you can scope it to the user, the computer or both with /target.
Microsoft states that /force and /wait are ignored when you specify /sync.
How often Group Policy refreshes by itself
| Item | Default |
|---|---|
| Background refresh on a client | Every 90 minutes, plus a random offset of up to 30 minutes. |
| Domain controllers | Check for computer policy changes every five minutes. |
| Policy processing time limit | 60 minutes, and the timeout cannot be modified. |
Changes made on a server must also replicate to the domain controller before clients can receive them, so a new policy may not appear immediately.
Microsoft advises against shortening the refresh interval because it increases network traffic and domain controller load.
Run the same refresh in PowerShell
PowerShell offers the Invoke-GPUpdate cmdlet, which schedules a gpupdate run on the local or a remote computer.
Its -Target parameter accepts User or Computer, -Force skips confirmation prompts, and -RandomDelayInMinutes delays the run by 0 to 44640 minutes.
Microsoft’s examples are Invoke-GPUpdate for the current computer and Invoke-GPUpdate -Computer "CONTOSO\COMPUTER-02" -Target "User" for a remote one.
Remote refreshes require the Remote Scheduled Tasks Management and Windows Management Instrumentation firewall rules to be enabled on each client.
Which settings need a restart or sign-in
Microsoft says software installation policy is processed only at computer startup and user sign-in.
Scripts run only at startup, shutdown, sign-in and sign-out, and folder redirection is processed only at user sign-in.
If you change those, a restart or sign-out may be needed before they take effect.
Invoke-GPUpdate parameters
| Parameter | What it does |
|---|---|
-Computer | Names the target computer, and the local computer is the default. |
-Target | Refreshes only the User or only the Computer policy scope, and both by default. |
-Force | Runs without confirmation prompts. |
-Boot | Restarts the computer after policy is applied, but only if an extension requires it. |
-LogOff | Signs out the current user after policy is applied, but only if an extension requires it. |
-Sync | Processes the next foreground policy application synchronously. |
-AsJob | Runs the refresh as a background job. |
The cmdlet produces no output, so it gives you no message when it finishes.
Refresh policy for a whole organizational unit
Administrators who manage many PCs can use the Group Policy Management Console instead of visiting each one.
Microsoft’s refresh page says to right-click the organizational unit and select **Group Policy Update**.
Microsoft’s archived guide adds that the console only reports that each refresh was scheduled, not that it succeeded, so you still need to verify the result on a PC.
Apply a policy change step by step
- Save the Group Policy change on the server or on your PC.
- Open Command Prompt as administrator.
- Run
gpupdateto pull the changed settings, orgpupdate /forceto reapply everything. - If the output or the setting says a sign-out or restart is needed, run
gpupdate /logofforgpupdate /boot. - Check that the setting now behaves as expected.
Remember that a change made on a domain may need time to replicate before your PC can receive it.
Related guides
If a policy is blocking something on your PC, see how to remove the Recommended section and ads from Start, which uses a policy setting.
A related Windows 11 network fix is covered in the mapped drive reconnect guide.
Official sources
The switches come from Microsoft’s gpupdate reference.
The PowerShell cmdlet is documented in Invoke-GPUpdate, and the timing figures come from Microsoft’s Group Policy refresh page.
More Windows guides
- How To Uninstall ESET From Windows Step By Step (2026)
- How To Uninstall Kaspersky Completely From Windows (2026)
- Local Security Authority Protection Is Off In Windows 11 (2026)
- How To Use Ping And Tracert In Windows 11 (2026)
- How To Change UAC Settings In Windows 11 (2026)
- How To Rip A CD To Your PC In Windows 11 (2026)
See all: Windows 11 Guides