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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot Create ActiveX Component

Status
Not open for further replies.

LeeSalter

Technical User
Nov 1, 2001
20
GB
Hi all,

I've got this code in my app to access a server (I want to get details of the disks on remote servers)

objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & ServerName & "\root\cimv2")

On some servers it works fine, on others I get the "Cannot Create ActiveX Component" error. There doesn't seem to be any common link between the Servers that do work and those that don't. Any ideas??
 
Is this in VB6 or VB.NET?

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Sorted!

The destination servers need to have the wbemcore.exe installed on them (downloaded from the Microsoft Website).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top