Write drunk. Edit sober. Ernest Hemingway Date: Thu, 19 Feb 2015 18:09:45 -0600 Subject: Re: [powershell] stuck From: st...@whitcher.org To: powershell@lists.myitforum.com
Lesson #2 Don't code without *enough* Scotch... On Thu, Feb 19, 2015 at 6:05 PM, S Powell <powe...@gmail.com> wrote: THANK YOU!! FRAK... Lesson #1 Don't code with Scotch... Sigh. Thank you all ---------------- Goats are like mushrooms, if you shoot a duck, I'm scared of toasters. On Thu, Feb 19, 2015 at 3:58 PM, Steve Whitcher <st...@whitcher.org> wrote: Shouldn't your underscores be before your dots? And your command says PSA, not PST, thought I assume that's a typo. On Thu, Feb 19, 2015 at 5:48 PM, S Powell <powe...@gmail.com> wrote: this Set-DistributionGroup abe011-4...@school.edu -EmailAddresses SMTP:abe011-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 ================================================ 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 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1