Search This Blog

Tuesday, January 6, 2015

How long has this system been running

I often need a quick way to see how long a Windows box has been running, or actually when it was last restarted Smile

One way is to use the command net statistics workstation and find Statistics since:


And of course PowerShell is nowadays also an option:

Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime

Note that this requires PowerShell 3.0 and that the time is 2 seconds before the time from net statistics.


No comments:

Post a Comment