QuickTip: PowerShell – Get the Last Boot Time for a Remote Computer

QuickTip: PowerShell – Get the Last Boot Time for a Remote Computer

Let’s say that you want to check the last boot time for a remote computer. Try using this PowerShell command.

Get-WmiObject -class Win32_OperatingSystem -computer joe-7 | Select-Object __SERVER,@{label=’LastBootUpTime’;expression={$_.ConvertToDateTime($_.LastBootUpTime)}}

Leave a Reply