mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
Added WPFFixesNTPPool (#4290)
* Added WPFFixesNTPPool * Create Invoke-WPFFixesNTPPool.ps1 * Update Invoke-WPFFixesNTPPool.ps1 * Update Invoke-WPFFixesNTPPool.ps1 * Update Invoke-WPFFixesNTPPool.ps1 * Merge branch 'ChrisTitusTech:main' into patch-11 * Update NTP server to pool.ntp.org for improved synchronization
This commit is contained in:
20
functions/public/Invoke-WPFFixesNTPPool.ps1
Normal file
20
functions/public/Invoke-WPFFixesNTPPool.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
function Invoke-WPFFixesNTPPool {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Configures Windows to use pool.ntp.org for NTP synchronization
|
||||
|
||||
.DESCRIPTION
|
||||
Replaces the default Windows NTP server (time.windows.com) with
|
||||
pool.ntp.org for improved time synchronization accuracy and reliability.
|
||||
#>
|
||||
|
||||
Start-Service w32time
|
||||
w32tm /config /update /manualpeerlist:"pool.ntp.org,0x8" /syncfromflags:MANUAL
|
||||
|
||||
Restart-Service w32time
|
||||
w32tm /resync
|
||||
|
||||
Write-Host "================================="
|
||||
Write-Host "-- NTP Configuration Complete ---"
|
||||
Write-Host "================================="
|
||||
}
|
||||
Reference in New Issue
Block a user