How to Find a Tenant Address

 

You can do it one of two ways:

  1. Login to https://admin.microsoft.com/

  2. Click "Show all" if all of the settings are collapsed

  3. Click "Settings" then select "Domains"

  4. Select the domain INKY is going to protect, and then select DNS records

  5. The tenant address will be in the MX record row and look like: domain-com.mail.protection.outlook.com

Or if you like using PowerShell:

  1. Open PowerShell in administrator mode

  2. If you don’t have AzureAD installed run “Install-Module AzureAD then run the following commands

  3. Connect-AzureAD ***(Log Into your O365 Global Admin Account)***

  4. $Domains = Get-AzureADDomain | Select-Object -expand Name

  5. $(foreach ($domain in $domains) {
    [pscustomobject]@{
    Name = $domain; MailExchange = @(Get-AzureADDomainServiceConfigurationRecord -Name $domain | Where-Object {
    $_.RecordType -eq "Mx" }).MailExchange } }) | Export-csv domains.csv

  6. Provide the domains.csv back to INKY