How can I tell which Domain controller I'm authenticated to?
How can I tell which Domain controller I'm authenticated to? Is there a way to do this without local admin?
You can find this through the following command:
echo %LOGONSERVER%
And you don't have to be admin or poweruser to use it. Have a look at the output of this command:
set
To determine computer / server DC use NLTEST:
nltest /dsgetdc:<domain_name>
To list all DC's with their appropriate site, try:
nltest /dclist:<domain_name>
You don't have to use the FQDN of the domain name or server -- for example, instead of saying /dclist:services.microsoft.com
, you can simply type /dclist:services
(as long as you are an authenticated member of that domain, of course).
For user authentication and group policy use LOGONSERVER variable:
echo %logonserver%