Windows NTP server

This document explains how to enable and disable the Windows NTP server.

Note: Commands here must be run in an administrative command prompt

Installing and enabling the NTP server

Enabling the Windows NTP server and adding a firewall rule

w32tm /register
netsh advfirewall firewall add rule name="Windows Time Service" dir=in action=allow profile=private,domain service=w32time

Alternative configuration

The firewall command can be altered to get more precise control of who can sync the time. Options here replace identical options in the command above

Enabling and disabling the rule

netsh advfirewall firewall set rule name="Windows Time Service" new enable=X

Set X to no or yes

Uninstalling the NTP server

w32tm /unregister
netsh advfirewall firewall delete rule name="Windows Time Service" dir=in

Copyright © 2022 by Kevin Gut 📧 | More services | Generated for 3.144.102.91