Active Directory & Domain Commands
Common commands for working with Active Directory and Windows domains from both Windows and Linux.
Finding the PDC (Primary Domain Controller)
| Platform | Command |
|---|---|
| Windows | nltest /dcname:DOMAIN |
| Linux | dig SRV _ldap._tcp.pdc._msdcs.DOMAIN |
List Domain Controllers
| Platform | Command |
|---|---|
| Windows | nltest /dclist:DOMAIN |
| Linux | dig SRV _ldap._tcp.dc._msdcs.DOMAIN |
List Group Members
| Group | Command |
|---|---|
| Impersonate-production | net group "Impersonate-production" /domain |
| Orchestration Users | net group "Orchestration Users" /domain |