Steps:
1. Run PowerShell as an Administrator.
2. Install Exchange Online Module if it is not installed by running the below cmdlet.
Install-Module -Name ExchangeOnlineManagement
3. Now import the module by running the below cmdlet.
Import-Module ExchangeOnlineManagement
Note: If the module is already installed then skip steps 2 and 3.
4. Now run the below cmdlet to create a new distribution list.
New-DynamicDistributionGroup -name "distribution list name" -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (WindowsLiveID -eq '*@domain name')"
5. Now you can check the membership by running the below cmdlet.
Get-DynamicDistributionGroup -Identity distribution list name | fl
Comments
0 comments
Please sign in to leave a comment.