The below command export email address details of all the office 365 groups to csv file. Get-UnifiedGroup -Identity "Sales Group" | Select PrimarySMTPAddress,Alias,EmailAddresses|FL We can use the following command to find and list the email address details for the given office 365 group. smtp – for proxy address).The following command removes the primary address and the proxy address and adds the primary address and the proxy address Set-UnifiedGroup -Identity "Sales Group" -EmailAddresses } Export Email Address details of Office 365 group
We can easily update both primary and proxy address in a single command by specifying valid values (SMTP – for primary address. In office 365 GUI I have two aliases for a group as follows: Name: Marketing123Group Group Id: Aliases. Set-UnifiedGroup -Identity "Sales Group" -EmailAddresses both Primary and Secondary Email Address in single command Hi all, I am unable to remove an office365 group alias. If you don’t include a value for an email address, the value smtp (proxy address) is assumed.Īdd proxy address: Set-UnifiedGroup -Identity "Sales Group" -EmailAddresses proxy address: Set-UnifiedGroup -Identity "Sales Group" -EmailAddresses add or remove proxy addresses without affecting other existing values, use the following syntax. SMTP – The primary SMTP address (You can use this value only once in a command).Syntax to update email addresses: Set-UnifiedGroup -Identity "o365group" -EmailAddresses optional value specifies the type of email address. The EmailAddresses parameter specifies all the email addresses (proxy addresses) for the recipient, including the primary SMTP address. In the Locations page, select Exchange email.
In the Name page choose how to call your retention policy, e.g. Go to Policies > Retention and click New retention policy. We can use the parameter EmailAddresses in Set-UnifiedGroup cmdlet to update proxy addresses of office 365 group. Begin by opening the Microsoft 365 compliance center.
Set-UnifiedGroup -Identity "Sales Group" -Alias "salesgroupnew"Īdd or Remove Secondary Email Addresses (or Proxy Addresses) The below command rename the mail alias to salesgroupnew. To update email alias we need to update the attribute alias. Set-UnifiedGroup -Identity "Sales Group" -PrimarySmtpAddress Group Alias or Email Alias The below command change the primary address to for the group named “ Sales Group”. We need to use the attribute PrimarySmtpAddress in Set-UnifiedGroup cmdlet to change the primary mail address of an O365 group. Rename Primary E-mail Address of Office 365 Group Note: Before proceed, Connect Exchange Online Remote PowerShell. However, if you want to rename primary email address this is simply not possible from Admin center, but we can easily change it using the Exchange Online Powershell cmdlet Set-UnifiedGroup.