Access Remote Computer via WMI Failing Under .NET (dotnet)
From: Mark Olbert (no email)
Date: 09/04/04
- Next message: Torgeir Bakken \(MVP\): "Re: WMI connection problem with Windows XP sp2"
- Previous message: Sameh Ahmed: "Service logon account"
- Next in thread: Gerry Hickman: "Re: Access Remote Computer via WMI Failing Under .NET (dotnet)"
- Reply: Gerry Hickman: "Re: Access Remote Computer via WMI Failing Under .NET (dotnet)"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Torgeir Bakken \(MVP\): "Re: WMI connection problem with Windows XP sp2"
- Previous message: Sameh Ahmed: "Service logon account"
- Next in thread: Gerry Hickman: "Re: Access Remote Computer via WMI Failing Under .NET (dotnet)"
- Reply: Gerry Hickman: "Re: Access Remote Computer via WMI Failing Under .NET (dotnet)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|