Your computer’s uptime describes the CPU’s operating duration since the last reboot. That is, how long your PC has been running since it was powered on. You might need to monitor your computer’s uptime when troubleshooting memory leaks and other performance issues.
Windows has several built-in tools for checking how long your computer has been turned on. This tutorial explains how to check uptime in Windows through the Task Manager, Control Panel, Command Prompt, and PowerShell.
Check System Uptime via Task Manager
11 Windows任务管理器 provides real-time information about your computer’s hardware, software, and overall performance.
Here’s how to check your Windows 11 computer’s uptime using Task Manager.
- 媒体 按Ctrl + 转移 + ESC 至 打开任务管理器. Alternatively, right-click the Start menu and select Task Manager.
- 打开 性能 侧边栏上的选项卡并选择 中央处理器. You’ll find your computer’s up time in the “Up time” section.
Check Uptime Using Command Prompt
你可以跑 several Command Prompt commands in Windows to check your processor’s uptime.
Method 1: Run the systeminfo Command
The “systeminfo” command displays information about your PC’s operating system and hardware (RAM, CPU, disk space, etc.). Follow the steps below to check your computer’s uptime using the “systeminfo” command.
- 媒体 Windows键 + X 并选择 终端(管理员).
- Type or paste systeminfo in the terminal and press 输入.
- Check the “System Boot Time” row to see your computer’s last boot date and time.
The difference between the “System Boot Time” and the current time/date is your computer’s uptime.
Method 2: Run the wmic Command
The Windows Management Instrumentation Command Line (WMIC) is another powerful utility for pulling information about your Windows computer. You can use the WMIC tool to view your CPU’s uptime, apps installed on your PC, hard drive health等等。
Here’s how to use the WMIC utility to check the uptime of any Windows computer.
- 按 Windows键 + R to open the Windows Run box. Type CMD 在对话框中选择 OK.
或者,按 Windows键 + X 并选择 终端(管理员).
- Type or paste the command below in the terminal and press 输入.
wmic os get LastBootUpTime
The output shows the last time you booted your computer. The numbers may seem confusing, but it’s easy to understand when broken down as follow:
2023 | 年01 | 08 | 15 | 48 | 21 | 500000 | +000
- Year (first four digits) — 2023
- Month (fifth and sixth digits) — 01
- Day (seventh and eighth digits) — 08
- Hour (ninth and tenth digits) — 15
- Minute (eleventh and twelfth digits) — 48
- Seconds (thirteenth and fourteenth digits) — 21
- Milliseconds (six digits after the period) — 500000
- GMT (timezone) — +000
Method 3: Run the Net Statistics Command
The “Net Statistics” command displays network-related information and your computer’s last boot date and times.
- 用鼠标右键单击 “开始”菜单 并选择 终端(管理员).
- Paste the command below in the Terminal console and press 输入.
net statistics workstation
- Check the “Statistics since” row to see your computer’s last boot time and date.
Check Uptime Using Windows Powershell
Follow the steps below to check your computer’s uptime through Windows PowerShell中.
- 打开开始菜单,输入 PowerShell的 在搜索栏中,然后选择 以管理员身份运行“.
- Paste the command below in the Powershell terminal and press 输入.
(get-date) - (gcim Win32_OperatingSystem) .LastBootUpTime
The command displays the last boot time in days, hours, minutes, seconds, and milliseconds.
Check Uptime Using Control Panel
If your computer connects to the internet when it boots, you can deduce its uptime from your network adapter’s uptime. This is the least accurate method of figuring out your computer’s uptime. However, it might come in handy if Task Manager won’t open or if Command Prompt and Windows Powershell are malfunctioning.
- 按 Windows键 + R,类型 控制面板 在对话框中,然后选择 OK 至 open the Windows Control Panel.
- 点击 网络和Internet“ 类别。
- 选择 网络和共享中心.
- 选择 更改适配器设置“ 在侧边栏上。
- Double-click the active network adapter or right-click and select Status.
- Check the “Duration” row for the adapter’s uptime.
Does PC Uptime Affect Performance?
Your computer’s uptime has no direct effect on its performance. Malware, excessive startup programs, overheating, and outdated operating system are some factors that slow down Windows computers.
Shutting down your computer when not in use has several benefits. Occasional restarts are also a good practice. If your computer is slow or freezing, our tutorial on speeding up Windows might help restore its performance.