top of page
Search

Setting Windows Time Server with PowerShell


​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

5 views0 comments

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page