From e0118aabe5752c2b85868685f792ca363f7e5360 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:17:27 -0700 Subject: [PATCH] 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 --- config/feature.json | 10 ++++++++++ functions/public/Invoke-WPFFixesNTPPool.ps1 | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 functions/public/Invoke-WPFFixesNTPPool.ps1 diff --git a/config/feature.json b/config/feature.json index 498c1752..8d5d6f58 100644 --- a/config/feature.json +++ b/config/feature.json @@ -11,6 +11,16 @@ "InvokeScript": [], "link": "https://winutil.christitus.com/dev/features/features/dotnet" }, + "WPFFixesNTPPool": { + "Content": "Configure NTP Server", + "Description": "Replaces the default Windows NTP server (time.windows.com) with pool.ntp.org for improved time synchronization accuracy and reliability.", + "category": "Fixes", + "panel": "1", + "Type": "Button", + "ButtonWidth": "300", + "function": "Invoke-WPFFixesNTPPool", + "link": "https://winutil.christitus.com/dev/features/fixes/ntppool" + }, "WPFFeatureshyperv": { "Content": "HyperV Virtualization", "Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.", diff --git a/functions/public/Invoke-WPFFixesNTPPool.ps1 b/functions/public/Invoke-WPFFixesNTPPool.ps1 new file mode 100644 index 00000000..64588b46 --- /dev/null +++ b/functions/public/Invoke-WPFFixesNTPPool.ps1 @@ -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 "=================================" +}