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