Microsoft Defender Sandbox Enable the sandbox for Microsoft Defender by running setx /M MP_FORCE_USE_SANDBOX 1 as an administrator.