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:
- Local policy on the machine
- Site
- Domain
- 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.
Create and link a GPO – the safe way
- Open Group Policy Management (
gpmc.msc). - Right-click Group Policy Objects → New. Name it clearly, e.g. CMP-Servers-Firewall-Baseline (CMP = computer settings).
- Right-click it → Edit, configure your settings, close the editor.
- Test first: link it to a test OU with a couple of test machines.
- On a test machine run
gpupdate /force, then check the result (below). - 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:
- Is the object in the OU the GPO is linked to?
- Is the setting in the right half (Computer vs User)?
- Is the link enabled, and is the GPO’s status not All settings disabled?
- Does security filtering include this user/computer, with Read and Apply rights?
- Is another GPO later in the order overriding it?
- 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 questionsGroup PolicyActive DirectoryWindows ServerTroubleshooting