Knowledgebase
Domain Information
Posted by Mont Rothstein on 31 August 2016 08:13 AM

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

Test Domain Membership (Trust Relationship)

netdom verify <Computer>

Ex: netdom verify MYPC

Also see KB: Check Domain Trust Relationship

 


Comments (0)