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

Capture PID of launched application
Last Post 26 Jul 2008 04:01 AM by halr9000. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
huyduong3188User is Offline
New Member
New Member
Posts:1
Avatar

--
25 Jul 2008 10:01 PM  

Hi there,

we are running an application in multiple instances, and want to be able to capture the PID for each instances after it launched.  I am trying to tie the application to the PID and once that PID completed or went away, we can get a status back.

does anyone have a powershell script already made for this, or can show me how to formulate such a script?

So far, I can run GWMI and get the PID, creation time, etc.. and possible compare the creation date & time with the current date & time and tie that to the application that just launch if it is less than 10 seconds?  Or a listing of the PID of this apps pertain to their PID to a current list, and generate a list to compare, grab the new PID and assign to a variable.

thanks in advance for your help,

Andy

halr9000User is Offline
PowerShell MVP, Site Admin
Basic Member
Basic Member
Posts:335
Avatar

--
26 Jul 2008 04:01 AM  
Here is a great post that will get you started. Read that and ask more questions.
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast
Author, TechProsaic
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