Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Trying to Remove running app

Status
Not open for further replies.

NFLDUser

IS-IT--Management
Apr 17, 2006
47
CA
I'm getting the following error:

ActiveX component can't create object.

Here's the code:

strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'Eyesistant.exe'")
For Each objProcess In colProcessList
objProcess.Terminate

It's dying on the GetObject line.

Any ideas???
 
Do you have admin level access to the box this is executing on?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top