Re: Problems with WMI
- From: "Danny" <danny@xxxxxxxxxxx>
- Date: Thu, 19 Jul 2007 17:19:53 +0200
Hi Ralph,
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 many
systems.
But on some, the GetObject("winmgmts:") fails, so I actually think it's not
a problem with the code, but with the service.
But I couldn't find out what problem and how to solve it!
Regards
Danny
"Ralph" <nt_consulting64@xxxxxxxxx> schrieb im Newsbeitrag
news:eyi%23QjfyHHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
"Danny" <danny@xxxxxxxxxxx> wrote in message
news:%23yzvFQdyHHA.3696@xxxxxxxxxxxxxxxxxxxxxxx
Hi guys,<snipped>
ok, thanks. I am using VB6 and will look a the services.
Somehow I think it's better to use GetObject, because WMI must be already
running as you said and CreateObject won't help then I guess.
I will have a look and tell you my results regarding the stopped service.
GetObject( "", "winmgmts")
.
- Follow-Ups:
- Re: Problems with WMI
- From: Ralph
- Re: Problems with WMI
- 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
- Problems with WMI
- Prev by Date: Re: What is "JIT" Debugging and why?
- Next by Date: Re: Same file names in two different VB Projects
- Previous by thread: Re: Problems with WMI
- Next by thread: Re: Problems with WMI
- Index(es):
Relevant Pages
|