Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Get the Short Domain Name

CMD: echo %userdomain%

Powershell: gci env:userdomain

Get the Domain

From an elevated prompt (cmd or powershell)

nltest /parentdomain

Get Domain Controller

From an elevated prompt (cmd or powershell)

nltest /dsgetdc:<DOMAINNAME>

Ex: nltest /dsgetdc:foray.local

For other methods, see: Find Name of the Active Directory Domain Controller.

Test Domain Membership (Trust Relationship)

netdom verify <Computer>

Ex: netdom verify MYPC

See also: Check Domain Trust Relationship


  • No labels