MilesLogan
asked on
Powershell - How to pull all AD accounts that end with a certain letter
Hi EE
I need some help turning this search to include all accounts that end with dc,d,pt,
all in one search instead of one search at a time ..
Get-ADUser -Filter {SamAccountName -like "*a"} -properties office,whencreated,Canonic alName | Select Samaccountname,whenCreated ,office,Ca nonicalNam e | Export-CSV Accounts.csv
I need some help turning this search to include all accounts that end with dc,d,pt,
all in one search instead of one search at a time ..
Get-ADUser -Filter {SamAccountName -like "*a"} -properties office,whencreated,Canonic
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both !
Open in new window