Created
February 11, 2018 07:15
-
-
Save umer936/ce3cf1e2667bd5885ea6577f451d8935 to your computer and use it in GitHub Desktop.
Windows/Linux Synctime
This file contains 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 && net start w32time && w32tm /resync /nowait && C:\Windows\System32\w32tm.exe /resync && net start w32time && w32tm /resync /nowait && C:\Windows\System32\w32tm.exe /resync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basically just restarts the Windows timekeeping service twice and asks to resync from Internet Time. This is used to keep clocks happy when dualbooting Windows and Linux. You must have internet access before running this script.
I had this script in my startup folder
C:\Users\**Username**\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
(easily accessible by opening "Run" and typingshell:startup
). Then I had a shortcut to the script on my Desktop in case my internet didn't connect in time and I needed to run it again.