Access Remote Computer via WMI Failing Under .NET (dotnet)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mark Olbert (no email)
Date: 09/04/04


Date: Fri, 03 Sep 2004 18:01:45 -0700

I'm learning about WMI under .NET (C#) by trying to retrieve information on the disk drives of
computers that are part of my domain (behind the same firewall).

The following code fails for every computer on my LAN that I run it against...except for the domain
controller itself, where it works just fine:

ConnectionOptions options = new ConnectionOptions();
options.Username = "DomainName\\Administrator";
options.Password = "SecureAdminPassword";

ManagementScope scope = new ManagementScope("\\\\RemoteComputerName\\root\\cimv2", options);
scope.Connect();

What am I doing wrong?

- Mark



Relevant Pages

  • Re: ATARI Adoption Agency!
    ... computers, if you compare apples and apples. ... consider the noisemakers of the older computers (old disk drives, ... it difficult to fully utilize this old machine otherwise. ...
    (comp.sys.atari.8bit)
  • Re: A or AN before an abbreviation???
    ... Prior to the development of the magnetic core memory, computers used relays ... I have always considered disk drives to be random access ... storage because, unlike tape, you can skip large numbers of sectors ...
    (alt.usage.english)
  • Re: Nikon D40 vs D40x at the same price
    ... The frame of reference for digital cameras should be computers, ... Of course -- hard drives are the most likely failure, ... parts for repairing the shutter/mirror assembly of a DSLR is a different ... Disk drives and other likely failure components in a computer, ...
    (rec.photo.digital.slr-systems)
  • Re: find files
    ... > It actually depends on context. ... > Although the size of disk drives isn't really exact, ... > was developed long before computers came along). ... These days storage and comunication systems tend to include compression, ...
    (comp.unix.shell)
  • Re: A or AN before an abbreviation???
    ... Prior to the development of the magnetic core memory, computers used relays ... such as "the definition of a random access storage device was coined ... to differentiate between disk drives and tape drives". ...
    (alt.usage.english)