Create a distribution group using PowerShell

Source: Internet
Author: User

Recently came a demand, to create 20 or so distribution groups, in the ECP one point is too hard, so there is the following paragraph.

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapInNew-DistributionGroup -Name 公共专员 -ManagedBy NF1234 -Type Distribution -Alias Public -MemberJoinRestriction Closed -MemberDepartRestriction Closed -RequireSenderAuthenticationEnabled $false

Because I am more accustomed to use ISE, so need to first import Exchange2016 management module, the following is 2010.

Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010

Explain several important parameters by the way
To set up an administrator, you can use the name

Setting aliases

-Alias Public

Set up only administrators to add and remove distribution Group members

-MemberJoinRestriction Closed -MemberDepartRestriction Closed

Set up everyone can send mail to this group

-RequireSenderAuthenticationEnabled $false

Set it up and check it out.

Get-DistributionGroup -Identity 公共专员 | fl

Create a distribution group using PowerShell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.