Re: find out domain controller programatically

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



Look at the System.DirectoryServices.ActiveDirectory namespace in .NET 2.0.
It has a number of methods on the Domain class for locating
DomainControllers using whatever parameters you want (find all, find all in
a specific site, etc.).

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"venkat" <venkateshnarne@xxxxxxxxx> wrote in message
news:1156537243.102077.200860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How to find out domain controller programatically. I need to write a
VB.Net program



.



Relevant Pages

  • Re: Need help getting the domain SID when given a DC=XXX,DC=YYY,CD
    ... Probably the best thing to do is use the Domain class, ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... this code for getting the domain object? ...
    (microsoft.public.platformsdk.security)
  • Re: Read only domain controllers and .NET
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... use the SDS.AD functions for locating DCs due to the additional control ... ForceRediscovery ...
    (microsoft.public.windows.server.active_directory)
  • Re: Need help getting the domain SID when given a DC=XXX,DC=YYY,CD=ZZZ
    ... using the Domain class), then you could do something like this (you were ... Domain curDom = Domain.GetCurrentDomain; ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.platformsdk.security)
  • Re: Web Single Sign On
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... current Windows credentials to the server, ... This common identity is the user's username used to logon to the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Changing ADAM user password
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... Running the bind from another W2K3SP1 machine ... support in digest or something like that. ...
    (microsoft.public.windows.server.active_directory)