Need to delete specific 200 devices from Intune

Question

Hi Experts ,

I need to delete specific windows devices from Intune , Can you please help me with the PowerShell script to perform this activity.

Example : We will give the device name in the csv and then script will help us to delete the device.

Thanks,

Ketan

solved 0
Ketan Kamble 4 months 2020-11-03T11:40:58+05:30 1 Answer 66 views Beginner 0

Answer ( 1 )

    1
    2020-11-03T18:28:10+05:30

    Issue Solved : Used script from link :

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

    — Ran the script with below modification m given list of devices with below script :
    $computer_list = Import-Csv “C:\temp\Script_test.csv”
    foreach ($computer in $computer_list)
    {
    .\Delete-AutopilotedDeviceRecords.ps1 -ComputerName $($computer.ComputerName) -Intune
    }

    Best answer

Leave an answer

Sorry, you do not have a permission to answer to this question .