A forest is made up of one or more domains and all of the objects in the domains.
nslookup -querytype=all _ldap._tcp.dc._msdcs.yourdomain
Or, using nslookup in interactive mode...
nslookup
set type=all
_ldap._tcp.dc._msdcs.yourdomain
Try one or more of these alternative approaches...
whoami /groups
net user username /domain
gpresult /user username /r
dsquery user domainroot -name username | dsget user -memberof
Note: dsquery/dsget need "Remote Server Administration Tools" installedGet-ADPrincipalGroupMembership username
Note: This assumes you have the Active Directory Powershell module installedNET GROUP "MYGROUP" /DOMAIN
dsget group "CN=GroupName,DC=domain,DC=name,DC=com" -members
dsget group "CN=GroupName,DC=domain,DC=name,DC=com" -members -expandÂ
Import-Module ActiveDirectory
Get-ADGroupMember "Domain Admins" -recursive | Select-Object name
From within SQL Server you can run...
xp_logininfo 'MYDOMAIN\MYGROUP', 'members'
Note: This assumes that the group is defined as a SQL Server LoginRun on Windows Server Core
Do not run other software or services on a Domain Controller
Adjust the startup order and set a BIOS password
Standardize the configuration of all domain controllers
Always start with a single forest.
Avoid an empty forest root domain
If using two-way forests trusts, consolidate forests