Hands on with Windows Server 2008 r2: Admin tools
Here are some common commands:
To load the AD DS module, use
Add-Module ActiveDirectory, thenGet-ModuleTo get information about a domain, use
Get-ADDomain domain_nameTo display information about domain controllers in a specific domain, use
Get-ADDomainController -DiscoverTo browse a specific domain, with results neatly formed in a table, "change directory" into AD via
Cd AD:and then use the following series of commands:
PWD
DIR | Format-Table -Auto
CD "DC=domain_name,DC=TLD"
DIR | ft –a
- …