Pages

Friday, May 5, 2017

A better way to get Windows elapsed Uptime or Boot Time duration

Instead of doing the typical command line systeminfo command

C:\Users\Dagon>systeminfo | find /i "Boot Time"
System Boot Time:          05-May-17, 6:45:19 PM
which takes to long, and does not give you uptime duration or elapsed time

or popular wmic command


C:\Users\Dagon>wmic os get lastbootuptime
LastBootUpTime
20170504111519.610798-240
which give you an illegible CIM datetime result.


Download a little open source command line utility called uptime.exe and copy it into C:\Windows\System32 directory 

 C:\Users\Dagon>uptime
 18:45:09 uptime 08:00:59 <--elapsed uptime

This gives you Windows uptime / boot time duration or elapsed uptime / boot time on the command line, you can use this in batch scripts as you like.

To quickly inspect this value, you can use Task Manager.



accepted
CTRL + ALT + DEL and choose Task Manager, select the Performance tab.
Or better way is CTRL+SHIFT+ESC to get to the Task Manager in Performance Tab directly! 

Or Right-click on the Taskbar, and click Task Manager. 






No comments:

Post a Comment