A better way to get Windows elapsed Uptime or Boot Time duration
Instead of doing the typical command line systeminfo command
Download[2] a little open source[3] command line uti lity called uptime.exe[4] and copy it into C:\Windows\System32 directory
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.
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.
which takes to long, and does not give you uptime duration or elapsed timeC:\Users\Dagon>systeminfo | find /i "Boot Time" System Boot Time: 05-May-17, 6:45:19 PM
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. |
References
- ^ CIM datetime (cim_datetime)
- ^ Download (uptimeexe.codeplex.com)
- ^ open source (uptimeexe.codeplex.com)
- ^ uptime.exe (uptimeexe.codeplex.com)