Check last restart time of a machine with PowerShell 3.0

By |2017-12-01T15:31:19+00:00April 9th, 2015|PowerShell|0 Comments

Here’s a handy PowerShell command you can run to see when one of your serversclient machines last rebooted

Get-CimInstance -ClassName win32_operatingsystem -computername SpecifyMachineName| select csname, lastbootuptime

Once ran you should get a result like the following

You can even run the command against multiple machines by putting a comma after your machine name like the following

Get-CimInstance -ClassName win32_operatingsystem -computername server1, server2, server3| select csname, lastbootuptime

Hope this Helps!

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.