Windows Group Policy (GPO) explanation and tutorials

Windows Group Policy is the built-in feature that pushes computer and user settings from one place, either a local policy on a single PC or Group Policy Objects (GPOs) stored in Active Directory.

This guide explains how GPOs are built, processed and filtered, then walks through the tasks admins run most: AppLocker, firewall, Wi-Fi profiles, time sync, scheduled restarts, exclusions and troubleshooting.

Windows Group Policy (GPO) explanation and tutorials
Group Policy Management lists each GPO under the OU it is linked to, with link order, Enforced and Link Enabled columns. (Image: Microsoft)

How to create and link a GPO in Group Policy Management

A domain GPO does nothing until it is linked to a site, domain or organizational unit (OU). By default, only Domain Admins and Enterprise Admins can link GPOs.

  1. Select Start, type Group Policy Management and open it.
  2. Expand your forest and domain, right-click Group Policy Objects and select New.
  3. Type a name in the New GPO dialog box and select OK.
  4. Right-click the new GPO and select Edit to open the Group Policy Management Editor.
  5. Browse to the setting under Computer Configuration or User Configuration, double-click it, set it and select OK.
  6. Close the editor, right-click the target OU and select Link an Existing GPO.
  7. Pick your GPO and select OK, then run gpupdate /force on a test PC.

On a standalone PC there is no GPMC or linking step. You edit the local policy instead, so open the Local Group Policy Editor with gpedit.msc.

Create and link a GPO in Group Policy Management from an OU right-click menu
Right-clicking an OU offers Create a GPO in this domain, and Link it here, plus Link an Existing GPO. (Image: Microsoft)

Group Policy architecture and components

A GPO is a virtual collection of policy settings, security permissions and a scope of management. Each GPO has a GUID and is stored in two halves that replicate separately.

Component Where it lives What it does
Group Policy container (GPC) Domain partition of Active Directory Holds the GPO's properties, version and links; replicates with AD replication
Group Policy template (GPT) SYSVOL folder on every domain controller Holds the setting files and scripts; replicates with DFSR (or FRS on old domains)
Computer Configuration Inside each GPO System-wide settings such as firewall rules, power and startup scripts; applied at startup
User Configuration Inside each GPO Per-user settings such as Folder Redirection and logon scripts; applied at sign-in
Client-side extensions (CSEs) On each Windows client Each CSE applies its own area, for example registry, security or Folder Redirection
Local GPO Each Windows PC Applies first and has the lowest precedence when domain GPOs exist
Group Policy preferences Inside each GPO Preference items such as drive maps, processed top to bottom per extension
Links (GPLink) Sites, domains and OUs Decide scope; a link can be enabled, disabled or enforced
Organizational unit (OU) Inside a domain in Active Directory The lowest-level container a GPO can be linked to; most GPOs are linked at OU level

Changes reach clients only after the GPO replicates. AD replication within a site usually takes under a minute, and SYSVOL replication within a site runs every 15 minutes.

Group Policy processing order: LSDOU, enforced and block inheritance

Group Policy is inherited and cumulative. When two GPOs set the same value, the one applied last wins, so the order below decides every conflict.

Rule How it works
Processing order Local GPO, then site, then domain, then OU (parent OUs before child OUs)
Link order At one site, domain or OU, the link with the lowest number has the highest precedence
Enforced link Lower-level GPOs cannot override it, and Block Inheritance does not stop it; GPMC shows a padlock icon
Block Inheritance Set on a domain or OU to stop higher-level GPOs, except enforced ones
Computer vs user Computer settings override user settings when they conflict
Loopback processing Applies the computer's user settings to anyone who signs in; Merge adds them, Replace uses only them
Refresh interval Every 90 minutes plus up to 30 random minutes; domain controllers every 5 minutes
Logon-only extensions Folder Redirection applies only at sign-in; software installation only at startup or sign-in
Time limit All processing must finish within 60 minutes, and the limit cannot be changed

Loopback lives at Computer Configuration\Policies\Administrative Templates\System\Group Policy as Configure user Group Policy loopback processing mode. It suits kiosks, classrooms and shared terminals.

Group Policy management tools

Your task Tool Why
Change policy on one PC Local Group Policy Editor (gpedit.msc) Edits the local GPO directly
Create, link, back up or copy domain GPOs Group Policy Management Console (gpmc.msc) Central console for GPOs, links, WMI filters and permissions
Edit settings inside a domain GPO Group Policy Management Editor Opens from GPMC with right-click Edit
Create AppLocker rules on one PC Local Security Policy (secpol.msc) Holds Application Control Policies locally
Apply changes now gpupdate or Invoke-GPUpdate Triggers a refresh locally or, with PowerShell, on a remote PC
See what actually applied gpresult or the Group Policy Results wizard Shows the winning GPO for each setting
Test before deploying Group Policy Modeling wizard Simulates group membership, WMI filters and OU moves
Script firewall rules into a GPO PowerShell with -PolicyStore Writes rules straight into a named domain GPO

Install Group Policy Management Console (RSAT) on Windows 11

GPMC ships with Windows Server. On Windows 11 and Windows 10 version 1809 or later, it comes as an RSAT optional feature.

  1. Select Start > Settings > System > Optional features (on some builds this page is under Apps).
  2. Select View features or Add a feature.
  3. Type Remote in the search box.
  4. Select RSAT: Group Policy Management Tools and install it.
  5. Open Group Policy Management from Start once the install finishes.

On Windows Server, add the Group Policy Management feature instead. RSAT tools on Windows 11 version 25H2 on Arm64 devices are added from Turn Windows features on or off.

The other GPMC prerequisites are permissions: Edit settings, delete, and modify security on the GPO, and modify permission on a site, domain or OU before you can link GPOs to it. By default, only Domain Admins and Enterprise Admins have that permission.

Install Group Policy Management on Windows Server through Add Roles and Features
On Windows Server, tick Group Policy Management on the Features page instead of installing RSAT. (Image: Microsoft)

Force a Group Policy update with gpupdate

By default gpupdate applies only settings that changed. Add /force to reapply everything after you edit a GPO.

gpupdate /force

Reapplies all computer and user policy settings. Add /target:computer or /target:user to refresh only one half, /logoff for user Folder Redirection or software installation, and /boot for computer software installation. In PowerShell, Invoke-GPUpdate does the same and can target a remote computer.

You should see: Computer Policy update has completed successfully. User Policy update has completed successfully.

From GPMC you can refresh a whole OU: right-click it and select Group Policy Update. On a single PC, you can also force a Group Policy update with the other gpupdate switches.

Change GPO link order and unlink a GPO in GPMC

Within each site, domain and OU, the link order decides which GPO wins, and the link with the lowest number has the highest precedence. Deleting a link stops the GPO applying there but keeps the GPO itself.

  1. Open Group Policy Management and select the site, domain or OU that holds the links.
  2. Move the GPO link up or down in its link list; set it to link order 1 to give it the highest precedence.
  3. To unlink a GPO, expand Group Policy Objects in the forest and domain that contain it and select the GPO.
  4. In the details pane, select the Scope tab.
  5. Under Links, right-click the site, domain or OU and select Delete Link(s).

Deleting the GPO itself is a different action. It removes the GPO and its links in the selected domain, but not links from other domains, so remove those first.

Disable User Configuration or Computer Configuration settings in a GPO

A GPO that holds only user settings can skip the computer half, and the reverse. Disabling the unused half slightly reduces startup time because those settings no longer have to be evaluated.

  1. In GPMC, expand Group Policy Objects in the forest and domain that contain the GPO.
  2. Right-click the GPO and open GPO Status.
  3. Select User configuration settings disabled for a computer-only GPO, or Computer configuration settings disabled for a user-only GPO.
  4. Select All policy settings disabled to switch the whole GPO off without unlinking it, or Enabled to restore the default.

Most useful GPO examples and best practices

These settings cover the jobs most domains need first. The best-practice rows come from how Group Policy processes and replicates.

Example or practice Where or how
Firewall rules for all PCs Computer Configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security
Allow or block apps Security Settings > Application Control Policies > AppLocker
Deploy Wi-Fi networks Security Settings > Wireless Network (IEEE 802.11) Policies
Redirect Documents or Desktop to a server User Configuration > Policies > Windows Settings > Folder Redirection
Same user settings on kiosks Configure user Group Policy loopback processing mode
Link at the OU level Keep users and computers in separate OUs so unused halves can be disabled
Disable the unused half Set GPO Status to User configuration settings disabled (or computer) to speed processing
Combine small GPOs Fewer GPOs shortens startup and sign-in and simplifies troubleshooting
Do not shorten refresh intervals Shorter intervals add network traffic and domain controller load
Test before linking Run Group Policy Modeling; it ignores local GPOs, so confirm with gpresult
Back up GPOs GPMC backs up, restores, imports and copies GPOs, with migration tables across domains

After a Windows feature update such as Windows 11 26H2, compare Group Policy results before and after on a pilot group.

Fix ‘this app has been blocked by your administrator’ in Windows

This message usually means an AppLocker policy denied the file. When an AppLocker policy applies, Microsoft Store apps are blocked unless packaged app rules allow them.

  1. On the affected PC, open Event Viewer.
  2. Go to Applications and Services Logs > Microsoft > Windows > AppLocker.
  3. Find event 8004 (EXE or DLL), 8007 (script or MSI) or 8022/8025 (packaged apps) for the blocked file.
  4. Note the rule collection, file path and user SID in the event.
  5. On an admin PC, edit the GPO that holds AppLocker rules and open Application Control Policies > AppLocker.
  6. Add an allow rule for the app, or right-click Packaged app Rules and select Create Default Rules for Store apps.
  7. Run gpupdate /force on the PC and start the app again.

Event 8027 means no packaged apps can run because EXE rules are enforced with no packaged app rules. If you are not the admin, the fix sits with your IT department.

Add wireless Wi-Fi profiles on Windows devices via export/import or GPO

Use netsh to copy a profile from one PC to others, or a wireless policy in a GPO for domain-joined devices.

  1. On a PC that already connects, open an elevated Command Prompt.
  2. Run netsh wlan export profile name="CorpWiFi" folder="C:\WiFiProfiles" key=clear to save the profile as XML.
  3. Copy the XML file to the target PC and run netsh wlan add profile filename="C:\WiFiProfiles\Wi-Fi-CorpWiFi.xml" user=all.
  4. For the GPO route, edit a GPO and open Computer Configuration > Policies > Windows Settings > Security Settings.
  5. Right-click Wireless Network (IEEE 802.11) Policies and select Create a new Wireless Policy for Windows Vista and Later Releases.
  6. Select Add > Infrastructure, type a Profile Name, enter the SSID under Network Name(s) (SSID) and select Add.
  7. Set the security options on the Security tab, select OK, and link the GPO to the computers' OU.

key=clear writes the Wi-Fi password in plain text, so delete the XML file once the import is done. Exported files are named after the interface and profile, for example Wi-Fi-CorpWiFi.xml.

How to prevent users from saving files to Desktop, Downloads and other profile folders

Group Policy has no single switch that stops saving to profile folders. The supported way to keep files off local disks is Folder Redirection, which moves each folder to a server share.

  1. In GPMC, right-click the users' OU and select Create a GPO in this domain, and Link it here.
  2. Name the GPO, then right-click it and clear Link Enabled until it is configured.
  3. On the Scope tab, remove Authenticated Users under Security Filtering and add your Folder Redirection users group.
  4. On the Delegation tab, select Add, enter Authenticated Users and keep the default Read permission.
  5. Edit the GPO and go to User Configuration > Policies > Windows Settings > Folder Redirection.
  6. Right-click the folder to redirect (for example Documents), select Properties and choose Basic – Redirect everyone's folder to the same location.
  7. Select Create a folder for each user under the root path, enter the share in Root Path and select OK.
  8. Right-click the GPO and select Link Enabled, then sign in as a test user.

Folder Redirection applies only at sign-in, so gpupdate /force alone will not move the folders. Use gpupdate /logoff or sign out and back in.

How to set a custom drive icon in Windows

Windows reads a drive's icon and label from an autorun.inf file in the drive's root. This works without Group Policy and suits USB and data drives.

  1. Copy an .ico file (or an .exe, .dll or .bmp that contains icons) to the root of the drive, for example D:\drive.ico.
  2. Open Notepad and type [AutoRun] on the first line.
  3. Type icon=drive.ico on the second line; for a file with several icons, add the index, such as icon=MyProg.exe,1.
  4. Optionally add label=Projects to set the text shown with the icon.
  5. Save the file as autorun.inf in the root of the same drive, with Save as type set to All files.
  6. Close and reopen File Explorer, or remove and reinsert a USB drive, to see the new icon.

AppLocker: configure application restriction policies in Windows

AppLocker controls which executables, scripts, installers, DLLs and packaged apps users can run. It is included in all Windows editions except Windows 10 version 1809 or earlier, and it is not supported on Server Core.

  1. Edit a GPO and go to Computer Configuration > Windows Settings > Security Settings > System Services; set Application Identity to start automatically.
  2. Open Security Settings > Application Control Policies > AppLocker.
  3. Right-click Executable Rules (and the other collections you need) and select Create Default Rules so Windows files keep running.
  4. Right-click a rule collection, select Create New Rule, choose Allow or Deny and the user or group.
  5. Pick a Publisher, Path or File hash condition, add exceptions if needed, name the rule and select Create.
  6. Right-click AppLocker, select Properties, and on the Enforcement tab tick Configured with Audit only.
  7. Review events 8003 and 8006 in the AppLocker log, then switch the collection to Enforce rules.

Without the Application Identity service, AppLocker rules are not enforced. Path-based deny rules are weak, because a user can copy the file elsewhere; prefer publisher rules. Microsoft classes AppLocker as defense in depth and points to App Control for Business for stronger protection.

How to enable or disable Windows Defender Firewall

Microsoft recommends keeping Windows Defender Firewall on. Turning it off removes IPsec connection security rules, boot-time filters and other protection, so allow traffic with rules instead.

  1. On a single PC, open an elevated PowerShell window.
  2. Run Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True to turn the firewall on for all profiles.
  3. For a domain, edit a GPO and go to Computer Configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security.
  4. Set the firewall state to On for the Domain, Private and Public profiles in the firewall properties.
  5. Add the rules you need under Inbound Rules with Action > New rule, rather than switching a profile off.
  6. Run gpupdate /force on a client and confirm the profiles show as on.

If a vendor still requires the firewall off, Microsoft's supported way is to disable the profiles and leave the Windows Defender Firewall service (MpsSvc) running. Stopping the service breaks the Start menu, app installs and phone activation.

Windows Defender Firewall Group Policy settings under Security Settings in the GPO editor
Windows Firewall with Advanced Security sits under Computer Configuration, Policies, Windows Settings, Security Settings. (Image: Microsoft)

Configure Windows to auto restart/shutdown with Task Scheduler

A scheduled task that runs shutdown gives you a nightly restart without third-party tools. Run the command below in an elevated Command Prompt.

schtasks /create /tn "Nightly restart" /tr "shutdown /r /t 60 /c \"Scheduled restart\"" /sc daily /st 03:00 /ru system

Creates a task that runs daily at 03:00 as SYSTEM, so no one has to be signed in. shutdown /r restarts with a 60-second warning; use /s instead of /r to shut down. A time-out above 0 implies /f, which closes apps without saving. Add /s <computer> to create the task on a remote PC.

You should see: SUCCESS: The scheduled task "Nightly restart" has successfully been created.

Check the task in Task Scheduler > Task Scheduler Library, and use schtasks /delete /tn "Nightly restart" to remove it. Warn users first, because /f discards unsaved work.

Configure NTP time source for Active Directory domain

Domain members sync time through the domain hierarchy, so only the PDC emulator in the forest root domain should use an external NTP source. Back up the registry before you change it.

  1. On the forest root PDC emulator, open Registry Editor and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters.
  2. Set Type to NTP.
  3. In ...\W32Time\Config, set AnnounceFlags to 5 (use 0xA if the upstream link is unreliable).
  4. In ...\W32Time\TimeProviders\NtpServer, set Enabled to 1.
  5. Back in ...\W32Time\Parameters, set NtpServer to a space-separated list of peers, each ending in ,0x1.
  6. In ...\W32Time\Config, set MaxPosPhaseCorrection and MaxNegPhaseCorrection in decimal, for example 3600.
  7. Run net stop w32time && net start w32time to restart the Windows Time service.

The default for both phase-correction values is 48 hours on Windows Server 2008 R2 and later, which lets the PDC accept large jumps. A tighter value stops a bad upstream source from moving the whole domain's clock.

How to remove ‘some settings are managed by your organization’ on Windows 11 or 10

The message appears when a policy, a management (MDM) enrollment or a policy registry value controls a setting. On a domain or work PC it is expected, and only the admin can change it.

  1. Open an elevated Command Prompt and run gpresult /h C:\gp.html, then open the file to see which GPOs and settings apply.
  2. Select Settings > Accounts > Access work or school and check for a work or school account you no longer need.
  3. Select that account and select Disconnect if the device is personal and the account is not required.
  4. On a personal PC, open gpedit.msc, find the setting named in the report and set it to Not Configured.
  5. Run gpupdate /force and restart, then reopen the Settings page.

After you enable BitLocker on an unmanaged PC, Windows can show "For your security, some settings are managed by your administrator" even with no policy set. Microsoft lists this as a known issue (KB5051141).

Exclude a specific user or computer from Group Policy

A GPO applies only to accounts that have both Read and Apply group policy permissions. Security filtering controls those permissions.

  1. Create a security group for the users or computers that should get the GPO.
  2. In GPMC, select the GPO and open the Scope tab.
  3. Under Security Filtering, select Authenticated Users, select Remove, then Add your group.
  4. Open the Delegation tab, select Add, choose Authenticated Users (or Domain Computers) and set Read.
  5. Run gpresult /h gp.html on an excluded account's PC and confirm the GPO is listed as denied.

The Read step matters: since security update MS16-072, computers read user GPOs in their own context, and user settings fail without it. An explicit Deny on a user or computer also excludes it, because a deny always overrides an allow.

Exclude users from Group Policy with Security Filtering on the GPO Scope tab
Remove Authenticated Users under Security Filtering and add the group that should receive the GPO. (Image: Microsoft)

Check which GPOs applied with gpresult and Group Policy Results

  1. On the client, run gpresult /r for a summary of applied and filtered GPOs.
  2. Run gpresult /h C:\gp.html /f for a full HTML report and open it in a browser.
  3. In the report, find the setting and check the Winning GPO column.
  4. From GPMC, right-click Group Policy Results and select Group Policy Results Wizard to query a remote PC.
  5. Pick the computer and user, finish the wizard and review the Summary and Settings tabs.

Use /scope computer or /scope user to limit the output. On ARM64 Windows, only the SysWOW64 copy of gpresult supports /h.

Group Policy Results report showing a denied GPO with its security filters
The report's Reason Denied row explains why a GPO did not apply, such as Inaccessible, Empty or Disabled. (Image: Microsoft)

Group Policy troubleshooting guides

GPO settings are not applying

The GPO is unlinked, filtered out, overridden by a higher-precedence link, or has not replicated yet.

  1. Run gpresult /h gp.html and look for the GPO under applied or denied GPOs, with the reason.
  2. In GPMC, check the link is enabled and the GPO status is not disabled for that half.
  3. Check link order and enforced links on parent containers.
  4. Wait for replication or run gpupdate /force, then check again.

Event ID 1129: Group Policy failed because of lack of network connectivity

The client cannot reach a domain controller, often because LDAP port 389 is blocked.

  1. Confirm the PC can reach a domain controller over the network.
  2. Check firewalls between the client and DC for blocked LDAP traffic.
  3. Run gpupdate again once connectivity is back.

User settings stopped applying after security filtering changed

Authenticated Users was removed, so computer accounts lost Read on the GPO.

  1. Open the GPO's Delegation tab and select Add.
  2. Add Authenticated Users or Domain Computers with Read.
  3. Run gpupdate /force and sign in again.

Errors in the event log but no clear cause

The failing step is buried among normal processing events.

  1. In Event Viewer, open the Group Policy error in Windows Logs > System and copy the ActivityID from the Details tab.
  2. Create a custom view of Microsoft-Windows-GroupPolicy/Operational filtered on that ActivityID.
  3. If that is not enough, create HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Diagnostics, add DWORD GPSvcDebugLevel set to hexadecimal 30002, and run gpupdate /force.
  4. Read %windir%\debug\usermode\gpsvc.log (create the usermode folder if it is missing), then delete the value when done.

Windows Group Policy (GPO) FAQ

What does GPO mean in computers and IT?

In Windows IT, GPO stands for Group Policy Object. It is a named collection of policy settings, permissions and scope that Active Directory applies to computers and users. Outside IT, GPO also stands for group purchasing organization, which is unrelated.

What does GPO enforced mean?

An enforced GPO link cannot be overridden by GPOs linked lower in the hierarchy, and Block Inheritance on an OU does not stop it. GPMC marks an enforced link with a padlock icon. If several enforced links conflict, the highest one wins.

What is the difference between Group Policy and a GPO?

Group Policy is the Windows feature that delivers settings. A GPO is one container of settings within it. A domain can hold hundreds of GPOs, each linked to sites, domains or OUs, while every PC also has one local GPO.

How often does Group Policy refresh?

Windows clients and member servers refresh Group Policy every 90 minutes, plus a random offset of up to 30 minutes. Domain controllers refresh every 5 minutes. Run gpupdate /force to apply changes immediately.

Does a domain GPO override local Group Policy?

Yes. The local GPO is processed first, then site, domain and OU GPOs. Because the last applied setting wins, any conflicting domain setting replaces the local one.

Can you link a GPO directly to a user?

No. GPOs link only to sites, domains and OUs. To target specific users, link the GPO to their OU and use security filtering with a security group.

What is the difference between gpedit.msc and gpmc.msc?

gpedit.msc edits the local GPO on the PC you are using. gpmc.msc, the Group Policy Management Console, manages domain GPOs, links, filtering, backups and reports across Active Directory.

How do I see which Group Policies are applied to my PC?

Run gpresult /r in Command Prompt for a summary, or gpresult /h report.html for a full HTML report. The report lists applied and denied GPOs and the winning GPO for each setting.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

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