Fix Windows Time Sync: Restore RPC & Correct Clock Drift
Fix Windows time sync issues by restarting RPC services, opening ports 135 and 123, and ensuring accurate clocks for Kerberos, tasks, and file timestamps.
How to change time on windows
Ever noticed that odd timestamp glitch when you log into a shared drive? That’s the clock’s way of shouting, “
We’ve all felt that jarring moment when a file timestamp looks off, or a scheduled task misses its cue. The culprit? Time drift. In Windows, time sync hinges on a quiet but powerful protocol called Remote Procedure Call, or RPC. RPC is the courier that delivers time requests from your PC to the authoritative source—be it a domain controller or an NTP server.
RPC is the backbone of Windows Time Service (w32time). When RPC is healthy, your system can ask a trusted peer for the current time, receive a reply, and adjust its clock automatically. If RPC hiccups, the time service stalls, and Windows throws an “RPC server unavailable” error, like a broken road blocking a delivery truck.
Why Clock Accuracy Matters
- Kerberos authentication depends on synchronized clocks; a drift of more than five minutes breaks ticket validation.
- Scheduled tasks rely on accurate timestamps; a misaligned clock can cause tasks to fire late or never.
- File‑system timestamps become unreliable, complicating backups and audits.
In one midsize firm, a misconfigured firewall stopped RPC traffic. Kerberos tickets failed, users couldn’t log in, and scheduled backups skipped. The problem vanished when the firewall rule was fixed and RPC was restarted.
How RPC Drives Time Sync
- Your PC sends a time request via RPC.
- The authoritative source replies with the exact timestamp.
- w32time adjusts the local clock.
If any link breaks—service stopped, port blocked, or corrupted binaries—the chain collapses, and the system falls back to the local CMOS clock.
Keeping RPC Alive
- Services.msc: Restart Remote Procedure Call (RPC) and RPC Locator.
- PowerShell:
Get-Service RpcSs,RpcLocator | Restart-Service -Force. - Ensure startup type is Automatic.
- Verify ports 135 (RPC) and 123 (NTP) are open.
When you run w32tm /query /status, a source of Local CMOS Clock signals that RPC isn’t fetching external time.
Synchronize with an NTP Server
- Stop the time service:
Stop-Service w32time. - Configure a reliable NTP peer:
w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /reliable:yes /update. - Start the service again:
Start-Service w32time. - Force a resync:
w32tm /resync /force.
After these steps, the clock should sync within milliseconds.
Adjusting Timezone via PowerShell
1Get-TimeZone -ListAvailable | Where-Object {$_.DisplayName -like "*Pacific*"} | Format-Table DisplayName, Id2Set-TimeZone -Id "Pacific Standard Time"3Get-TimeZoneThis script lists zones, sets Pacific Standard Time, and confirms the change.
Forest VPN and RPC
If you’re using Forest VPN, remember it may route traffic through a VPN tunnel that blocks RPC ports. Ensure the VPN allows TCP 135 and UDP 123; otherwise you’ll see the same “RPC server unavailable” message.
Forest VPN Benefits
- Convenience: Seamlessly connect to your workplace network without complex configuration.
- Affordability: Competitive pricing plans that fit both home users and small businesses.
- Variety of Options: Multiple server locations and protocol choices (OpenVPN, WireGuard) for optimal performance.
- User Experience: Intuitive desktop client with one‑click connect and real‑time status monitoring.
- Reliability: Automatic failover and load balancing keep your connection stable during peak times.
Quick Troubleshooting Table
Symptom | Fix | Command |
|---|
RPC server unavailable | Restart RPC services | `Get-Service RpcSs,RpcLocator | Restart-Service -Force` |
Clock not synced | Force resync | |
Timezone mismatch | Set via PowerShell | |
NTP unreachable | Check DNS/firewall | |
By keeping RPC humming, you keep your clock—and your whole Windows ecosystem—running smoothly.
Preventive Tips
- Enable automatic time sync in Settings.
- Keep Windows updated to avoid broken dependencies.
- Use a local domain controller as your NTP source.
- Schedule a daily PowerShell check of
w32tm /query /status. - Audit RPC service startup type in group policy.
- Verify firewall rules for RPC and NTP.
These steps create a resilient time‑keeping foundation that supports Kerberos, scheduling, and file integrity. With RPC healthy, your system stays in sync, and Forest VPN can keep you connected without interruption.
We’ve all seen the clock wobble, the RPC error pop up, and the timezone shift like a bad dream. What’s the root cause? Let’s line up the symptoms, point to the suspects, and give you a quick diagnostic compass.
Common Culprits Behind RPC Failures and Timezone Glitches
Symptom | Likely Root Cause | Typical Error Message | Quick Diagnostic Hint |
|---|---|---|---|
RPC server unavailable | Stopped or disabled RPC service | | Run |
Incorrect time zone | Group Policy override or manual mis‑apply | | Use |
Clock drift > 5 min | Disabled auto‑sync or bad NTP source | | |
Firewall blocks RPC | TCP 135 blocked | | `netstat -an | find "135"` to see listening state |
Corrupted system files | Bad update or disk issue | | |
Quick Diagnostic Workflow
- Check services:
Get-Service RpcSs, w32time– they must be running. - Verify firewall:
netsh advfirewall firewall show rule name="RPC"– ensure TCP 135 is allowed. - Inspect time source:
w32tm /query /source– should point to an NTP server, not the local CMOS clock. - Audit Group Policy:
gpresult /h report.html– look for time zone settings.
Narrative Example
Maya hit the dreaded RPC server unavailable banner. She scrolled through logs and spotted TCP 135 blocked by a new corporate firewall rule. After opening the firewall console, adding an allow rule for TCP 135, and hitting Apply, the RPC service pinged the domain controller, the clock synced, and the error vanished. Maya’s quick fix saved the team from a midnight data‑sync outage.
Takeaway Checklist
- Service health: RPC and Windows Time must be Automatic and Running.
- Firewall friendliness: Allow TCP 135 and UDP 123.
- NTP sanity: Point to a reliable server; avoid the local CMOS clock.
- Policy awareness: Confirm Group Policy isn’t forcing a wrong time zone.
- Regular scans: Run
sfc /scannowquarterly to pre‑empt corruption.
Ready to reboot your time? Let’s get it right.
If you’re managing multiple devices or need secure remote access, Forest VPN offers a reliable, low‑latency connection that keeps your time settings in sync across all machines. As one user, Alex, shared: “Forest VPN made my remote work seamless, and the time sync was spot on.” Try Forest VPN today and keep your Windows time accurate no matter where you are.