一、每隔4小時(shí)同步網(wǎng)絡(luò)時(shí)間服務(wù)器的時(shí)間
sc config RpcLocator start= AUTO
sc config W32Time start= AUTO
net start "Remote Procedure Call (RPC) Locator"
net start "windows time"
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient" /v SpecialPollInterval /t reg_dword /d 0x00003840 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers" /v 0 /t reg_sz /d 210.72.145.44 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /t reg_sz /d 0 /f
二、同步局域網(wǎng)內(nèi)某臺(tái)電腦的時(shí)間
net use IP或計(jì)算機(jī)名\ipc$ "服務(wù)器的密碼" /user:"服務(wù)器的用戶名"
net time IP或計(jì)算機(jī)名 /set /yes
以上兩種方法都必須把內(nèi)容復(fù)制到新建的“文本”內(nèi),然后取名為 ****.BAT 就可以做成批處理文件來(lái)運(yùn)行了。
聯(lián)系客服