Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

Windows Server 2025 WORKGROUP 環境で NTP サーバーを構築する

0
Posted at

はじめに

Windows Server 2025 に NTP サーバーを構築する備忘録です。

改訂履歴

  • 2026/07/20 : 初版公開。

本文

1. 環境

  • Windows Server 2025 Datacenter Evaluation 24H2
  • VMware Workstation Pro 25H2u1

2. 構成

以下のようなストラタム構成を想定しています。

3. 手順

サービスから Windows Time が自動開始になっていることを確認します。

補足
昔の Windows(おそらく 8 や Windows Server 2012 以前?)では、時刻同期 (w32time) サービスの起動やレジストリの変更反映を安定させるために、以下のコマンドでトリガーを削除していました。少し調べた感じですが、どうやら Windows Server 2025 では不要なようです。

cmd
sc triggerinfo w32time delete

次にローカルグループポリシーエディターから、コンピューターの構成 → 管理用テンプレート → システム → Windows タイムサービスと移動し、グローバル構成設定を開きます。

有効化し AnnounceFlags5 にします。5 にしておくと、このサーバーを信頼できる時刻サーバーとしてクライアントに通知します。

1 つ下の階層であるタイムプロパイダーに移動し「Windows NTP サーバーを有効にする」設定を有効化します。

念のため、サービスから Windows Time サービスを再起動しておきます。

4. 動作確認

以下のコマンドで NTP サーバーとして応答しているかを確認できます。

cmd
w32tm /stripchart /computer:localhost /samples:5 /dataonly

時刻差が表示されているので、正常に動いていそうです。

おわりに

時刻が大幅にずれた時の復旧は地獄です。

0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?