File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- # Requires -Version 5
2
- # Requires -RunAsAdministrator
1
+ # Requires -RunAsAdministrator
2
+ # Requires -Version 5
3
3
Set-StrictMode - Version 5
4
4
5
5
<#
6
6
. SYNOPSIS
7
- ZOBEC Consulting
8
7
Set Windows Time Service (Commandline Tool)
9
8
(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)
11
10
12
11
. DESCRIPTION
13
12
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 "##############################
88
87
# ###########################
89
88
90
89
# 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"
93
93
94
94
Write-Host " Stopping service w32time"
95
95
Write-Log - LogFile $LogFile - Level INFO - Message " Stopping service w32time"
You can’t perform that action at this time.
0 commit comments