tzutil /s "W. Europe Standard Time" net stop w32time w32tm /unregister w32tm /register net start w32time w32tm /config /manualpeerlist:0.nl.pool.ntp.org /syncfromflags:manual /reliable:yes /update net stop w32time net start w32time timeout /t 2 /nobreak >nul w32tm /resync timeout /t 2 /nobreak >nul w32tm /resync
E-Zorg PowerShell:
function Run-Command {
param (
[string]$command
)
try {
Invoke-Expression $command
} catch {
Write-Host "Command failed: $command" -ForegroundColor Red
}
}
Run-Command 'tzutil /s "W. Europe Standard Time"'
Run-Command 'net stop w32time'
Run-Command 'w32tm /unregister'
Run-Command 'w32tm /register'
Run-Command 'net start w32time'
Run-Command 'w32tm /config /manualpeerlist:ntp.ezorg.nl /syncfromflags:manual /reliable:yes /update'
Run-Command 'net stop w32time'
Run-Command 'net start w32time'
Start-Sleep -Seconds 2
Run-Command 'w32tm /resync'
Start-Sleep -Seconds 2
Run-Command 'w32tm /resync'