Select-AD Cmdlet
Searches Microsoft Active Directory data.
Syntax
Select-AD [parameters]
Remarks
The Select-AD cmdlet allows you to use a syntax similar to SQL SELECT statements to search Microsoft Active Directory data.
$conn = Connect-AD -User 'MyUserName' -Password 'MyPassword' -Server 'MyServer' -Port 'MyPort' -BaseDN 'MyDN' Select-AD -Connection $conn -Table "User" -Columns @("Id","CN") -Where "CN='Administrator'"