I have an application that launches when a user logs in via the Startup directory. This works OK until a second user inadvertently logs in at the same time, which can cause the application to crash. I've seen some examples of using the Get-Process comandlet to enumerate the instances of a process (although none are too elegant), but I haven't seen anything that shows how to kill only one specific instance of the process. Can anyone help a poor network guy?
Thanks,
Joe