Re: Problems with WMI
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Thu, 19 Jul 2007 10:59:14 -0500
"Danny" <danny@xxxxxxxxxxx> wrote in message
news:uIedgehyHHA.988@xxxxxxxxxxxxxxxxxxxxxxx
Hi Ralph,many
in my code I must use the following statement, i.e.:
Set WMI = GetObject("winmgmts:\\" & pc & "\root\cimv2")
In order to retrieve several system information.
But how can I use your statement GetObject( "", "winmgmts") then?
Maybe I did not communicate clear enough that everythings works fine on
systems.not
But on some, the GetObject("winmgmts:") fails, so I actually think it's
a problem with the code, but with the service.
But I couldn't find out what problem and how to solve it!
Regards
Danny
Ignore me. That syntax is merely another way to insure grabbing an existing
instance that supports that "class". I got hung up on performing Automation
from VB - which isn't relevant to your problem. My apologies.
-ralph
.
- References:
- Problems with WMI
- From: Danny
- Re: Problems with WMI
- From: Bob Butler
- Re: Problems with WMI
- From: Danny
- Re: Problems with WMI
- From: Danny
- Re: Problems with WMI
- From: Ralph
- Re: Problems with WMI
- From: Danny
- Problems with WMI
- Prev by Date: Re: Printing a Box
- Next by Date: Re: SQL - unique id creation
- Previous by thread: Re: Problems with WMI
- Next by thread: Re: Problems with WMI
- Index(es):
Relevant Pages
|