How to use Powershell to print the current uptime of your computer on Windows.

This simple one-liner for Powershell will print the current uptime of your PC. This is printed with multiple columns but it also may be printed on one line. PS C:\Users\Windows 11> (get-date) – (gcim Win32_OperatingSystem).LastBootUpTime     Days : 0 Hours : 0 Minutes : 41 Seconds : 27 Milliseconds : 915 Ticks : 24879150105 … Read more