Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Create a distribution group using PowerShell

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Create about 20 distribution group scripts in batch.

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapInNew-DistributionGroup-Name XXXX-ManagedBy XXX-Type Distribution-Alias Public-MemberJoinRestriction Closed-MemberDepartRestriction Closed-RequireSenderAuthenticationEnabled $false

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

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

Explain several important parameters by the way

Set up the administrator, you can use Name

ManagedBy

Set alias

Alias

Set that only administrators can add and remove distribution group members

MemberJoinRestriction Closed-MemberDepartRestriction Closed

Set up that everyone can send mail to this group.

RequireSenderAuthenticationEnabled $false

Check after you set it up.

Get-DistributionGroup-Identity XXXX | fl

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report