Check last restart time of a machine with PowerShell 3.0

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

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!