Automation

gpupdate /force: Commands, Examples & Reports (2026)

Run gpupdate /force, target user or computer policy, create gpresult reports, and refresh remote PCs. Copy verified Windows commands for 2026.

By InventiveHQ Team

Need to force a Group Policy refresh from the command line? This guide covers every gpupdate, gpresult, and Invoke-GPUpdate command for Windows 10, 11, and Server β€” or use the builder below to assemble the exact command for your scenario, then copy it straight to your terminal.

Loading interactive tool...

Verified June 2026 Β· tested on Windows 11 24H2, Windows 10 22H2 & Server 2022/2025


Quick Reference: Essential Commands

Need to apply Group Policy right now? Here are the most common commands:

# Force a full local refresh (re-applies every setting)
gpupdate /force

# Refresh only computer or only user policy
gpupdate /target:computer /force
gpupdate /target:user /force

# Show which GPOs applied (console summary)
gpresult /r

# Full HTML report of applied policy
gpresult /h C:\Temp\GPReport.html /f

# Force a refresh on a remote computer (GroupPolicy / RSAT module)
Invoke-GPUpdate -Computer PC-01 -Force

Which command do you need?

Jump to the section you need below, or use the builder at the top to assemble the command for you.


gpupdate: Force a Policy Refresh

gpupdate.exe re-applies Group Policy on the local machine. By default Windows refreshes policy in the background every 90 minutes (plus a 0–30 minute random offset); gpupdate triggers that refresh on demand.

Windows 10Windows 11Server 2016+Built in β€” no module

gpupdate Switch Reference

SwitchDescription
/forceRe-apply all policy settings, not just changed ones
/target:{computer|user}Refresh only computer or only user policy
/syncForce the next foreground (startup/logon) refresh β€” required for software install, folder redirection, drive maps
/wait:{seconds}How long to wait for processing to finish (default 600; 0 = don't wait, -1 = wait indefinitely)
/logoffLog off after refreshing (for policies that apply only at logon)
/bootReboot after refreshing (for policies that apply only at startup)

gpupdate Usage Examples

# Standard force refresh of both user and computer policy
gpupdate /force

# Re-apply computer policy and reboot if a setting requires it
gpupdate /target:computer /force /boot

# Re-apply user policy and log off if needed
gpupdate /target:user /force /logoff

# Schedule a foreground sync at next boot (for folder redirection, etc.)
gpupdate /force /sync

# Don't block the console waiting for processing
gpupdate /force /wait:0

Tip: Plain gpupdate only re-applies settings that changed since the last refresh. After editing a GPO or while troubleshooting, always use gpupdate /force so every setting is re-evaluated.


gpresult: Report on Applied Policy

gpresult.exe produces a Resultant Set of Policy (RSoP) report β€” the definitive answer to "which GPOs actually applied to this user/computer, and which ones were filtered out?"

Windows 10Windows 11Server 2016+Built in β€” no module

gpresult Switch Reference

SwitchDescription
/rSummary RSoP data in the console
/v / /zVerbose / super-verbose detail
/h {file}Write a full HTML report
/scope {computer|user}Limit output to computer or user settings
/user {DOMAIN\\user}Report on a specific user
/s {computer}Query a remote computer
/fOverwrite the report file without prompting

gpresult Usage Examples

# Console summary of applied policy
gpresult /r

# Full HTML report (the most useful for troubleshooting)
gpresult /h C:\Temp\GPReport.html /f

# Only computer-side policy, super-verbose
gpresult /scope computer /z

# Report on a specific user
gpresult /user CORP\jsmith /h C:\Temp\jsmith.html /f

# Query a remote computer
gpresult /s PC-01 /r

Note: Run gpresult /r from the affected user's own session for user-side data. For computer-side data (/scope computer), run from an elevated prompt β€” otherwise you'll see "Access denied" or "does not have RSOP data."


Advertisement

Invoke-GPUpdate: Refresh Remote Computers

gpupdate.exe only runs locally. To refresh policy on remote machines, use the GroupPolicy PowerShell module (part of RSAT, installed by default on domain controllers).

Requires GroupPolicy module (RSAT)Local & remote⚠ Targets need WinRM enabled

# Refresh a single remote computer
Invoke-GPUpdate -Computer "PC-01" -Force

# Refresh a remote computer's user policy only, with a 10-minute random delay
Invoke-GPUpdate -Computer "PC-01" -Target "User" -RandomDelayInMinutes 10 -Force

# Refresh every computer in an organizational unit
Get-ADComputer -Filter * -SearchBase "OU=Workstations,DC=corp,DC=local" |
    ForEach-Object { Invoke-GPUpdate -Computer $_.Name -Force }

# Fan out to an explicit list of computers
"PC-01","PC-02","PC-03" | ForEach-Object { Invoke-GPUpdate -Computer $_ -Force }

WinRM is required. Invoke-GPUpdate reaches targets over Windows Remote Management. If you get "WinRM cannot complete the operation," run Enable-PSRemoting -Force on the target (or push it via a GPO) and confirm the firewall allows WinRM.


Manage GPOs: Backup and Inventory

The GroupPolicy module also handles GPO lifecycle tasks from the command line.

# Back up every GPO in the domain
Backup-GPO -All -Path C:\GPOBackups

# Back up a single GPO
Backup-GPO -Name "Default Domain Policy" -Path C:\GPOBackups

# Restore a GPO from backup
Restore-GPO -Name "Default Domain Policy" -Path C:\GPOBackups

# List every GPO with status and last-modified time
Get-GPO -All | Sort-Object DisplayName |
    Select-Object DisplayName, GpoStatus, ModificationTime | Format-Table -AutoSize

# Generate a settings report for one GPO
Get-GPOReport -Name "Default Domain Policy" -ReportType Html -Path C:\Temp\DDP.html

Troubleshooting: Common Group Policy Errors

Each row is deep-linkable β€” share a specific error with …#gp-1058, and the row highlights on arrival.

Error / EventMeaningFix
Event 1058Cannot access gpt.ini for a GPOCheck DNS, SYSVOL/DFS replication, and that the client can reach a DC
Event 1030Generic failure to query Group PolicyUsually accompanies 1058 β€” fix connectivity to SYSVOL, then gpupdate /force
Access is deniedgpresult run without elevation for computer scopeRun the prompt as Administrator, or use /scope user
does not have RSOP dataPolicy hasn't applied, or wrong session/scopeRun gpupdate /force, then gpresult /r from the affected user's session
WinRM cannot completeInvoke-GPUpdate can't reach the targetRun Enable-PSRemoting -Force on the target and allow WinRM through the firewall
Invoke-GPUpdate not recognizedGroupPolicy module not installedInstall RSAT: Add-WindowsCapability -Online -Name Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0

How Often Does Group Policy Refresh on Its Own?

If you don't run gpupdate, Windows refreshes policy automatically:

  • Domain computers and users: every 90 minutes, plus a random offset of 0–30 minutes (so up to 120 minutes).
  • Domain controllers: every 5 minutes.
  • At startup and logon: computer policy applies at boot, user policy at logon (foreground processing).

gpupdate /force exists so you don't have to wait for that background cycle when you've just changed a policy.


Version-Specific Notes

  • Windows 11 / 10: gpupdate and gpresult are identical across modern versions. The GroupPolicy module requires RSAT (Add-WindowsCapability -Online -Name Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0).
  • Windows Server: Invoke-GPUpdate and the full GroupPolicy module ship with the Group Policy Management feature, installed by default on domain controllers.
  • Home editions: Windows Home has no Group Policy engine β€” gpupdate exists but has no domain or local GPO settings to apply.
  • Foreground-only policies: software installation, folder redirection, and drive mappings apply only during foreground processing β€” use /sync or have the user reboot/log off.

Frequently Asked Questions

How do I force a Group Policy update from the command line?

Run 'gpupdate /force' from an elevated Command Prompt or PowerShell. This re-applies every policy setting, not just the ones that changed. To refresh only user or computer settings, add '/target:user' or '/target:computer'. For a remote computer, use 'Invoke-GPUpdate -Computer PC-01 -Force' (requires the GroupPolicy RSAT module).

What is the difference between gpupdate and gpupdate /force?

Plain 'gpupdate' only re-applies policies that have changed since the last refresh, which is fast but can miss settings. 'gpupdate /force' re-applies ALL policy settings regardless of whether they changed. Use /force when troubleshooting or after editing a GPO; use plain gpupdate for a routine refresh.

How do I run gpupdate on a remote computer?

gpupdate.exe only runs locally. To refresh policy on a remote machine, use the GroupPolicy PowerShell module: 'Invoke-GPUpdate -Computer PC-01 -Force'. To refresh an entire organizational unit at once: 'Get-ADComputer -Filter * -SearchBase "OU=Workstations,DC=corp,DC=local" | ForEach-Object { Invoke-GPUpdate -Computer $_.Name -Force }'. Remote targets need WinRM enabled (Enable-PSRemoting -Force).

How do I generate a Group Policy report?

Run 'gpresult /h C:\Temp\GPReport.html /f' to create an HTML Resultant Set of Policy (RSoP) report showing every GPO that applied and why. For a quick console summary use 'gpresult /r'. To report on a specific user add '/user DOMAIN\username', and for a remote computer add '/s COMPUTERNAME'.

Why does gpresult say 'The user does not have RSOP data'?

This usually means the policy has not finished applying for that user, you are running gpresult without the right scope, or you lack permission. Run 'gpupdate /force' first, then 'gpresult /r' from the affected user's session. For computer-only data run an elevated prompt with 'gpresult /r /scope computer'.

How long does it take for Group Policy to apply without gpupdate?

By default, domain computers refresh Group Policy every 90 minutes with a random offset of 0 to 30 minutes (so up to 120 minutes). Domain controllers refresh every 5 minutes. Running 'gpupdate /force' applies changes immediately instead of waiting for the background refresh.

What does gpupdate /sync do?

'gpupdate /sync' schedules a foreground (synchronous) policy refresh at the next reboot or logon. Some policies β€” like software installation, folder redirection, and drive mappings β€” only apply during foreground processing, so /sync is required to make them take effect. The command will prompt to log off or reboot.

How do I back up Group Policy Objects from the command line?

Use the GroupPolicy module: 'Backup-GPO -All -Path C:\GPOBackups' backs up every GPO in the domain. To back up one GPO: 'Backup-GPO -Name "Default Domain Policy" -Path C:\GPOBackups'. Restore with 'Restore-GPO -Name "Default Domain Policy" -Path C:\GPOBackups'.