Powershell – Last Computer Boot-Up time

In Windows PowerShell 3.0, use the Get-CimInstance cmdlet, and select the LastBootUptime property from the Win32_Operatingsystem WMI class:

 

PS C:\> Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime