Automatically configure the new server W32Time


Select * from Win32_ComputerSystem where DomainRole = 5

ValueMeaning
0Standalone Workstation
1Member Workstation
2Standalone Server
3Member Server
4Backup Domain Controller
5Primary Domain Controller

Step by step process:

This settings automatically configure the W32Time source in regedit

  1. On a DC, launch Group Policy Management by selecting it from the Tools menu of Server Manager.
  2. In the left pane of the Group Policy Management console, right-click WMI Filters and select New.
  3. In the New WMI Filter window, supply a name for the filter (for example, PDC Emulator WMI Filter). Optionally, supply a description as well.
  4. Click the Add button.
  5. Confirm that root\CIMv2 is specified in the Namespace field. (It should be by default.)
  6. In the Query field, type Select * from Win32_ComputerSystem where DomainRole=5 and click OK.
  7. Click Save to save the filter. Do not close Group Policy Management.

Next, the GPO can be created by following these steps:

  1. In the left pane of Group Policy Management, right-click Group Policy Objects and select New.
  2. In the New GPO window, give the new GPO a name and click OK.
  3. Select Group Policy Objects in the left pane (if not already selected). Right-click the GPO that you created and select Edit.
  4. In the left pane of Group Policy Management Editor, expand Computer ConfigurationPoliciesAdministrative TemplatesSystem, and Windows Time Service. Select Time Providers.
  5. Right-click Configure Windows NTP Client and select Edit.
  6. Select the Enabled radio button.
  7. From the Type dropdown list, select NTP.
  8. In the NtpServer field, type the name or IP address of one or more NTP servers. Entries in this list should be separated by spaces, and 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.
  9. The other policy settings can typically be left at their default values. Click OK.
  10. Right-click Enable Windows NTP Client and select Edit.
  11. Select the Enabled radio button and click OK.
  12. Close Group Policy Management Editor.

Apply the WMI filter to the GPO by following these steps:

  1. In the left pane of Group Policy Management, expand Group Policy Objects and select the GPO you created.
  2. In the center pane, select the Scope tab and scroll down to the WMI Filtering section.
  3. Click the dropdown menu and select the WMI filter you created earlier. Click Yes to confirm.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.