Get-Date

Get system Uptime

Use the get-date get the current date information, then useĀ Get-CimInstanceĀ to extract the needed infromation for system uptime. (get-date) - (gcim Win32_OperatingSystem).LastBootUpTime

Read more