Azure AAD, Endpoint clean up -- 2

Job ID: 35543204

Budget: $10 – $30 USD

I need Power Shell Script(s) which will:

1. export all Autopilot Devices in the Azure Endpoint Manager in a csv file (Devices serial number, Group Tag etc.)
2. load a csv file contain seral numbers of the computers and find the computers name in the Azure Endpoint
3. delete the computers from the Endpoint by the computer name (csv file)
4. delete the autopilot devices from the Endpoint by the computer serial number (csv file)
5. delete the computes from the Azure Active Directory (csv file)

The goal is to clean up Azure AD, Endpoint and Autopilot

There are scripts available in the internet for example:

https://smsagent.blog/2020/03/17/delete-device-records-in-ad-aad-intune-autopilot-configmgr-with-powershell/
Related categories: Azure Powershell