# ---------------------------------------------------------------------------- # Script : # Function : Get the Last Boot Time with PowerShell # Version : 1.0 # Created by : https://devblogs.microsoft.com/scripting/powertip-get-the-last-boot-time-with-powershell/ # Created on : # Updated on : # Change : # ---------------------------------------------------------------------------- # edit below this line! Get-WmiObject win32_operatingsystem | select csname, @{LABEL='LastBootUpTime';EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}}