Skip to content Skip to sidebar Skip to footer

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[1] result.


Download[2] a little open source[3] command line uti lity called uptime.exe[4] 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 you can CTRL+SHIFT+ESC to get to the Task Manager in Performance Tab directly! 

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






References

  1. ^ CIM datetime (cim_datetime)
  2. ^ Download (uptimeexe.codeplex.com)
  3. ^ open source (uptimeexe.codeplex.com)
  4. ^ uptime.exe (uptimeexe.codeplex.com)
Source: feedproxy.google.com