Check last restart time of a machine with PowerShell 3.0

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!

About the author