Olá a todos, hoje uma dica rápida, como verificar quando foi o ultimo reboot de um computador:
#Powershell Version 2.0
Get-WmiObject win32_operatingsystem |select csname, @{LABEL=‘LastBootUpTime’;EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}}
#Powershell Version 3.0 & 4.0
Get-CimInstance-ClassName Win32_OperatingSystem |Select CSName, LastBootUpTime
Caso desejem saber de uma maquina remota, basta adicionar o parametro –ComputerName, Ambos aceitam tanto IP quanto Hostname.
Até a próxima!