How long has this system been running

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:

image

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.

image

Table of Contents

Share this post
Search blog posts
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.
Modern Workplace consultant and a Microsoft MVP in Windows and Devices for IT.

Infrastructure architect with focus on Windows Client management & security.

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

follow us in feedly
Categories

Follow on SoMe