Below procedure is used to configure NTP client on windows server (power shell commands)
Open Power Shell as Administrator
Run the below commands
PS C:\Users\testuser>w32tm /config /manualpeerlist:"0.rhel.pool.ntp.org 1.rhel.pool.ntp.org 2.rhel.pool.ntp.org 3.rhel.pool.ntp.org 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" /syncfromflags:MANUAL
PS C:\Users\testuser>Stop-Service w32time
PS C:\Users\testuser>Start-Service w32time
PS C:\Users\testuser>w32tm /query /status
PS C:\Users\testuser> w32tm /query /status
Leap Indicator: 0(no warning)
Stratum: 3 (secondary reference - syncd by (S)NTP)
Precision: -6 (15.625ms per tick)
Root Delay: 0.0625000s
Root Dispersion: 0.3055127s
ReferenceId: 0xAC18000B (source IP: 172.0.0.11)
Last Successful Sync Time: 12/7/2017 8:44:49 AM
Source: 0.rhel.pool.ntp.org
Poll Interval: 15 (32768s)
PS C:\Users\testuser>w32tm /resync
Saturday, December 9, 2017
NTP client configuration in Windows Server - PowerShell
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment