Additional Microsoft Defender tools and services that provide security across various platforms and environments
The issue has been resolved with the assistance of the Microsoft Support team
Thanks.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Is there any solution to remove or offboard Microsoft Defender for Endpoint from these machines, given that the tenant is no longer active?
At the moment, I am unable to download the offboarding script since the original tenant is no longer accessible. Any guidance on how to proceed would be appreciated.
Additional Microsoft Defender tools and services that provide security across various platforms and environments
The issue has been resolved with the assistance of the Microsoft Support team
Thanks.
AI answer
Yes. Offboarding and uninstalling are done locally on the machines and do not require access to the original tenant.
Use one of these approaches, depending on OS.
After either offboarding or uninstalling, the agent:
Details are below.
A. Offboard without tenant access
mdatp_offboard.json that is not expired, copy it to:
sudo cp mdatp_offboard.json /etc/opt/microsoft/mdatp/mdatp_offboard.json
mdatp health --field health_issues
Expected output:
ATTENTION: No license found. Contact your administrator for help. ["missing license"]
If no valid offboarding package is available anymore, proceed directly to uninstall (next step). Once uninstalled, the device is effectively removed from the service.
B. Uninstall the Defender application (no tenant required)
./defender_deployment_tool.sh --remove --clean
sudo yum remove mdatp
or
sudo dnf remove mdatp
sudo zypper remove mdatp
sudo apt-get purge mdatp
sudo dnf remove mdatp
sudo '/Library/Application Support/Microsoft/Defender/uninstall/uninstall'
MDE.Windows or MDE.Linux extension from the VM (from whatever control plane is still accessible), andOnce the agent is uninstalled or offboarded locally, it stops communicating and is effectively removed from Defender for Endpoint, regardless of the tenant’s current state.
References: