I tried different variations -SearchBase and $_.samaccountname.length -eq 8 but cant figure it out . ..
I need to pull all AD users from a certain OU that are 8 characters long only .
Need the output file to have the SamAccountName,Name,CanonicalName
Thank you for all the help !