Offboard device from Microsoft Defender for Endpoint using Mobile Device Management tools

  1. Get the offboarding packet from Microsoft 365 Defender portal
    1. Navigate to Settings => Endpoints => Device management => Offboarding
security microsoft
  1. Extract the script on the client
windows defender offboarding script
  1. Run the script as administrator
script

Resources:

Offboard devices from the Microsoft Defender for Endpoint service | Microsoft Learn

Onboard Windows devices to Defender for Endpoint using Intune | Microsoft Learn