View Single Post
  #2 (permalink)  
Old 06-05-2008, 09:08 PM
Vlad
 
Posts: n/a
RE: WMI Methods on several PC


"LChambers" wrote:

> Hello,
>
> I try in my application to execute WMI Methods, for example to
> Terminate Internet Explorer processes.
> The problem is that if I put some Release() to IWbemLocator and
> IWbemService at the end of my program, when I run it again Release
> function crash it.
>
> I have a class that list instances then I send all to another class
> that deals with Wmi Method. And that crash also my first class for WMI
> operations and CoCreateInstance fails.
>
> It's a big problem for me.
> I need help.
>
> Thanks in advance.
>


WMIC /node:"PCName" PROCESS WHERE Name="iexplore.exe" CALL Terminate
Reply With Quote