The quickest way to see Windows uptime is Task Manager: press Ctrl+Shift+Esc, open Performance, select CPU and read Up time. From PowerShell, (Get-CimInstance Win32_OperatingSystem).LastBootUpTime shows when Windows last booted, which works on any Windows 10 or 11 PC.
If the number looks far too high, Fast Startup is almost certainly the reason; that's explained further down, along with a daylight saving bug in the most commonly copied PowerShell one-liner.
All the ways to check uptime, compared
| Method | Shows | Needs |
|---|---|---|
| Task Manager → Performance → CPU | Up time as d:hh:mm:ss | Nothing |
(Get-CimInstance Win32_OperatingSystem).LastBootUpTime | Boot date and time | Windows PowerShell 5.1 (built in) |
Get-Uptime / Get-Uptime -Since | Uptime as a TimeSpan / boot time | PowerShell 6.0 or later |
systeminfo | find "System Boot Time" | Boot date and time | Command Prompt; English label |
net statistics workstation | "Statistics since" date and time | Command Prompt |
| Event Viewer, System log, Event ID 6013 | Uptime in seconds, logged periodically | Event Viewer or PowerShell |
Check uptime in PowerShell
Win32_OperatingSystem has a LastBootUpTime property. On its own it gives the boot time:
(Get-CimInstance Win32_OperatingSystem).LastBootUpTime
To turn that into an uptime, subtract it from the current time. Do the subtraction in UTC (the reason is in the next section):
$boot = (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
(Get-Date).ToUniversalTime() - $boot.ToUniversalTime()
Example output (trimmed):
Days : 5
Hours : 6
Minutes : 46
Seconds : 31
For a single readable line, format the TimeSpan:
((Get-Date).ToUniversalTime() - $boot.ToUniversalTime()).ToString("d\d\ hh\h\ mm\m")
That prints something like 5d 06h 46m.
In PowerShell 7 (pwsh) there is a dedicated cmdlet. Get-Uptime returns the time since boot, and Get-Uptime -Since returns the boot time. Microsoft's documentation notes it uses a high-resolution tick counter, so it "may differ slightly" from LastBootUpTime. It doesn't exist in the Windows PowerShell 5.1 that ships with Windows, where you'll get The term 'Get-Uptime' is not recognized.
The daylight saving trap in the usual one-liner
The version found in most answers online is:
(Get-Date) - (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
It subtracts two local times, and .NET ignores the UTC offset when subtracting local DateTime values. If a daylight saving change happened since boot, the answer is off by an hour. This is a real result from a PC that booted on 21 October 2026, before its time zone left daylight saving time on 25 October, measured on 26 October:
| Calculation | Result |
|---|---|
(Get-Date) - $boot (local times) | 5.05:46:31 |
(Get-Date).ToUniversalTime() - $boot.ToUniversalTime() | 5.06:46:31 |
[Environment]::TickCount (milliseconds since start) | 5.06:46:31 after conversion |
The UTC version agrees with the system's own tick counter; the local version is an hour short. The boot time itself was stored correctly (2026-10-21T08:31:08+03:00 in ISO format); only the subtraction is wrong.
A note on that tick counter: in Windows PowerShell 5.1, [Environment]::TickCount is a 32-bit number. Microsoft's .NET documentation says it climbs for about 24.9 days, then jumps to a negative value, so it's useless for long uptimes. PowerShell 7 has [Environment]::TickCount64, which doesn't wrap in any realistic time.
Check uptime from Command Prompt
systeminfo
systeminfo | find "System Boot Time"
This prints one line with the boot date and time. systeminfo collects a lot of other information first, so it takes a few seconds (about 3 seconds on the test PC). The label is translated on non-English Windows, so on a localized install the find filter matches nothing; run systeminfo alone and look for the equivalent line, or use the PowerShell method, which is the same in every language.
net statistics workstation
net statistics workstation
Example output (first lines):
Workstation Statistics for \\PC-01
Statistics since 2026-10-21 07:31:23
"Statistics since" is when the Workstation service started, which is a few seconds after boot: 15 seconds later in this example. It's close enough for "how long has this been up", and it works in an unelevated prompt. The date format follows your regional settings.
Find boot times in the event log
The System event log records the Event Log service starting and stopping, which brackets every boot, and logs the current uptime periodically. Read the latest entries with PowerShell:
Get-WinEvent -FilterHashtable @{LogName='System'; Id=6005,6006,6013} -MaxEvents 5 |
Format-List TimeCreated, Id, Message
Example output (trimmed):
TimeCreated : 10/26/2026 12:00:00 PM
Id : 6013
Message : The system uptime is 448131 seconds.
TimeCreated : 10/21/2026 8:31:22 AM
Id : 6005
Message : The Event log service was started.
TimeCreated : 10/21/2026 8:30:43 AM
Id : 6006
Message : The Event log service was stopped.
Event 6006 followed by 6005 is a shutdown and the next start. 448,131 seconds is 5 days, 4 hours and 28 minutes, consistent with the other methods at the moment it was logged. The event log is the only method here that shows history, so it's the one to use for "when did this server last restart, and the time before that?"
Why uptime doesn't reset after shutdown: Fast Startup
Fast Startup is a Windows power setting, introduced in Windows 8. Microsoft's driver documentation describes what it does: when you choose Shut down, Windows closes your apps and signs you out like a normal shutdown, then "saves the kernel memory image (including the loaded kernel-mode drivers) in Hiberfil.sys." The next power-on loads that file instead of doing a cold start.
Because the kernel session is resumed, not started fresh, uptime keeps counting across a Shut down. A PC switched off every evening can show days of uptime. Ways to get a real, full restart:
- Restart from the Start menu.
shutdown /r /t 0to restart now, orshutdown /s /t 0for a full shutdown. Theshutdowncommand only prepares for Fast Startup when you add/hybrid; without it,/sis a full shutdown.
This also matters for troubleshooting: if advice says "turn it off and on again" to clear a driver problem, Shut down with Fast Startup on may not do it. Restart does.
Uptime and Windows updates
Long uptime by itself isn't a problem, but many Windows updates finish installing only during a restart. If Settings → Windows Update shows a restart pending, the PC is running without those fixes until you reboot. If updates seem stuck even after restarting, see Windows Update stuck. For other system details such as CPU, RAM and Windows version, see how to check PC specs on Windows.
Frequently asked questions
- Why didn't my uptime reset after I shut down the PC?
- Fast Startup. With it turned on, Shut down saves the Windows kernel session to the hibernation file and the next power-on loads it back instead of booting from scratch, so the uptime counter carries on. Use Restart, or run shutdown /s /t 0 from a command prompt, to get a full shutdown that resets uptime.
- What is a normal uptime for a Windows PC?
- There is no correct number. What matters is whether pending updates are waiting for a restart: Windows installs many updates only on reboot, so a PC that has been up for weeks may be running without recent security fixes. Check Settings → Windows Update for a restart prompt.
- Does uptime include time the PC was asleep?
- Uptime counts from the last boot, and sleep and hibernation are not boots, so they don't reset it. Treat uptime as 'time since the last real start', not as the number of hours the PC was actually in use.
- How do I check uptime on a remote Windows computer?
- From PowerShell with access to the remote machine, run Get-CimInstance Win32_OperatingSystem -ComputerName SRV01 | Select-Object CSName, LastBootUpTime, replacing SRV01 with the computer name. The same LastBootUpTime caveats apply.
Sources
- Microsoft Learn — Get-Uptime (PowerShell 7)
- Microsoft Learn — Win32_OperatingSystem class (LastBootUpTime)
- Microsoft Learn — Distinguishing fast startup from wake-from-hibernation
- Microsoft Learn — shutdown command reference
- Microsoft Learn — systeminfo command reference
- Microsoft Learn — Environment.TickCount property