Skip to content

Commit 4667680

Browse files
author
Michal Zobec
committed
Update Set-WindowsTime.ps1
added ntp czech pool servers details about project https://www.ntppool.org/zone/cz
1 parent 9a4ed67 commit 4667680

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Set-WindowsTime/Set-WindowsTime.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
#Requires -Version 5
2-
#Requires -RunAsAdministrator
1+
#Requires -RunAsAdministrator
2+
#Requires -Version 5
33
Set-StrictMode -Version 5
44

55
<#
66
.SYNOPSIS
7-
ZOBEC Consulting
87
Set Windows Time Service (Commandline Tool)
98
(c) 2018-2019 ZOBEC Consulting, Michal Zobec. All Rights Reserved.
10-
Licensed under [Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/)
9+
Licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
1110
1211
.DESCRIPTION
1312
For single run configure and start Windows Time Service with defined time (NTP) servers.
@@ -88,8 +87,9 @@ Write-Log -LogFile $LogFile -Level INFO -Message "##############################
8887
############################
8988

9089
# variables
91-
# list of ntp servers
92-
$PeerList = "tik.cesnet.cz tak.cesnet.cz ntp.nic.cz"
90+
# list of pool of ntp czech servers
91+
# https://www.ntppool.org/zone/cz
92+
$PeerList = "0.cz.pool.ntp.org 1.cz.pool.ntp.org 2.cz.pool.ntp.org 3.cz.pool.ntp.org"
9393

9494
Write-Host "Stopping service w32time"
9595
Write-Log -LogFile $LogFile -Level INFO -Message "Stopping service w32time"

0 commit comments

Comments
 (0)