New PowerShell cmdlets let you manage Active Directory quickly and efficiently
Here are some common commands:
- To load the AD DS module, use
Add-Module ActiveDirectory, then Get-Module - To get information about a domain, use
Get-ADDomain domain_name - To display information about domain controllers in a specific domain, use
Get-ADDomainController -Discover - To 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
