Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Enabling Security Groups

Management With PowerShell

Mail Enabling Security Groups

by  markdmac  Posted    (Edited  )
markdmac's Exchange Management PowerShell Scripts
By Mark D. MacLachlan, The Spider's Parlor
http://www.thespidersparlor.com


You might think that adding an email address to a security group would be an easy thing, but it seems to me that Microsoft has done everything in its power to make what was a simple task in Exchange 2003 a difficult one in an Exchange 2007 environment.

To be honest the process is really simple IF you are aware of one key factor. In order to mail enable a security group, you must first upgrade the group to a UNIVERSAL group. This part eluded me until I discovered the proper PowerShell code to add the mailbox attributes. At that point PowerShell tossed out a useful error message for me letting me know that the group type was incorrect.

OK, so now that we are armed with that knowledge, we find that adding mail attributes becomes a very simple task with PowerShell. You need only change the part of the command in [red]red[/red].

Creating A Mail Enabled Security Group
[blue]
1. Make the group Universal
2. Open the Exchange Powershell Console
3. Execute the command: Enable-DistributionGroup -Identity "[red]GroupNameGoesHere[/red]"
4. Press Enter[/blue]


If you prefer to use the GUI, once you have made your group a UNIVERSAL group, the group will then show up in the list of available groups when you select the New Distribution Group, From Existing Group options within Exchange Management console.

Whichever method you opted for, at this point the group has an email address matching the group name. You can add another address or modify the default one in Exchange Management Console. Expand Recipient Configuration, Distribution Group. Right click the group name in the right hand pane. Choose properties. Click the Email Addresses tab. Click Add to add a new address or Edit to alter the existing one. To set the default address, you must first remove the check in the box "Automatically update email addresses based on address policy". You can then select the desired address and click Set as Reply.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top