this Set-DistributionGroup [email protected] -EmailAddresses
SMTP:[email protected] -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