Import-Module Activedirectory GC C:\input.txt | % { Set-ADUser $_ -Add @{ProxyAddresses="SMTP:$_@mydomain.org"} }