wmi based process dumper for python
| 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 |
| Language | Python |
# '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
Add a Comment