Skip to main content

command line - How can I find out when Windows was last restarted?


How can I know when my computer running Windows 7 was last restarted?


I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.



Answer



systeminfo command is almost right what you need. On English Windows 7 you can also do:


systeminfo | find /i "Boot Time"

Or with the help of WMIC:


wmic os get lastbootuptime

The main difference between Windows 7 and Windows XP that in Windows 7 Microsoft can show only last boot up time.




Also in Task Manager:


enter image description here


Comments