- 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