I have recently moved to a new employer who is using Azure AD Connect. Unfortunately, the email address who was getting any failure notices was no longer in use, so I decided to set the notifications to go to a new distribution group. In this article, I will show you how to change the email address that receives the Azure AD Connect failure emails. I will show you how to do this both via the GUI and with PowerShell.

Via the Office 365 admin Portal aka the GUI way

Login to the Office 365 Admin portal via https://admin.microsoft.com and click on the directory name in the top right corner.

Next we have to click on Edit.

In the blade, enter the new email address under Technical contact and then click Save.

How easy was it to set via the GUI? Pretty easy right. So let’s move on to PowerShell.

The PowerShell way


Before we can connect to Azure via PowerShell we need to download and install the Microsoft Online Services Sign-in Assistant. This can be found from https://go.microsoft.com/fwlink/p/?LinkId=286152 Just make sure you download the correct version for you. Its either x86 for 32 bit OS or x64 for 64 bit OS.

Now that you have installed that we now need to install the MSOnline module in PowerShell. To do this Open PowerShell with elevated permissions and type the following.

Install-Module MSOnline

Press Y to any warnings you may have regarding NuGet and PSGallery.

Let’s get connected

In the same elevated PowerShell window type the following command.


In the Sign in box enter your Azure Global Administrator credentials, Password and any Multi-Factor Authentication you have.

Now that you are signed in its time to change the email address.

Lets change the notification email address

In the same PowerShell window type the following command to find out what email address is currently being used to receive the failure notifications.

Get-MsolCompanyInformation | FL DisplayName, TechnicalNotificationEmails

So now lets actually change the email address. For that, we use the following PowerShell command.

Set-MsolCompanyContactInformation -TechnicalNotificationEmails "ITSupport@pixelrobots.co.uk"

We can then use the command from before (Get-MsolCompanyInformation | FL DisplayName, TechnicalNotificationEmails) to confirm the change.

You have now changed the email address for the failure notifications using both GUI and PowerShell. I hope you found this article helpful. If you have any questions please leave a comment bellow.

Pixel Robots.

I’m Richard Hooper aka Pixel Robots. I started this blog in 2016 for a couple reasons. The first reason was basically just a place for me to store my step by step guides, troubleshooting guides and just plain ideas about being a sysadmin. The second reason was to share what I have learned and found out with other people like me. Hopefully, you can find something useful on the site.

Leave a Reply

Your email address will not be published. Required fields are marked *


I agree

This website stores some user agent data. These data are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to opt-out of any future tracking, a cookie will be set up in your browser to remember this choice for one year. I Agree, Deny