Announcement

Collapse
No announcement yet.

Get system booted time or last restarted time

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get system booted time or last restarted time

    You can get system boot time using below script,



    import os;
    btime=os.popen('systeminfo | find /i "Boot Time"').read();
    print(btime);



    Sample output would be,

    Click image for larger version

Name:	boot_time_output.jpg
Views:	1
Size:	6.9 KB
ID:	4521


Working...
X