Domain

WINDOWS

LOL

Display the domain name

echo %USERDOMAIN%

Prints out the name of the Domain controller the host checks in with

echo %logonserver%

Get Domain Info

PS C:\> Get-ADDomain
PS C:\> dsquery computer

PS C:\> dsquery * "CN=Users,DC=MILITECH,DC=LOCAL" # Wildcard search

NET

net accounts # Information about password requirements

net accounts /domain # Password and lockout policy

net view /domain # List of PCs in the domain