From the command line, how do I find when the last time a Windows 7 computer has been restarted?
Asked
Active
Viewed 3,422 times
3 Answers
0
tasklist /v | find "Idle"
On Windows 7, tasklist will output something (ugly and wrapped) such as:
System Idle Process 0 Services 0 24 K Unk
nown NT AUTHORITY\SYSTEM 449:12:23 N/A
Which in this case means 449 hours (almost 20 days) of system-idle since the last reboot. Of course, this is a rough approximation of time since reboot; it doesn't include actual useful CPU-time.
Bob Stein
- 1,483
0
Use
net statistics workstation | find "Statistics since"
or
net statistics server | find "Statistics since"
These commands can be abbreviated “net stats work” or “net stats srv”.
Scott - Слава Україні
- 22,532