Announcement

Collapse
No announcement yet.

List running services

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

  • List running services

    You can use below script to list all running services,(Windows XP OS not supported)



    Code:
    import subprocess;
    process=subprocess.Popen(['wmic','service','get','caption,','name,','state'],stdout=subprocess.PIPE);
    for line in iter(process.stdout.readline,''):
        print line.rstrip();

    Note: Please refer attach text file for script text without indentation error.


    sample output would be as below,
    Click image for larger version

Name:	running_services.jpg
Views:	1
Size:	188.0 KB
ID:	4567










    Last edited by mkannan; 09-12-2016, 01:35 PM.
Working...
X