Skip to content

Instantly share code, notes, and snippets.

@rpunt rpunt/ntpconfig.ps1
Created Jan 21, 2019

Embed
What would you like to do?
Configure NTP on windows server
# from an elevated prompt
Stop-service w32time
w32tm /config /syncfromflags:manual /manualpeerlist:"server1.domain.tld,server2.domain.tld"
w32tm /config /reliable:yes
start-service w32time
# get sync status
W32tm /query /status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.