I am trying to create a new distribution list using exchange server commands given in Creating new distribution list command.
When I enter a duplicate alias name it is allows me to create the new distribution list.
While when I try to create the distribution list from the Exchange Server UI in Office 365 then it gives me an error if I enter the duplicate Alias name.
I want to know how I can achieve the same functionality using commands also.
Update
I am using following command
New-DistributionGroup Name 'Distribution-List-Name' Alias 'Alias-Name' ErrorAction 'Stop'
Thanks in Advance.