Powershell oneliner to get system uptime

5/31/2014 0 Comments

The following the Powershell oneliner to get the system uptime.

(Date)-([Management.ManagementDateTimeConverter]::ToDateTime((gwmi Win32_OperatingSystem).LastBootUpTime))

0 comments :