Setting Time Server

To set a time server by either IP or fqdn for non-domain joined clients.

For instructions on how to deploy from MDT (here)

<#

.Synopsis
Set Time Server for non-domain joined clients (0x8) to fqdn's address

.Description

.Version

#>

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\Parameters' -name NTPServer -Value "pool.ntp.org time.windows.com,0x8 time.google.com,0x8 " -Force

<#

.Synopsis
​Set Time Server for non-domain joined clients (0x8) to time server IP address

.Description

.Version

#>

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\Parameters' -name NTPServer -Value "192.168.0.10,0x8 192.168.0.11,0x8" -Force