Troubleshooting Time, time service, time sync
All time-related cmd sharing here, Let me know anything missing here.
Not time sync properly, it happen once the time change manually in 5-10 mint delay. Then using time cmd works: w32tm /resync
net start w32time
w32tmdt.cpl
w32tm /query /source > filename.txt
W32tm /query /configuration >> filename.txt
w32tm /query /status /verbose >> filename.txt
W32TM.EXE /query /computer:serverDC1 /status
w32tm /monitor
DISPLAY THE CURRENT TIME ZONE SETTINGS: w32tm /tz
LIST PEERS (EXTERNAL NTP SERVERS): w32tm /query /peers
TIME OFFSET BETWEEN CURRENT COMPUTER TO YOUR DOAMIN:
W32TM.EXE /monitor /computers:AD-HOSTNAME,serverdc2
w32tm /stripchart /computer:time.windows.com /period:120
w32tm /stripchart /computer:"My_Ntp_Server" /samples:5 /dataonly
w32tm /stripchart /computer:computername /samples:1
w32tm /monitor /domain:DOMAIN /nowarn
nltest /dclist:pugazh.co.in
nltest /dsgetdc:pugazh.co.in
net time \\computername
RESTORE WINDOWS TIME SERVICE ON LOCAL COMPUTER TO DEFAULT SETTINGS:
net stop w32time
W32tm /unregister
W32tm /register
net start w32time
w32tm /config /update
---
sc triggerinfo w32time start/networkon stop/networkoff
REDETECT THE NETWORK CONFIGURATION AND RE-SYNC TIME: w32tm /resync /rediscover
Config my PDC Emulator:
w32tm /config /manualpeerlist:"My_Ntp_Server" /syncfromflags:manual /reliable:yes /update
SYNCHRONIZING PDC TIME WITH EXTERNAL SOURCE:
w32tm /config /manualpeerlist:PEERS /syncfromflags:manual /reliable:yes /update
or
w32tm /config /manualpeerlist: "0.ntp.pool.org 1.ntp.pool.org 2.ntp.pool.org"/syncfromflags:manual /reliable:yes /update
net stop w32time && net start w32time
---
To find who is your PDC: netdom /query fsmo | find "PDC"
CHANGE THE WINDOWS TIME SERVICE CONFIGURATION ON THE PDC EMULATOR IN THE FOREST ROOT DOMAIN: w32tm /config /syncfromflags:domhier /reliable:no /update
configure a domain computer for automatic domain time synchronization: w32tm /config /syncfromflags:domhier /update
To enable debug logging: w32tm /debug /enable /file:C:\Windows\Debug\w32tm.log /size:50000000 /entries:0-300
Registry path for time configuration change in manually:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
Turn On Debug Logging for the Windows Time Service:
https://support.microsoft.com/en-us/help/816043/how-to-turn-on-debug-logging-in-the-windows-time-service
Ref:https://blogs.msmvps.com/mweber/2010/06/27/time-configuration-in-a-windows-domain/
Ref:http://blogs.microsoft.co.il/skepper/2016/02/23/w32tm-windows-time-service-useful-commands/
Not time sync properly, it happen once the time change manually in 5-10 mint delay. Then using time cmd works: w32tm /resync
net start w32time
w32tmdt.cpl
w32tm /query /source > filename.txt
W32tm /query /configuration >> filename.txt
w32tm /query /status /verbose >> filename.txt
W32TM.EXE /query /computer:serverDC1 /status
w32tm /monitor
DISPLAY THE CURRENT TIME ZONE SETTINGS: w32tm /tz
LIST PEERS (EXTERNAL NTP SERVERS): w32tm /query /peers
TIME OFFSET BETWEEN CURRENT COMPUTER TO YOUR DOAMIN:
W32TM.EXE /monitor /computers:AD-HOSTNAME,serverdc2
w32tm /stripchart /computer:time.windows.com /period:120
w32tm /stripchart /computer:"My_Ntp_Server" /samples:5 /dataonly
w32tm /stripchart /computer:computername /samples:1
w32tm /monitor /domain:DOMAIN /nowarn
nltest /dclist:pugazh.co.in
nltest /dsgetdc:pugazh.co.in
net time \\computername
RESTORE WINDOWS TIME SERVICE ON LOCAL COMPUTER TO DEFAULT SETTINGS:
net stop w32time
W32tm /unregister
W32tm /register
net start w32time
w32tm /config /update
---
net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:192.168.10.1
w32tm /config /reliable:yes
net start w32time
w32tm /resync /rediscover
sc triggerinfo w32time deletesc triggerinfo w32time start/networkon stop/networkoff
REDETECT THE NETWORK CONFIGURATION AND RE-SYNC TIME: w32tm /resync /rediscover
Config my PDC Emulator:
w32tm /config /manualpeerlist:"My_Ntp_Server" /syncfromflags:manual /reliable:yes /update
SYNCHRONIZING PDC TIME WITH EXTERNAL SOURCE:
w32tm /config /manualpeerlist:PEERS /syncfromflags:manual /reliable:yes /update
or
w32tm /config /manualpeerlist: "0.ntp.pool.org 1.ntp.pool.org 2.ntp.pool.org"/syncfromflags:manual /reliable:yes /update
net stop w32time && net start w32time
---
To find who is your PDC: netdom /query fsmo | find "PDC"
CHANGE THE WINDOWS TIME SERVICE CONFIGURATION ON THE PDC EMULATOR IN THE FOREST ROOT DOMAIN: w32tm /config /syncfromflags:domhier /reliable:no /update
configure a domain computer for automatic domain time synchronization: w32tm /config /syncfromflags:domhier /update
To enable debug logging: w32tm /debug /enable /file:C:\Windows\Debug\w32tm.log /size:50000000 /entries:0-300
Registry path for time configuration change in manually:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
Turn On Debug Logging for the Windows Time Service:
https://support.microsoft.com/en-us/help/816043/how-to-turn-on-debug-logging-in-the-windows-time-service
Ref:https://blogs.msmvps.com/mweber/2010/06/27/time-configuration-in-a-windows-domain/
Ref:http://blogs.microsoft.co.il/skepper/2016/02/23/w32tm-windows-time-service-useful-commands/
Comments
Post a Comment