param( [parameter(mandatory=$true)]$computer ) $sb = { set-itemproperty -path `
HKLM:\system\currentcontrolset\services\w32time\timeproviders\ntpserver `
-name "Enabled" -value "1" restart-service w32time w32tm /resync } invoke-command -script $sb -computer $computer
2023 - Update to this article. It is possible for a server to have a value of 1 on the Enabled dword
for ntserver and the server still reports that it is not advertising. There is a group policy setting
that can prevent the machine from acting as an NTP server which will block the service from working and won't
present anything obvious in the registry.
No comments:
Post a Comment