Wednesday, November 26, 2014

Powershell Remotely Get the last Boot time

Remotely Get the Last boot time using powershell

Replace with your computer after -ComputerName

Get-WmiObject -Class Win32_OperatingSystem -Property LastBootUpTime -ComputerName Eduardote-PC | select @{LABEL='LastBootUpTime';EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}}

0 comments:

Post a Comment