Can we delete device from Microsoft Entra admin centre by using power shell script.

Anonymous
2024-03-22T10:08:03.54+00:00

i cant delete devices from entra admin centre by using hostname,They are able to successfully delete devices by serial number, but it won’t let them find or delete devices by hostname.

We have no way of finding the serial number of these old devices, is there a way they can be removed using a powershell script rather than in admin center?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,025 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,369 questions
0 comments No comments
{count} votes

Accepted answer
  1. Thameur-BOURBITA 32,496 Reputation points
    2024-03-22T10:58:45.1833333+00:00

    Hi @Sivaram Nunna

    Yes it's possible.

    For more information please take a look at the articles below:

    Remove-MgDevice

    How To: Manage stale devices in Microsoft Entra ID


    Please don't forget to accept helpful answer


0 additional answers

Sort by: Most helpful