user3091216
user3091216

Reputation: 85

Show process and service owner in windows environment

I was wondering if it's possible to show a Process/Service name and it's Owner(!) on a targeted machine.

Is it possible? Should I use the WMI module for this?

Upvotes: 0

Views: 111

Answers (2)

RRUZ
RRUZ

Reputation: 136401

Yes you can use the WMI, try the Win32_Process class. Use the Name property to ge the Name of the process and the GetOwner method for get the owner.

Upvotes: 1

Truerror
Truerror

Reputation: 146

You can, but I would prefer psutil.

Upvotes: 0

Related Questions