Windows Server 2016 – Get Boot Date & Time – Uptime

How to get Windows Server 2016 Boot Date & Time – Uptime

There are several ways to get this information :

1. Command line :


systeminfo
| find “System Up Time”

image

2. Command line Tools :

– SysInternals :
psinfo.exe
| Find “uptime”

image

– SysInternals : BgInfo.exe Display as background

image

3. WMI

wmic
OS GET CSName,LastBootUpTime

image

4. PowerShell

$obj = Get-WmiObject Win32_OperatingSystem
 $obj.ConvertToDateTime($obj.LastBootUpTime)

image

Get-CimInstance -ClassName win32_operatingsystem | select lastbootuptime

image

get-eventlog System | where-object {$_.EventID -eq "6013"} | sort -desc TimeGenerated

new-timespan -Seconds 26079971 | Select Days,Hours,Seconds

image

5. Event Viewer

Filter the System events with the Event ID 6013

image

Enjoy !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: