Instead of doing the typical command line systeminfo command
or popular wmic command
Download a little open source command line utility called uptime.exe 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.
To quickly inspect this value, you can use Task Manager.
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.
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 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.
CTRL + ALT + DEL and choose Task Manager, select the Performance tab.
|
No comments:
Post a Comment