• Use whoami to Confirm Domain Connection

This shows the fully qualified domain name (FQDN) of the logged-in user. A properly connected system will display:

C:\> whoami /fqdn
john.doe.sales.corpcompany.com
DistinguishedName : CN=John Doe,OU=Sales,OU=Users,DC=corp,DC=company,DC=com
  • Simple echo Command

This will display the domain your user account is logged into.

echo %userdomain%
  • Quick Check with PowerShell
(Get-WmiObject Win32_ComputerSystem).PartOfDomain

A True result means your PC is domain-connected.

  • Verify Domain Controller Access with nltest
nltest /dsgetdc:yourdomain.com

By Mohamed Asath

Here is my message HOW CAN I HELP YOU ? To develop your IT career.

Leave a Reply

Your email address will not be published. Required fields are marked *