5 Ways to Get Windows Boot Time from Command Line

Printer-friendly versionPDF version
5 Ways to Get Windows Boot Time from Command Line

Here are 5 different ways to get the most recent boot time of a Windows workstation or server Operating System from the command line. Some of these use CMD and some use PowerShell. Each one uses a slightly different method to achieve the same result:

1.) SystemInfo

systeminfo | find /i "Boot Time"

2.) The NET command

net statistics workstation

3.) Use the PAGE File creation time (assuming default location of page file)

dir /a:h c:\pagefile.sys

4.) PowerShell Get-CimInstance

Get-CimInstance -Class Win32_OperatingSystem | Select-Object LastBootUpTime

5.) PowerShell Get-WmiObject

Get-WmiObject -class Win32_OperatingSystem | Select-Object  __SERVER,@{label='LastBootUpTime';expression={$_.ConvertToDateTime($_.LastBootUpTime)}}

If you know of any alternative methods, please leave a comment below and let our readers know!

Post new comment