Gets one or more Active Directory users.
Gets one or more Active Directory users.
Example 1: Get all of the properties for a specified user
Get-ADUser -Identity ravindra.sharma -Properties *
Example 2: Get a filtered list of users
Get-ADUser -Filter 'Name -like "*ravindra*"'
$OUpath = "ou=People,dc=rs,dc=local"
Get-ADUser -Filter * -SearchBase $OUpath