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
Prerequisites
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.
Connect-MsolService |
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.
1 Comment
JD · September 9, 2022 at 4:26 pm
THANK YOU! Kept getting nasty emails from previous IT company that they were still getting alerts, AAD notifications set to only global admins, couldnt figure out why they kept getting them, found them listed as technical contact in this part! Great write up!