Create distribution list with full information in PowerShell for Office 365 Exchange Online

IT 140 Reputation points
2023-11-29T15:24:34.7433333+00:00

How can I create a distribution list with the following information using PowerShell for Office 365 Exchange Online?

  • Group name: announcement-year9
  • Assigned owner: IT
  • Group email address: ******@XYZ.edu.uk
  • Joining the group: Owner approval
  • Leaving the group: Closed
Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Windows for business Windows Server User experience PowerShell
{count} votes

Accepted answer
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2023-11-29T15:33:06.8333333+00:00
    New-DistributionGroup -Name  announcement-year9 -DisplayName announcement-year9 -ManagedBy IT 
    
    - PrimarySmtpAddress ******@XYZ.edu.uk -MemberJoinRestriction ApprovalRequired 
    
    -MemberDepartRestriction Closed
    

    https://learn.microsoft.com/en-us/powershell/module/exchange/new-distributiongroup?view=exchange-ps


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.