Set-DistributionGroup and adding custom e-mail addresses...
Esteemed experts, As a forcibly migrated Domino Admin, I confess I have little love for MS powershell. However I am obliged to use it, so hope you can offer guidance ? All I want is a ‘Set-DistributionGroup’ type of cmdlet that will allow me to add a custom address that Exchange 2007 EMC allows perfectly. In the EMC, I can select properties of a distribution group, go to the E-Mail addresses tab and add a custom addesss, for example an x400 address. However the EMC is a bit useless for making the required change in a 1000+ groups. I've tried a variety of permutations for 'Set-DistributionGroup.... " without a hint of success. I’ve seen mention of an ‘Add-Address… ” command, but for me it fails every time, every permutation I’ve tried… All I think I need is a cmdlet, rather than several lines of script. It must be possible ? Appreciate your time and patience…
July 15th, 2011 6:29am

Hi, This example adds the user adam@contoso.com to the distribution group Marketing Managers Add-DistributionGroupMember -Identity "Marketing Managers" -Member adam@contoso.com for more information go to: http://technet.microsoft.com/en-us/library/aa995970.aspx Hope that helpBest Regards Don't forget to mark it as answer if it helps
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2011 7:22am

On Fri, 15 Jul 2011 10:21:38 +0000, SidSnott wrote: > > >Esteemed experts, As a forcibly migrated Domino Admin, I confess I have little love for MS powershell. However I am obliged to use it, so hope you can offer guidance ? All I want is a ?Set-DistributionGroup? type of cmdlet that will allow me to add a custom address that Exchange 2007 EMC allows perfectly. In the EMC, I can select properties of a distribution group, go to the E-Mail addresses tab and add a custom addesss, for example an x400 address. > >However the EMC is a bit useless for making the required change in a 1000+ groups. > >I've tried a variety of permutations for 'Set-DistributionGroup.... " without a hint of success. > >I?ve seen mention of an ?Add-Address? ? command, but for me it fails every time, every permutation I?ve tried? > >All I think I need is a cmdlet, rather than several lines of script. It must be possible ? Actually, you need a small script if you want to add, rather than replace, the e-mail addresses. $dl = get-distribitiongroup <name> $dl.emailaddresses += "a@b.c" $dl | set-distributiongroup --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
July 15th, 2011 11:02pm

Rich, Maher, Evan thankyou all for the timely response. I had hoped for a 'one liner' cmdlet as some while ago, a Microsoft trainer said to me 'anything you can do with the EMC, you can do with a cmdlet. This seems to be the inevitable exception and I will use your recommended script. kind regards, Sidkind regards, Sid Snott
Free Windows Admin Tool Kit Click here and download it now
July 21st, 2011 7:03am

On Thu, 21 Jul 2011 11:02:04 +0000, SidSnott wrote: > > >Rich, Maher, Evan > > > >thankyou all for the timely response. > > > >I had hoped for a 'one liner' cmdlet as some while ago, a Microsoft trainer said to me 'anything you can do with the EMC, you can do with a cmdlet. If you prefer something more obscure, try this: (get-distribitiongroup <name>).emailaddresses += "a@b.c" >This seems to be the inevitable exception and I will use your recommended script. Not at all. The example demonstrated how it works. As with Perl (and pretty much every other language, TMTOWTDI. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
July 21st, 2011 5:47pm

Haven't done much programming since my mainframe days a decade or two ago, when I used and abused COBOL and very crude versions of BASIC :) Have a great weekend ! Sidkind regards, Sid Snott
Free Windows Admin Tool Kit Click here and download it now
July 22nd, 2011 10:18am

On Fri, 22 Jul 2011 14:16:29 +0000, SidSnott wrote: >Haven't done much programming since my mainframe days a decade or two ago, when I used and abused COBOL and very crude versions of BASIC :) Have a great weekend ! BTDT. I started using that in 1969. Haven't used COBOL since 1977, though. BASIC? Used it on timesharing machines in the 70's and on my first real personal computer, an Altair MITS, in, what, 1975 or 1976? Thank goodness we don't have to build serial I/O boards from kits any more! --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
July 22nd, 2011 8:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics