header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Show by PS the Runtime user of a Process
Last Post 30 Jun 2008 01:50 PM by edm365f31. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
edm365f31User is Offline
New Member
New Member
Posts:39
Avatar

--
27 Jun 2008 06:53 PM  

Is there a way that PS can show me the user that ran a process?

This script don't show it.

gwmi -query "select * from win32_process where name='notepad.exe'" -comp $strcomputer

marco.shawUser is Offline
Co-Community Director
Basic Member
Basic Member
Posts:195
Avatar

--
27 Jun 2008 07:57 PM  
Try it like this:
(gwmi -query "select * from win32_process where name='notepad.exe'" -comp $strcomputer).getowner()
Marco

*Microsoft MVP - Windows PowerShell: http://www.microsoft.com/mvp
*PowerGadgets MVP: http://www.powergadgets.com/mvp
*Blog: http://marcoshaw.blogspot.com
edm365f31User is Offline
New Member
New Member
Posts:39
Avatar

--
30 Jun 2008 01:50 PM  
Thanks for your help that works..
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer