5 Ways to Get Windows Boot Time from Command Line
Submitted by ingram on Sat, 06/16/2018 - 12:10pm



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!
Bookmark/Search this post with
Like this article?? Check out these:
User login
Popular content
Today's:
All time:
Last viewed:
Top Categories
Linux
Command Line
ubuntu
windows
Terminal
Windows 7
Exchange 2010
Exchange
Open Source
hosted exchange
hacking
Bible
Christain
SSH
Multi-Tenant
HP
WINE
Server 2008 R2
Switch
Password Recovery
Active Directory
Internet Explorer
nmap
One-Liner
Lync
Citrix
Games
Citrix Receiver
DNS
OpenPanel
Server
ping
Pure-FTPd
Script
RAID
robocopy
server 2008
SonicWall
profile migration
Windows 8
VPN
VM
tweak
Unity
PsExec
ESX
Outlook
BSOD
Awk
ASCII
Control Panel
iis
Exchange 2010 SP1
iptables
IE9
Fail2ban
IE ESC
7
2012
2008
Post new comment