Looks like you transposed the period and the underscore. Should be $_.DSG and $_.PSA
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of S Powell Sent: Thursday, February 19, 2015 5:48 PM To: powershell@lists.myitforum.com Subject: [powershell] stuck this Set-DistributionGroup abe011-4...@school.edu<mailto:abe011-4...@school.edu> -EmailAddresses SMTP:abe011-4...@school.edu<mailto:smtp%3aabe011-4...@school.edu> -Domaincontroller DC.01 runs great. I change the name and it works every time. I throw those into a CSV and get a Cannot convert value $._PST to “Microsoft.Exchange.Data.SmtpAddress”. this is what I was trying: import-CSV fix.csv |foreach {Set-DistributionGroup $._DSG -PrimarySMTPAddress $._PSA -domaincontroller DC.01 thoughts? ---------------- Goats are like mushrooms, if you shoot a duck, I'm scared of toasters. ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1