Last Boot Time WMI

Get-WmiObject –Class Win32_OperatingSystem –ComputerName localhost | Select-Object –Property @{n=”Last Boot Time”; e={[Management.ManagementDateTimeConverter]:: ToDateTime($_.LastBootUpTime)}} (Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime Last Boot Time WMI