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


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?

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

    Hi @Sivaram Nunna

    Yes it's possible.

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


    How To: Manage stale devices in Microsoft Entra ID

    Please don't forget to accept helpful answer

0 additional answers

Sort by: Most helpful