Link to home
Start Free TrialLog in
Avatar of gd6627
gd6627Flag for United States of America

asked on

Get user by first name

What the best way to search for users with same firt name in Powershell ?

$user=john and then pull their samaccountname , givenname and sur name into a table csv file
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gd6627

ASKER

Thank you so putting the "givenname  -eq "john'" in quotes searches for all the johns correct " i tried it without placing it in quotes before
didnt work . Thank you for your fast response

Awesome!