Even though there is still no built-in Windows
uptime command, the actual uptime of the server/workstation or the system boot time can be checked from the command-line.
In this note i will show several methods of how to check Windows uptime from the command-line prompt and PowerShell.
Windows Uptime Command
PowerShell vs. CMD: Each of the commands below works both from the command-line prompt (CMD) and PowerShell.
Windows uptime can be checked using the
C:\> wmic os get lastbootuptime
Another method to check Windows uptime from the command-line prompt is by getting the system boot time from the output of the
C:\> systeminfo - or - C:\> systeminfo | find "System Boot Time:"
Also uptime of the Windows server/workstation can be checked using the
net statistics command that returns the date and time since the statistics has been running, that approximately corresponds to the Windows boot time.
Windows server uptime:
C:\> net statistics server - or - C:\> net statistics server | find "Statistics since"
Windows workstation uptime:
C:\> net statistics workstation - or - C:\> net statistics workstation | find "Statistics since"
3 Replies to “Windows: Uptime Command – CMD & PowerShell”
/i ignore case
/c search for string “boot time”
Hope you’d find useful ..
About services: how can I check uptime of them?
Kleine Korrektur – findstr anstatt find
systeminfo | findstr “System Boot Time:”