How to Configure the Windows Time Service on the PDC Emulator with Group Policy
Summary: The domain controller (DC) that holds the PDC Emulator role serves as the authoritative time source for its domain. For this reason, the PDC Emulator in the root domain must obtain its time from an external source. Everything else in the forest should obtain time from the domain hierarchy. When the PDC Emulator role is transferred to another DC, forgetting to change its time source can result in loss of accurate time throughout the domain. This article shows how to use Group Policy and a WMI filter to configure the PDC Emulator to synchronize with an external time source. If the PDC Emulator role is transferred to another DC, the WMI filter updates the new DC's configuration automatically at the next policy refresh. ...
Instructions
In this article, a Group Policy object (GPO) is created to configure the Windows Time service to synchronize with one or more external sources. A WMI filter is then used with the GPO to restrict this configuration to the PDC Emulator. Everything else in the domain should get time from the directory service hierarchy, which is the default behavior for domain-joined systems.
The WMI filter should be created first by following these steps:
- On a DC, launch Group Policy Management by selecting it from the Tools menu of Server Manager.
- In the left pane of the Group Policy Management console, right-click WMI Filters and select New.
- In the New WMI Filter window, supply a name for the filter (for example, PDC Emulator WMI Filter). Optionally, supply a description as well.
- Click the Add button.
- Confirm that root\CIMv2 is specified in the Namespace field. (It should be by default.)
- In the Query field, type
Select * from Win32_ComputerSystem where DomainRole=5and click OK. - Click Save to save the filter. Do not close Group Policy Management.
Next, the GPO can be created by following these steps:
- In the left pane of Group Policy Management, right-click Group Policy Objects and select New.
- In the New GPO window, give the new GPO a name and click OK.
- Select Group Policy Objects in the left pane (if not already selected). Right-click the new GPO and select Edit.
- In the left pane of Group Policy Management Editor, expand Computer Configuration, Policies, Administrative Templates, System, and Windows Time Service. Select Time Providers.
- Right-click Configure Windows NTP Client and select Edit.
- Select the Enabled radio button.
- From the Type dropdown list, select NTP.
- In the NtpServer field, type the name or IP address of one or more NTP servers. Use spaces to separate entries in this list. Each entry should have the 0x8 flag appended to it with a comma (for example,
pool.ntp.org,0x8 time.windows.com,0x8). Lists of public NTP servers can be found online. - The other policy settings can typically be left at their default values. Click OK.
- Right-click Enable Windows NTP Client and select Edit.
- Select the Enabled radio button and click OK.
- Close Group Policy Management Editor.
Apply the WMI filter to the GPO by following these steps:
- In the left pane of Group Policy Management, expand Group Policy Objects and select the GPO that you created.
- In the center pane, select the Scope tab and scroll down to the WMI Filtering section.
- Click the dropdown menu and select the WMI filter. Click Yes to confirm.
Once the GPO has been created and the WMI filter applied to it, the GPO must be linked to the Domain Controllers organizational unit (OU). To do this, right-click Domain Controllers in the left pane of Group Policy Management and select Link an existing GPO. Select the GPO that you created and click OK.
From an elevated command prompt on the PDC Emulator, run gpupdate /force to refresh Group Policy. When the policy refresh completes, run w32tm /query /configuration. Settings configured by the GPO will show (Policy) after their values. Finally, run w32tm /query /status to confirm that the DC's clock has synchronized successfully with one of the time sources specified in the GPO.
This video provides a demonstration of this procedure:
Configure Time on the PDC Emulator with Group Policy
Duration: 00:10:23 (hh:mm:ss)
When available, closed caption (subtitles) language settings can be chosen using the CC icon on this video player.