: Click Download package . This will download a .zip file containing the script. Critical Expiration Policy
: Choose the relevant operating system (e.g., Windows 10 and 11, Windows Server, macOS, or Linux).
Once the package is unzipped, run the script with elevated privileges: Offboard devices - Microsoft Defender for Endpoint
: Sign in to the Microsoft Defender portal.
For security reasons, offboarding scripts have a strict expiration date: