Hide
Writing an article is easy - try our reStructured Text demo Join Siafoo Now or Learn More

wmi based process dumper for python Atom Feed 0

In Brief Lists the full command line, process id, and owner username for all processes running on the system. Uses Tim Golden's WMI wrapper for python: http://timgolden.me.uk/python/wmi.html
# 's
1import wmi
2for i in wmi.WMI().Win32_Process():
3 print "%s, %s, %s" % (i.CommandLine, i.ProcessId, i.GetOwner()[2])

Lists the full command line, process id, and owner username for all processes running on the system. Uses Tim Golden's WMI wrapper for python: http://timgolden.me.uk/python/wmi.html