Home All Groups Group Topic Archive Search About

Find the names of Domain Controller

Author
9 Feb 2006 12:57 PM
Muhammad Ali khan
1. As microsoft Winlogon process allow the user to log on to their
workstation or

to the domain.

2.Thus I need to find the name of domian controller.Can you tell me the
names of
Application programming interface(API) or API Function that retrieve the
names of

domain in windows. 

3.I have used the directory service function name "DsGetDcName" which find
the name

of domain controller when computer locate the domain controoler but it cannot

retrieve the name of domains if network cable is unplug from my computer OR
i think

computer is unable to contact domain controller.But the important point is
this the

windows find the names of domain controller while network cable is unplug
during

the LOGON process of User.

4.Can you tell me the names of windows function that give the the name of
domain

while computer is unpluuug from network.

5.Can you tell me that the names of domain controller are saved in some file
on the

workstation or in the registry of windows.

I'll be thankful if anybody helps me in this regard.

Author
13 Feb 2006 6:37 AM
Paul Williams [MVP]
If you're unplugged from the network you cannot locate a DC.  The info. that
you want won't be in the registry (some might, but not all).  The DSGet*
wrapper is the way to go as far as I'm aware.

--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
Author
15 Feb 2006 2:54 PM
Paul Bergson
Paul W is right on, I can provide a vb scripting call to get the dc's as
well.

If you aren't attached you won't be able to get the info.  If the info was
cached what would happen if the network changed it wouldn't be a very
dynamic system.

--

Paul Bergson  MCT, MCSE, MCSA, CNE, CNA, CCA

This posting is provided "AS IS" with no warranties, and confers no rights.

Show quoteHide quote
"Paul Williams [MVP]" <ptw2***@hotmail.com> wrote in message
news:eYoozfGMGHA.2472@TK2MSFTNGP11.phx.gbl...
> If you're unplugged from the network you cannot locate a DC.  The info.
> that
> you want won't be in the registry (some might, but not all).  The DSGet*
> wrapper is the way to go as far as I'm aware.
>
> --
> Paul Williams
> Microsoft MVP - Windows Server - Directory Services
> http://www.msresource.net | http://forums.msresource.net
>
>