Last active
April 15, 2019 13:26
-
-
Save shadowbq/953d252f19fea2d84da5e07aa2337013 to your computer and use it in GitHub Desktop.
Windows Time Force for Cloud Snapshots
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Reference: https://www.pahoehoe.net/configure-w32time-ntp-on-a-standalone-windows-box/ | |
:: Reference: https://community.spiceworks.com/topic/1951714-ntp-setting-server-2012-r2-settings-not-working | |
:: Reference: https://www.mcbsys.com/blog/2014/08/basic-windows-time-service-setup/ | |
:: ## Look @config | |
w32tm /query /configuration | |
w32tm /query /status | |
:: # Changing the Polling Flag (its listed in decimal seconds) | |
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\ | |
NtpClient\SpecialPollInterval | |
w32tm /dumpreg /subkey:parameters | |
w32tm /dumpreg /subkey:TimeProviders\NtpClient | |
:: ## Change it | |
:: ### In most examples, time.server.com is followed by 0x01, although you indicate that both the 0x01 and 0x08 flags apply (i.e. SpecialInterval + Client). | |
w32tm /config /manualpeerlist:"pool.ntp.org,0x1" /syncfromflags:manual /reliable:yes /update | |
w32tm /config /update | |
net stop w32time && net start w32time | |
w32tm /resync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment