Is there a way to search all Active Directory attributes for a specific/Specified value?
Get-AdUser -Filter * -SearchBase "OU=Staff, OU=Tree, DC=...ect" -Properties * |
Where {$_.Properties -like "*Whatever*"} | Select GivenName, Surname, SamAccountName |
Export-csv .\path\Who_is.csv -NoTypeInformation
Where I'm having a hard time is the statement after Where {what should this value be? -like "*whatever*"}
Thank you in Advance!