PowerShell:
1 |
Get-WmiObject Win32_OperatingSystem -ComputerName <computer> | fl LastBootUpTime |
Command Prompt/ WMI:
1 |
wmic /node:"<computer>" OS get LastBootUpTime |
Double quotes are important for the WMI method.