Re: Problems with WMI

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




"Danny" <danny@xxxxxxxxxxx> wrote in message
news:uIedgehyHHA.988@xxxxxxxxxxxxxxxxxxxxxxx
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


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


.



Relevant Pages

  • Re: Problems with WMI
    ... In order to retrieve several system information. ... Maybe I did not communicate clear enough that everythings works fine on many ...
    (microsoft.public.vb.general.discussion)
  • 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: Receiving data from stdin
    ... > write another program to communicate with the first one and get the data ... > to precess it. ... allows you to retrieve the stdin stream. ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)
  • Re: How to Get Data From A Machine Having Parameters of Vehicles
    ... communicate with the machine appropriately. ... > Can anyone guide me how to retrieve values from a Machine which holds the ... > value of a vehicle, ...
    (microsoft.public.vb.general.discussion)