Re: Problems with WMI

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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,

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.

<snipped>

GetObject( "", "winmgmts")




.



Relevant Pages

  • Re: A few thoughts..
    ... sysctl to retrieve the message buffer, ... system information was retrieved by ... ability to retrieve the information for an unprivileged user. ... which generally doesn't require privilege. ...
    (freebsd-hackers)
  • Re: Problems with WMI
    ... In order to retrieve several system information. ... Maybe I did not communicate clear enough that everythings works fine on ...
    (microsoft.public.vb.general.discussion)
  • Access Denied !!!!! Why?
    ... I have this problem with my system information tool.For a ... server on this computer.Have an administrator change your ... retrieve my Network Diagnostics using Help and Support ...
    (microsoft.public.windowsxp.security_admin)