Get-Content C:\Users\Administrator\Desktop\test.txt | ForEach {
Get-ADUser -Filter "mail -eq '$_'" | Select SamAccountName }
No comments:
Post a Comment