Closed jakobwest closed 5 years ago
Hi, Thank you for reporting this. In your case, the configuration is wrong or at least incomplete.
Each entry in your case should have a comma and after a comma one of 4 values. time.windows.com,0x1
is the default.
Of course, it may be that it works but you're missing interval setting and my code is not checking if split succeeded (to account the interval value) - which is why I need to fix it. But in your case, you should fix it as well.
That was it! I adjusted the config on my DC as you suggested, and everything is working now. Thanks for the quick response, and thanks for teaching me something new.
Great. Thank you. I've actually updated test now:
And
Err:
Here's proper test.
When running the Time Settings tests against the primary DC in our domain I get the error message:
I found that, under the covers, the command "Get-PSRegistry -ComputerName $_ -RegistryPath "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters" is being executed, which, in my case produces the following output:
In reviewing the PS code, I'm not sure what the intention is by splitting the $TimeParameters.NtpServer list into the $NtpServers array, and then iterating over that array to split it again? In my case, this definitely doesn't work, and it seems there should be a check of the $NtpServers list before attempting the latter operation.
Any help would be greatly appreciated! Thanks