Hello,
how do you determine the process id for the app to kill? This is a Citrix
environment so I need to make sure that the only the process ID for a
specific user is killed.
Don't we have to use WMI to determine the process ID for that?
--
Smoreno - ADOT
"James Whitlow" wrote:
Quote:
> "Smoreno" <Smoreno@xxxxxx> wrote in message
> news:BC3F0888-3984-455B-8752-69DEEF321B11@xxxxxx Quote:
> > Hello,
> >
> > I use the following script to terminate the process listed in it. As the
> > server gets loaded killing the process (terminate()) takes longer as the
> > load
> > increases. The WMI service takes longer find and kill the process.
> >
> > Other than calling WMI, is there another way to kill the process via
> > script
> > that doesn't take a long time?
>
> You might consider shelling out to Taskkill:
>
> http://technet.microsoft.com/en-us/l.../bb491009.aspx
>
> I don't know if it is going to be faster or not, but it does allow you
> to filter by username.
>
>
>