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"