Divide the Custom View of the Log into Three Phases: Preprocessing
This phase begins the Group Policy processing and gathers
information that is required to process Group Policy. The information
gathered in this phase is used to cycle through each Group Policy
extension. During this phase, the Group Policy service collects
information that will be used to process each CSE. This information can
be divided into small subsets, which include the following:
-
Start policy processing
-
Retrieve account information
-
Domain controller discovery
-
Computer role discovery
-
Security principal discovery
-
Loopback processing mode discovery
-
GPO discovery
-
Slow link detection
-
Nonsystem GP extension discovery
For
each subset in the preprocessing phase, specific event IDs are
generated. The ability to track an event ID to a specific portion of
the preprocessing phase can help significantly in identifying the root
problem with Group Policy. Each subset is defined in the following
sections.
When the computer starts, a user logs on, a refresh occurs,
or there is a change to a network interface, an instance of Group
Policy is recorded in Event Viewer. This instance is tracked via the
ActivityID, and one of the start events is recorded with it. The start
events range from 4000 to 4007 and are described in Table 1.
Table 1. Group Policy Start Events
Event ID |
Start Event Type |
4000 |
Computer start-up |
4001 |
User logon |
4002 |
Computer network change |
4003 |
User network change |
4004 |
Computer manual refresh |
4005 |
User manual refresh |
4006 |
Computer periodic refresh |
4007 |
User periodic refresh |
For processing to occur, the Group Policy service must acquire the
location of the user and computer object in Active Directory. This
determines the SOM for the objects. Two sets of event IDs are recorded
for this portion of the preprocessing phase. They include the following:
Informational/success interaction event
Trace component event
-
During the information gathering phase, the Group Policy service
calls other functions in Windows, referred to as system calls. These
events are recorded in Event Viewer and report one or more event IDs:
-
4017 - Start-trace event: The beginning of a system call described in the event.
-
5017 - Success end-trace event: The system call described in the event completed successfully.
-
6017 - Warning end-trace event: The system call described in the event completed with one or more errors.
-
7017 - Error end-trace event: The system call described in the event failed to complete.
Tip
All end-trace events contain the elapsed time used by the system
call. A call that takes too much time could indicate that there is a
problem. The Details tab (explained earlier) indicates the status of
the end-trace event and the elapsed time.
Domain Controller Discovery
For Group Policy to process successfully, a domain controller must
be discovered. During the discovery procedure, the system binds to
Active Directory, discovers a domain controller to connect to, and
makes a connection to the domain controller. The event IDs associated
with each step in the process include the following:
Domain controller discovery start event
DC discovery interaction event
Domain controller discovery end event
Group Policy is applied based on the computer role and membership in
a domain. Group Policy applies differently based on the computer role.
The roles that a computer can have include those listed in Table 2.
Table 2. Computer Roles and Values
Value |
Computer role |
0 |
The current computer is a stand-alone workstation or server. |
1 |
The current computer is a member of a domain that does not support directory services. |
2 |
The current computer is a member of a domain that supports directory services. |
3 |
The current computer is a domain controller. |
The events that will be written into the log, including these
computer role values, will fall under the following category and event
IDs:
Computer information event
Security Principal Discovery
Because Group Policy applies only to computer and user objects, this
portion of the process determines whether the current object focus is a
user or computer so that the appropriate settings can be applied. This
is written to the log with the following category and event IDs:
Security principal information event
Loopback Processing Mode Discovery
Because loopback processing alters the default Group Policy
processing behavior, the Group Policy service must be aware of any
loopback settings. The following category and event IDs are registered after the loopback processing information is gathered:
Loopback processing mode event
After all of the initial information is gathered to create a list of
applicable GPOs, the Group Policy service discovers the final list of
GPOs that will apply to the computer or user object. After obtaining
the list, the Group Policy service checks the accessibility of each GPO
by reading the gpt.ini file. It uses the gpt.ini file location on the
domain controller discovered in the domain discovery step. The events
that could be recorded include the following:
-
5017 - Success end-trace event: The system call described in the event completed successfully.
-
6017 - Warning end-trace event: The system call described in the event completed with one or more errors.
-
7017 - Error end-trace event: The system call described in the event failed to complete.
After the gpt.ini files are checked, the system performs an
additional check and records the following Applied GPO list event and
event IDs:
Applied GPO list event
Finally, the system ends this portion of the phase by listing the
filtered GPOs. The system processes the following Filtered GPO list
event and event IDs:
Filtered GPO list event
Multiple components rely on the speed of the network for the
application of policy settings. For the Group Policy service to
determine this criteria, it must perform two steps. First, it must
determine the speed of the network. Second, it must determine whether
the configured slow link setting in Group Policy classifies the
determined speed as slow or fast. The following two events record this
behavior, along with the associated event IDs:
Estimated bandwidth event
Network information event
This event will have the following event IDs associated with it:
-
5314 - Success network information event: The Group Policy service successfully determined a slow or fast link.
-
6314 - Warning network information event: The Group Policy service
encountered one or more errors when determining a slow or fast link.
-
7314 - Error network information event: The Group Policy service
encountered an error when attempting to determine a slow or fast link.
Nonsystem GP Extension Discovery
Any third-party Group Policy extensions that need to process are
also tracked. The Group Policy service runs in a separate service host
process from nonsystem extensions (third-party extensions) for
stability reasons. This information is reported under the following
event and event IDs:
Operational information event