Published on http://www.itswapshop.com (http://www.itswapshop.com)

Home > 5 Ways to Get Windows Boot Time from Command Line

5 Ways to Get Windows Boot Time from Command Line

Submitted by ingram on Sat, 06/16/2018 - 12:10pm
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!

Privacy Policy

support @ itswapshop . com


Source URL: http://www.itswapshop.com/articles/5-ways-get-windows-boot-time-command-line