Find Email Alias Office 365 Powershell

Posted by admin
Find Email Alias Office 365 Powershell 4,7/5 3068 reviews

Hello,I read your new stuff named “Manage Email address using PowerShell Office 365 – o365info.com” daily.Your humoristic style is awesome, keep up the good work! And you can look our website about proxy list. The formatted (table) list should display for you for all their mailboxes. All email addresses, all aliases. Note that the previous step has a command that's commented out ( ' ) that will allow you to save the output to a CSV (Excel) file. Use that for larger subscriptions or for history's sake.

Modifying name or display name of Office 365 Group is simple. 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.
Note: Before proceed, Connect Exchange Online Remote PowerShell.

Rename Primary E-mail Address of Office 365 Group

We need to use the attribute PrimarySmtpAddress in Set-UnifiedGroup cmdlet to change the primary mail address of an O365 group. The below command change the primary address to salesgroupnew@domain.com for the group named 'Sales Group'.

Rename Group Alias or Email Alias

To update email alias we need to update the attribute alias. The below command rename the mail alias to salesgroupnew.

Add or Remove Secondary Email Addresses (or Proxy Addresses)

We can use the parameter EmailAddresses in Set-UnifiedGroup cmdlet to update proxy addresses of office 365 group. The EmailAddresses parameter specifies all the email addresses (proxy addresses) for the recipient, including the primary SMTP address.
Find Email Alias Office 365 PowershellSyntax to update email addresses:
The optional value <Type> specifies the type of email address. Some of valid values are:
  • SMTP - The primary SMTP address (You can use this value only once in a command).
  • smtp - Other SMTP email addresses.
If you don't include a <Type> value for an email address, the value smtp (proxy address) is assumed.

Find Email Alias Office 365 Powershell Email


Add proxy address:
Remove proxy address

Connect To Office 365 Powershell

:
To add or remove proxy addresses without affecting other existing values, use the following syntax.

Change both Primary and Secondary Email Address in single command

We can easily update both primary and proxy address in a single command by specifying valid <Type> values (SMTP - for primary address. smtp - for proxy address).The following command removes the primary address salesgroupold@domain.com and the proxy address salesgroup3@domain.com, and adds the primary address salesgroupnew@domain.com and the proxy address salesgroup1@domain.com.

Export Email Address details of Office 365 group

We can use the following command to find and list the email address details for the given office 365 group.The below command export email address details of all the office 365 groups to csv file.

When you have multiple email aliases associated with your Exchange or Office 365 based email account, it can be useful to know which email address it was sent to. However Outlook does not show this information.

Office 365 Login Portal

I can think of a couple of ways to resolve this:

  • Use an Outlook rule to examine the message header and display an alert or perform some other action when an email to an alias is received.

The advantage of using a transport rule is that the rule is always executed, it does not depend on the Outlook client running. This is useful because mobile devices or other clients will not execute any rules.

Find

There are a couple advantages of using Outlook the Outlook method:

  • Greater flexibility over what you want to do with the message.
  • No need for Office 365 administrator rights to set up.

As the transport rule method has already been documented, this post is about how to use an Outlook rule to determine which email alias an email was sent to.

Using an Outlook rule to determine which email alias an email has been sent to

    1. Go to File and then “Manage Rules and Alerts” and then click on “New rule”.
    2. Click on “Apply rule on messages I receive” from the “Start from a blank rule” section and click Next.
    3. Choose “with specific words in the message header”.
    4. In the “Step 2” section at the bottom of the page, click on the “specific words” link:
    5. Type in the email address that you want to identify and click on “Add” and then click OK.
      (Note: You can add multiple email addresses here to use this rule for multiple aliases.)
    6. You will drop back to the main rule creation dialog box, click next.
    7. On this page you have lots of options about what to do with the identified message, the options are quite self explanatory.
    8. I am going to choose “display a specific alert in the New Item Alert window” as below:
    9. This means that when I receive an email to the alias specified, Outlook will show an alert to inform me.
    10. Finish creating the rule with any other options or exceptions that you require.
    11. You should get an alert when messages are sent to the alias:

I hope this post was helpful, if you did, I would really appreciate it if you rated it 😀