How to Check Uptime in Windows
In this article
Yes, you can check uptime in Windows using built-in tools like Task Manager or the command line. This shows how long your system has been running since the last reboot, which helps diagnose performance issues, verify system stability, or confirm if a recent restart took effect. No third-party software is needed—Windows provides multiple reliable ways to view this information.
What You'll Need
- A Windows PC with administrative access (optional for some methods)
- Keyboard and mouse or touchscreen to navigate the interface
- Command Prompt or PowerShell access (for command-line methods)
Step-by-Step
- Press Ctrl + Shift + Esc to open Task Manager directly. Alternatively, right-click the taskbar and select Task Manager from the menu.
- In Task Manager, click the Performance tab at the top. If you see only a simplified view, click More details at the bottom left to expand it.
- On the left side, select Startup or System (depending on your Windows version). The uptime is displayed under the Up time field on the right, typically in days, hours, and minutes.
- Alternatively, press Win + R to open the Run dialog. Type cmd and press Enter to open Command Prompt.
- In Command Prompt, type net stats workstation and press Enter. Look for the line that says Statistics Since—this shows the date and time the system was last started.
- For a more precise uptime duration, open Command Prompt or PowerShell and type echo %uptime%. Note: this only works if the variable is set; it may return blank on some systems.
- Use PowerShell for a reliable command: type Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime and press Enter. This returns the exact time the system started.
- To calculate actual uptime duration, run this PowerShell command: $os = Get-CimInstance -ClassName Win32_OperatingSystem; $uptime = (Get-Date) - $os.LastBootUpTime; $uptime.Days, 'days,', $uptime.Hours, 'hours,', $uptime.Minutes, 'minutes'. This outputs the total time since the last boot.
- Save time by creating a desktop shortcut: right-click the desktop, choose New > Shortcut, enter powershell -command "& {$os=Get-CimInstance Win32_OperatingSystem; $up=(Get-Date)-$os.LastBootUpTime; '{0} days {1} hrs {2} min' -f $up.Days,$up.Hours,$up.Minutes}", name it Uptime, and finish. Double-click it anytime to see uptime.
- For scripting or automation, save the PowerShell command in a .ps1 file and run it as needed. Ensure execution policy allows script runs if blocked.
Common Mistakes
One common error is checking Task Manager but missing the More details button, leaving users in the simplified view where uptime isn't visible. Another is typing uptime in Command Prompt, which works on Linux and macOS but not natively in Windows—this returns an error. Users may also confuse system time with uptime, leading to incorrect conclusions. Relying on third-party tools without verifying their legitimacy can expose systems to malware. Lastly, running PowerShell commands without proper syntax—such as missing quotes or parentheses—results in errors, especially in scripts.
Tips
Use PowerShell for accuracy—it gives exact boot time and allows calculations. Pin the PowerShell shortcut to your taskbar for quick access. Combine uptime checks with performance monitoring: if uptime is over 30 days, consider rebooting to clear memory leaks. For servers or workstations, schedule regular reboots and use uptime as a health metric. You can also use systeminfo in Command Prompt and look for System Boot Time, though it takes longer to load. Always run commands in an elevated prompt if access is denied, though uptime queries usually don’t require admin rights.
Troubleshooting
If Task Manager doesn’t show uptime, ensure you’ve clicked More details. If the Performance tab is missing, your user account may have restricted permissions—try logging in as administrator. If PowerShell returns an access denied error, right-click PowerShell and select Run as administrator. If a command fails due to execution policy, run Set-ExecutionPolicy RemoteSigned -Scope CurrentUser to allow local scripts. If net stats workstation shows outdated information, restart the Server service via services.msc. If the system time is incorrect, uptime readings may be misleading—check time settings in Settings > Time & Language. For systems in hibernation or sleep, uptime continues counting, so it reflects total active runtime unless a full shutdown occurred.
Frequently Asked Questions
Does uptime reset after sleep or hibernation?
No, uptime continues running after sleep or hibernation. It only resets after a full shutdown and reboot.
Why doesn’t the ‘uptime’ command work in Command Prompt?
Windows doesn’t include a native uptime command like Linux. Use net stats workstation or PowerShell instead.
Can I check uptime remotely on another Windows machine?
Yes, if you have network access and credentials, use PowerShell: .
Is high uptime bad for my PC?
Not inherently, but long uptimes can lead to memory leaks or unresponsive apps. Regular reboots help maintain performance.
Where is uptime displayed in older Windows versions like Windows 7?
In Windows 7, use Task Manager > Performance tab. Uptime appears as Up Time in hours and minutes.
Can group policy hide uptime information?
Yes, in managed environments, administrators can restrict access to system information via policy, affecting PowerShell or Command Prompt output.