Group Policy Function
Group Policy Function
Understanding and
Troubleshooting Group Policy
Function
Darren Mar-Elia
CTO, Infrastructure Management, Quest Software
MS-MVP for Group Policy
Agenda
Understanding Group Policy Structure
The Mechanics of Group Policy
Processing
Leveraging Group Policy Logging
The Top Group Policy Problems and
Tools for Solving Them
Other Resources
Q&A
Understanding Group Policy
Structure
Group Policy Objects (GPO) are stored
within a given AD domain in two parts
AD – the Group Policy Container (GPC)
SYSVOL – the Group Policy Template
(GPT)
Some policy areas store settings in
both the GPC and GPT; still others use
only the GPC or neither!
The decision is driven by the type of
data needing to be stored
Understanding Group Policy
Structure - the GPC
The GPC stores
general information
about the GPO (e.g.
friendly name, path to
GPT, etc.)
The GPC can be found
in each AD domain
under the cn=Policies,
cn=System container
Each GPC is
referenced by a GPO
GUID
Understanding Group Policy
Structure - the GPT
The GPT contains
folders and files related
to storage of the GPO
settings you specify
The GPT is found in
SYSVOL, replicated to
all DCs under the
Policies folder
Like the GPC, the GPT
is organized by GUID-
named folders,
corresponding to the
GUID of the GPO found
in the GPC
Understanding Group Policy
Structure -GP Versioning
Version numbers are held within both the GPC and
GPT
GPC: held in the versionNumber attribute on the GPC
object
GPT: held in the gpt.ini file in the root of the GPT
Version numbers are incremented:
1 for each machine-specific change
65536 for each user-specific change
In Windows 2000, version numbers must be equal
between GPC & GPT before a client can process a
GPO — AD or FRS replication problems can affect
this
XP and Server 2003 no longer require this
Understanding Group Policy
Structure -GP Storage
Policy Area Storage Location
Wireless In the GPC under CN=wireless,CN=Windows,
CN=Microsoft,CN=Machine within an object of
class msieee80211-Policy (Server 2003 only)
Software Installation In both the GPT & GPC; In the GPT under
both the User and Machine folders in
the Applications folder; In the GPC
under the Machine (or User)\Class Store\
Packages container as
packageRegistration objects
Software Restriction Policy In the GPT, also stored registry.pol
IP Security Yes
Scripts No
Folder Redirection No
Software Installation No
IE Maintenance Yes
Leveraging Group Policy
Logging
GP-related Logging is your best tool for
understanding & troubleshooting GP
operation
There are basically two types of
logging events
Application Event Log on each client
CSE-specific logging
Leveraging Group Policy
Logging —Application Events
Application Events related to Group Policy come
from the following event sources:
Userenv: most GP core events generate this source
Scecli: Security CSE related events
Appmgmt or Application Manager: Software Installation
related events
UserInit: Scripts related events
Folder Redirection: Folder Redirection events
GPMC does a good job of exposing Application
events related to GP
Available through the GP Results wizard
Leveraging Group Policy
Logging —GPMC Application
Event Reporting
Leveraging Group Policy
Logging —Enabling Verbose
Logging
Solution
ICMP is required for GP processing. If disabled, or restricted
(SLD requires minimum 2048 byte ICMP packets) then disable
slow link detection via policy at:
“Computer (and User) Configuration|Administrative Templates|
System|Group Policy|Group Policy Slow Link Detection”*
*Note that this must be disabled for both computer and user
GP Problems and Their
Solutions —
Infrastructure Problems
Problem
FRS & SYSVOL: FRS not replicating GPT content to all SYSVOL
shares — files are missing or permissions are wrong across
replicas; GPOs don’t process because version numbers are
wrong (Win2k) or process incorrectly
Solution
Make sure problem DC has DFS service running; make sure
SYSVOL is shared — refer to KB articles 257338 and 315457 for
fixing SYSVOL problems; use GPOTool to compare GPTs
across DCs; GPMC can fix permission problems if detected; In
a pinch you can manually copy files between GPTs on DCs; use
Ultrasound to monitor FRS
GP Problems and Their
Solutions —Misconfiguration
Problems
Problem
GPO permissioned incorrectly or linked to a
container that targets a group rather than
user or computer
Solution
Use GPMC GP Results or gpresult command-
line tool to see if a GPO is denied or if the
correct GPOs apply; GPOs apply to only
users and computers
GP Problems and Their
Solutions —Misconfiguration
Problems
Problem
GPOs aren’t applying because Block
Inheritance or Enforced flag is set
Solution
Use GPMC to visually see where flags
are set on containers or GP links.
Using GPMC for
Troubleshooting
GP Problems and Their
Solutions —Client Problems
Problem
No GPOs are being processed; errors show unable
to read gpt.ini or other GPT files (specifically
application event log error 1058: “Windows cannot
access the file gpt.ini for GPO” and usually for
computer policy only)
Solution
Verify that client computer has TCP/IP Netbios
Helper service running — required to resolve UNC
path to GPT; see KB# 840669 to tell GP processing
to wait for the network stack to initialize
GP Problems and Their
Solutions —Client Problems
Problem
Folder Redirection is not working — files
aren’t being redirected for users
Solution
Make sure users have proper permission to
create folders if you’re using FR policy to
create the folders on the fly. See KB article #
274443 for required permissions
GP Problems and Their
Solutions —Client Problems
Problem
Applications don’t deploy correctly via Software Installation
policy or require multiple restarts or user logons to apply
Solution
Make sure you entered a UNC path to the package; Use
addiag.exe (Win2k Reskit) to troubleshoot SI deployment; Make
sure a slow link wasn’t detected; If multiple restarts or user
logons are required, disable Fast Logon Optimization (XP only)
by enabling the following policy:
Computer Configuration|Administrative Templates|System|
Logon|Always wait for the network at computer startup and
logon
Enable verbose Windows Installer and Application Management
logging
Resources
“Group Policy
Guide” book
written by myself,
Derek Melber and
William Stanek—
available as part of
the Windows 2003
Resource Kit, 2nd
Edition and
standalone
http://www.microsoft.c
om/mspress/books/87
63.asp
Resources
My website: www.gpoguy.com for tools,
FAQs and additional troubleshooting tips
Jeremy Moskowitz’s website:
www.gpanswers.com for a community forum
on GP as well as FAQs and other resources
Microsoft’s GP Wiki site:
www.grouppolicywiki.com
Mark Minasi’s Forum (I moderate the GP
forum there) at x220.minasi.com/forum
Technet Group Policy Center:
http://www.microsoft.com/technet/prodtechn
ol/windowsserver2003/technologies/
management/gp/default.mspx
We invite you to participate in our
online evaluation on CommNet,
accessible Friday only
If you choose to complete the evaluation online,
there is no need to complete the paper evaluation
© 2005 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.