Important
"This repo is now in 'Blue Screen' mode—archived and frozen in time!"
This script gets all accepted domains in Microsoft 365 using autodiscover, gets the tenant name and checks if there is a Microsoft Defender for Identity instance. This way you can figure out if a company runs Microsoft Defender for Identity.
Import-Module Invoke-MicrosoftDefenderForIdentityCheckInstance.psm1
Invoke-MicrosoftDefenderForIdentityCheckInstance -domain thalpius.com
When an MDI instance is found:
When an MDI instance is not found:

