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.
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.
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.