Tip: You can get the last boot time (last time Windows was restarted) with PowerShell:
1 2 3 4 5 6 7 8 9 10 11 |
# CIM (Available since PowerShell v3) (Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime # WMI [Management.ManagementDateTimeConverter]::ToDateTime((Get-WmiObject -Class Win32_OperatingSystem).LastBootUpTime) ([WMI] '').ConvertToDateTime((Get-WmiObject -Class Win32_OperatingSystem).LastBootUpTime) # Alternatives net stats server systeminfo (Get-WinEvent -FilterHashtable @{LogName = 'System'; ID = 6005} -MaxEvents 1).TimeCreated # Approximative |