Created
August 25, 2020 08:30
-
-
Save heetbeet/ba77a4c3e97025444112ceae55e6ace8 to your computer and use it in GitHub Desktop.
Manually sync microsoft time
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 | |
if "%~1" equ "isadmin" goto :runmain | |
powershell "Start-Process -FilePath '%~f0' -WorkingDirectory '%~dp0' -Verb RunAs -ArgumentList isadmin" | |
goto :eof | |
:runmain | |
net start W32Time | |
w32tm /resync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment