Learn › Windows Server

Group Policy: Create, Link and Troubleshoot GPOs

How Group Policy is applied, how to create and link a GPO safely, and how to find out why a policy did – or didn't – apply using gpresult and RSOP.

Intermediate 11 min read
By Gopinath Karthikeyan

Group Policy lets you configure thousands of Windows computers and users from one place – password rules, firewall settings, mapped drives, security baselines. Used carefully it saves enormous time. Used carelessly, one click can break logons for a whole company. This guide focuses on doing it safely.

How it works

A Group Policy Object (GPO) is a set of settings. You link it to a site, domain or OU, and every computer or user in that container applies it.

Each GPO has two halves:

  • Computer Configuration – applies at startup and every ~90 minutes, to computer objects
  • User Configuration – applies at logon and every ~90 minutes, to user objects

A GPO linked to an OU of users does nothing with its Computer settings, and the other way round. This is the most common “my policy isn’t working” mistake.

Processing order: L-S-D-OU

GPOs apply in this order, and the last one wins on conflicts:

  1. Local policy on the machine
  2. Site
  3. Domain
  4. OU – parent OUs first, then the OU the object sits in

Two switches change that:

  • Enforced (on a link) – this GPO wins even over GPOs linked lower down
  • Block Inheritance (on an OU) – ignore GPOs from above, except enforced ones

Use both sparingly; they make troubleshooting harder.

Group Policy processing order: Local, Site, Domain, OU, child OU – last applied wins Local policy On the machine itself Local policy Machine-லேயே உள்ளது 1 Site GPOs linked to the AD site Site AD site-க்கு link செய்தவை 2 Domain e.g. Default Domain Policy Domain எ.கா. Default Domain Policy 3 OU: Servers GPOs linked to the OU OU: Servers OU-க்கு link செய்தவை 4 Child OU: Web Closest to the object – applied last Child OU: Web Object-க்கு அருகில் – கடைசியாக apply 5 On a conflict, the last applied wins Except “Enforced” links, which can’t be overridden Conflict வந்தால் கடைசியாகapply ஆனதே வெல்லும் “Enforced” link-களை override செய்ய முடியாது
Windows applies policies Local → Site → Domain → OU → child OU. A setting from a later GPO overrides an earlier one unless the earlier link is Enforced.Windows policies-ஐ Local → Site → Domain → OU → child OU வரிசையில் apply செய்கிறது. Enforced இல்லையென்றால், பின்னால் வரும் GPO முந்தையதை override செய்யும்.
  1. Open Group Policy Management (gpmc.msc).
  2. Right-click Group Policy Objects → New. Name it clearly, e.g. CMP-Servers-Firewall-Baseline (CMP = computer settings).
  3. Right-click it → Edit, configure your settings, close the editor.
  4. Test first: link it to a test OU with a couple of test machines.
  5. On a test machine run gpupdate /force, then check the result (below).
  6. Only then link it to the real OU, ideally in a change window.

You can also filter who applies a GPO: in the Security Filtering section, replace Authenticated Users with a specific group (keep Domain Computers or Authenticated Users with Read on the Delegation tab, or the GPO won’t be read at all).

PowerShell equivalents:

New-GPO -Name 'CMP-Servers-Firewall-Baseline' -Comment 'Owner: Windows team'
New-GPLink -Name 'CMP-Servers-Firewall-Baseline' -Target 'OU=Test,OU=Servers,DC=contoso,DC=local'
Get-GPInheritance -Target 'OU=Servers,DC=contoso,DC=local'

Troubleshoot: did my policy apply?

On the affected machine (as admin for computer settings):

gpupdate /force
gpresult /r                      # summary: which GPOs applied or were filtered out, and why
gpresult /h C:\Temp\gp.html      # full HTML report – open it in a browser

In the report, look for:

  • Applied GPOs – is yours listed?
  • Denied GPOs – with a reason such as Security filtering, Empty, WMI filter, or Disabled link
  • Winning GPO – for each setting, which GPO actually set it

Checklist when a policy doesn’t apply:

  1. Is the object in the OU the GPO is linked to?
  2. Is the setting in the right half (Computer vs User)?
  3. Is the link enabled, and is the GPO’s status not All settings disabled?
  4. Does security filtering include this user/computer, with Read and Apply rights?
  5. Is another GPO later in the order overriding it?
  6. Can the machine reach a domain controller and SYSVOL? Check Event Viewer → Applications and Services Logs → Microsoft → Windows → GroupPolicy → Operational.

Back up before you change

Backup-GPO -All -Path 'D:\GPOBackup'           # back up every GPO
Get-GPOReport -Name 'CMP-Servers-Firewall-Baseline' -ReportType Html -Path C:\Temp\gpo.html

Back up GPOs before any big change, and store the reports with your change record.

FAQ

How quickly do GPO changes reach machines? Within about 90 minutes (plus a random offset) on members, 5 minutes on domain controllers. gpupdate /force applies them now. Some settings, like software installation, need a restart or logon.

Should I edit the Default Domain Policy? Only for the account policies (password, lockout, Kerberos). Put everything else in your own, clearly named GPOs.

What’s next

Next: IIS basics – sites, app pools, bindings and logs.

Practise this topic

Test yourself with free questions on this topic – instant answers and explanations.

Start practice questions

Group PolicyActive DirectoryWindows ServerTroubleshooting

Gopinath Karthikeyan

Gopinath Karthikeyan – Windows Site Reliability Engineer with about 12 years in enterprise Windows Server infrastructure, and founder of WinOps Academy. YouTube · LinkedIn

More in Windows Server