用 w32tm 查看 Windows 时间同步状态
系统时钟不准时,用内置的 w32tm /query 诊断 NTP 同步状态和来源。
运行 w32tm /query /status 查看上次同步时间、来源和层级,运行 w32tm /query /source 查看 NTP 服务器。
01命令
命令
$ w32tm /query /status /verbose
w32tm /query /source02作用说明
Windows 时钟漂移时,首先要确认 W32Time 服务到底有没有在同步。w32tm /query /status 会报告上次成功同步时间、来源和 stratum 层级;/query /source 显示实际的 NTP 对端(默认 time.windows.com,域环境则是域层级)。同步失败时可用 w32tm /resync 立即重试,或用 w32tm /stripchart /computer:time.windows.com 查看原始偏差。
03风险
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Windows Time Service tools and settings依据: Documents w32tm /query /status and /source for checking time sync state and NTP source.
- w32tm - SS64依据: Reference for w32tm query, resync, and configuration switches.
最后验证: 2026-09-17 · 分类: 系统与设置