将下面内容复制到记事本,保存成ntp.bat

net stop w32Time
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient /f /v SpecialPollInterval /t REG_DWORD /d 600
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient /f /v SpecialPollTimeRemaining /t REG_MULTI_SZ /d "pool.ntp.org,0"
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /f /v 0 /t REG_SZ /d "pool.ntp.org"
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /f /t REG_SZ /d "0"
net start w32Time
05-07 15:25