Get OS Last Boot Time

The following Powershell command will perform a WMI query using the Get-WmiObject cmlet to obtain the last bootup time for a machine. $OS = Get-WmiObject -Class Win32_OperatingSystem -Computername computername $OS.ConvertToDateTime($OS.LastBootUpTime)