Write drunk. Debug sober.

That would explain a lot.

Jeffrey Snover Distinguished Engineer, Microsoft Windows Server | 
IM<sip:jsno...@microsoft.com> | Cell<tel:+1425-922-4248> | 
Office<tel:+14257053225> | Fax<(425)%20708-0830>
For help with my calendar, please contact Katrina Fouch 
<kfo...@microsoft.com<mailto:kfo...@microsoft.com>>


From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Daniel Chenault
Sent: Thursday, February 19, 2015 4:39 PM
To: powershell@lists.myitforum.com
Subject: RE: [powershell] stuck

Write drunk. Edit sober.
Ernest Hemingway
________________________________
Date: Thu, 19 Feb 2015 18:09:45 -0600
Subject: Re: [powershell] stuck
From: st...@whitcher.org<mailto:st...@whitcher.org>
To: powershell@lists.myitforum.com<mailto: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<mailto: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<mailto: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<mailto:powe...@gmail.com>> wrote:
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


================================================
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

Reply via email to