Share via

Syntax-DL Unifiedgroup

Roger Roger 7,631 Reputation points
2022-08-22T14:12:47.26+00:00

Hi All

i want to create DL in exchange online using powershell. mydomain lets say is contoso.com

DL Display Name: TEST ABC
Email Address: test_abc

is the below syntax correct. i want my email address to be with contoso.com not with contoso.onmicrosoft.com

New-DistributionGroup -Name "TEST ABC" -Alias "test_abc" -DisplayName "TEST ABC" -PrimarySmtpAddress "******@contoso.com"  

I also want to create unified group using powershell, experts guide me with the syntax. i want the email address with contoso.com

Group DisplayName: TEST UG
email address: test_ug

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author

Vasil Michev 127K Reputation points MVP Volunteer Moderator
2022-08-22T14:58:22.287+00:00

Yes, the syntax is correct. You can always add the -WhatIf parameter to preview the cmdlet result, without actually executing it.

As for creating Unified group, use this:

New-UnifiedGroup -Name "test UG" -DisplayName "TEST UG" -PrimarySmtpAddress "******@contoso.com"  

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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