@echo off
chcp 65001 >nul

:: Auto admin
cacls "%SystemRoot%\System32\config\system" >nul 2>&1 || (
  echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\uac.vbs"
  echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\uac.vbs"
  "%temp%\uac.vbs"
  del "%temp%\uac.vbs" >nul
  exit /b
)

w32tm /config /manualpeerlist:"ntp.aliyun.com" /syncfromflags:manual /reliable:yes /update
net stop w32time >nul
net start w32time >nul
w32tm /resync /force
w32tm /query /status

pause >nul