What happens to an inactive device in Microsoft Defender if it was not offboarded using a script, and how can an inactive decommissioned device be removed?

YOGESHWARAN S 0 Reputation points
2026-03-06T16:11:48.09+00:00

Hi Team,

I have decommissioned the server without offboarding it from Microsoft Defender. Now the device appears as inactive in the Defender console. Will the device be automatically removed after a certain number of days, or will it remain as a stale entry in the console?

Microsoft Security | Microsoft Defender | Microsoft Defender for Office 365
0 comments No comments

1 answer

Sort by: Oldest
  1. AI answer

    2026-03-06T16:12:01.3533333+00:00

    In Microsoft Defender for Endpoint, a device that was decommissioned without being offboarded will:

    1. Stop sending signals once it is powered off/removed.
    2. Be marked Inactive after it has sent no signals for more than seven days.
    3. Remain visible in the device inventory, with past alerts and timeline data, for up to the configured data retention period (typically up to 180 days). It is not immediately or automatically deleted when it becomes inactive.
    4. Not be counted in the organization’s exposure score if it hasn’t been active in the last 30 days.

    So it will remain as an inactive (stale) entry for the retention period, but it won’t affect exposure scoring after 30 days.

    To remove an inactive, decommissioned device from active views:

    • Use filters in the Microsoft Defender portal (for example, filter by sensor health state = Inactive, or by device tags or device groups) to hide or exclude inactive devices from day‑to‑day views and reports.
    • If the device was offboarded (or effectively stopped reporting), no further action is required for data flow; its historical data will automatically age out and be removed from the portal once the retention period (up to 180 days) expires.

    There is no separate manual “delete now” operation for Defender for Endpoint device records described in the provided material; cleanup is handled by the service based on inactivity and retention.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.