You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/windows/external-ntpsource-configuration.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Time synchronization in Active Directory should be managed by only allowing the
25
25
26
26
To check current time source in your **PDC**, from an elevated command prompt run *w32tm /query /source* and note the output for later comparison.
27
27
28
-
1. From *Start* run *gpedit.msc*
28
+
1. From *Start* run *gpedit.msc*.
29
29
2. Navigate to the *Global Configuration Settings* policy under *Computer Configuration* -> *Administrative Templates* -> *System* -> *Windows Time Service*.
30
30
3. Set it to *Enabled* and configure the *AnnounceFlags* parameter to **5**.
31
31
4. Navigate to *Computer Settings* -> *Administrative Templates* -> *System* -> *Windows Time Service* -> *Time Providers*.
@@ -55,13 +55,29 @@ To mark the VMIC provider as *Disabled* from *Start* type *regedit.exe* -> In th
55
55
56
56
From an elevated command prompt rerun *w32tm /query /source* and compare the output to the one you noted at the beginning of the configuration. Now it will be set to the NTP Server you chose.
57
57
58
+
>[!TIP]
59
+
>Follow the steps below if you want to speed-up the process of changing the NTP source on your PDC. You can create a scheduled task to run at **System Start-up** with the **Delay** task for up to (random delay) set to **2 minutes**.
60
+
61
+
## Scheduled task to set NTP source on your PDC
62
+
63
+
1. From *Start* run *Task Scheduler*.
64
+
2. Browse to *Task Scheduler* Library -> *Microsoft* -> *Windows* -> *Time Synchronization* -> Right-click in the right hand side pane and select *Create New Task*.
65
+
3. In the *General* tab, click the *Change User or Group...* button and set it to run as *LOCAL SERVICE*. Then check the box to *Run with highest privileges*.
66
+
4. Under *Configure for:* select your operating system version.
67
+
5. Switch to the *Triggers* tab, click the *New...* button, and set the schedule as per your requirements. Before clicking *OK*, make sure the box next to *Enabled* is checked.
68
+
6. Go to the *Actions* tab. Click the *New...* button and enter the following details:
69
+
- On *Action:* set *Start a program*.
70
+
- On *Program/script:* set the path to *%windir%\system32\w32tm.exe*.
71
+
- On *Add arguments:* type */resync*, and click *OK* to save changes.
72
+
7. Under the *Conditions* tab ensure that *Start the task only if the computer is in idle for* and *Start the task only if the computer is on AC power* is *not selected*. Click *OK*.
73
+
58
74
## GPO for Clients
59
75
60
76
Configure the following Group Policy Object to enable your clients to synchronize time with any Domain Controller in your Domain:
61
77
62
78
To check current time source in your client, from an elevated command prompt run *w32tm /query /source* and note the output for later comparison.
63
79
64
-
1. From a Domain Controller go to *Start* run *gpmc.msc*
80
+
1. From a Domain Controller go to *Start* run *gpmc.msc*.
65
81
2. Browse to the Forest and Domain where you want to create the GPO.
66
82
3. Create a new GPO, for example *Clients Time Sync*, in the container *Group Policy Objects*.
0 commit comments