Wednesday 17 February 2021

Search or filter users on the basis of mobile attribute in Active directory

 PS C:\Users\adsync> $var="123456789"

PS C:\Users\adsync> Get-ADUser -Filter {mobile -like $var} -Properties name |select name

No comments:

Post a Comment