![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | get the owner of a process hi there i would like to get the name of te "owner " of a process i found with get-wmiprobject win32_process : actually, i need to know the "non-system processes" running on a remote computer; could you help me please ? thx Nico |
My System Specs![]() |
| | #2 (permalink) | ||||||||||||
| Guest | Re: get the owner of a process This should do the trick $regex = "LocalSystem|LocalService|NT AUTHORITY|NetworkService|ASPNET"; $svc = gwmi -query "select name,startname,SystemName from win32_service" | where {$_.startname -notmatch $regex} | select SystemName,name,startname ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com
| ||||||||||||
My System Specs![]() | |||||||||||||
| | #3 (permalink) | ||||||||||||||||||||||||
| Guest | Re: get the owner of a process On 6 nov, 20:31, Shay Levi <n...@xxxxxx> wrote:
services, but the startname property seems not to exist for this type of objects another idea ? Nico | ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #4 (permalink) | ||||||||||||
| Guest | Re: get the owner of a process In message <1194419045.334726.243640@xxxxxx>, Nicopilami <n.chaussard@xxxxxx> writes
-- Thomas Lee doctordns@xxxxxx MVP - Admin Frameworks and Security | ||||||||||||
My System Specs![]() | |||||||||||||
| | #5 (permalink) | ||||||||||||||||||||||||||||||||||||
| Guest | Re: get the owner of a process This will select all processes name and owner. $p = gwmi win32_process $p | select name,@{n="Owner";e={$_.GetOwner().Domain}} ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com
| ||||||||||||||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||||||||||||||
| | #6 (permalink) | ||||||||||||||||||||||||||||||||||||
| Guest | Re: get the owner of a process "Shay Levi" <no@xxxxxx> a écrit dans le message de news: 8766a944ce6e8c9efa5034a12b6@xxxxxx...
thx Nico | ||||||||||||||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change all references held by previous owner/administrator to new owner | gerevent | System Security | 4 | 08-17-2008 07:05 PM |
| Process count wrong when only one process matches criteria | malverson26 | PowerShell | 3 | 10-06-2007 03:01 AM |
| owner names everywhere | puzzled | Vista account administration | 3 | 06-25-2007 12:36 PM |
| get-process & stop-process by owner | Andrew Conrad | PowerShell | 3 | 03-03-2007 04:11 PM |
| Bug? Shouldn't Stop-Process automatically match Id if object is a process? | Alex K. Angelopoulos [MVP] | PowerShell | 3 | 06-21-2006 05:35 AM |