|

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

I want toType this
Refresh changed policiesgpupdate
Reapply every policygpupdate /force
Refresh only computer policygpupdate /target:computer
Refresh only user policygpupdate /target:user
Refresh and then restart if requiredgpupdate /boot
Refresh and then sign out if requiredgpupdate /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

  1. Press the Windows key and type **cmd**.
  2. Right-click **Command Prompt** and choose **Run as administrator**.
  3. 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:] [/logoff] [/boot] [/sync] [/?].

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

SwitchWhat it does
/target:computer or /target:userUpdates only the Computer or only the User policy settings, and by default both are updated.
/forceReapplies all policy settings, not just the changed ones.
/wait:Sets how many seconds to wait for processing to finish before returning to the prompt.
/logoffSigns you out after the settings are updated.
/bootRestarts the computer after the settings are applied.
/syncMakes 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

ValueMeaning
Default600 seconds.
0Do not wait.
-1Wait indefinitely.
Any other numberWait 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

ItemDefault
Background refresh on a clientEvery 90 minutes, plus a random offset of up to 30 minutes.
Domain controllersCheck for computer policy changes every five minutes.
Policy processing time limit60 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

ParameterWhat it does
-ComputerNames the target computer, and the local computer is the default.
-TargetRefreshes only the User or only the Computer policy scope, and both by default.
-ForceRuns without confirmation prompts.
-BootRestarts the computer after policy is applied, but only if an extension requires it.
-LogOffSigns out the current user after policy is applied, but only if an extension requires it.
-SyncProcesses the next foreground policy application synchronously.
-AsJobRuns 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

  1. Save the Group Policy change on the server or on your PC.
  2. Open Command Prompt as administrator.
  3. Run gpupdate to pull the changed settings, or gpupdate /force to reapply everything.
  4. If the output or the setting says a sign-out or restart is needed, run gpupdate /logoff or gpupdate /boot.
  5. 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.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *