時間を正確に自動設定する

たまたまWindows Serverの時計をみたら5分も遅れていたので、NTPサーバの設定をしたので、そのメモ

net time /setsntp:<NTPサーバ> ・・・NTPサーバをセット
w32tm /config /update ・・・設定を反映
w32tm /resync ・・・同期

その他のコマンド

net time /querysntp ・・・設定されているNTPサーバ確認