воскресенье, 8 декабря 2019 г.

Find authenticating Domain Controller for your computer

Here's how you can find out which domain controller your computer is getting authenticated with:

gpresult /r

SET L

echo %logonserver%

nltest /dsgetdc:

gpresult /r /scope:computer

=VB Script= Set objDomain = GetObject("LDAP://rootDSE") strDC = objDomain.Get("dnsHostName") Wscript.Echo "Authenticating domain controller: " & strDC

Which DCs are there in the domain?

NETDOM QUERY PDC
NETDOM QUERY DC (Lists all DC’s in domain)
NETDOM QUERY FSMO


Комментариев нет:

Отправить комментарий