Skip to content

Commit fb13f47

Browse files
authored
Merge pull request #97651 from DevOpsStyle/ntp-external-source-fast-config-load
Ntp external source fast config load
2 parents 5ac6b8e + a7409f0 commit fb13f47

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

articles/virtual-machines/windows/external-ntpsource-configuration.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Time synchronization in Active Directory should be managed by only allowing the
2525
2626
To check current time source in your **PDC**, from an elevated command prompt run *w32tm /query /source* and note the output for later comparison.
2727

28-
1. From *Start* run *gpedit.msc*
28+
1. From *Start* run *gpedit.msc*.
2929
2. Navigate to the *Global Configuration Settings* policy under *Computer Configuration* -> *Administrative Templates* -> *System* -> *Windows Time Service*.
3030
3. Set it to *Enabled* and configure the *AnnounceFlags* parameter to **5**.
3131
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
5555
5656
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.
5757

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+
5874
## GPO for Clients
5975

6076
Configure the following Group Policy Object to enable your clients to synchronize time with any Domain Controller in your Domain:
6177

6278
To check current time source in your client, from an elevated command prompt run *w32tm /query /source* and note the output for later comparison.
6379

64-
1. From a Domain Controller go to *Start* run *gpmc.msc*
80+
1. From a Domain Controller go to *Start* run *gpmc.msc*.
6581
2. Browse to the Forest and Domain where you want to create the GPO.
6682
3. Create a new GPO, for example *Clients Time Sync*, in the container *Group Policy Objects*.
6783
4. Right-click on the newly created GPO and Edit.

0 commit comments

Comments
 (0)