Uopilot script

broken image
broken image
broken image

Show you all objects in Intune and AAD related to that Serial NumberĪsk if you want to delete in from Intune then deletesĪsk if you want to delete in from Autopilot then deletes Search in Autopilot for the serial number If you entered local AD domain, it will ask you for the username and password, for the username, use \User format Enter the local FQDN (, contoso.local) of your AD Domain Prompt to connect you to Azure AD and Intune GraphĪsk you if you want to connect to local AD (ADDS, NT Domain) so it could delete old records from there. Show you the Serial Number of the machine & 'C:\Program Files\WindowsPowerShell\Scripts\AutopilotNuke.ps1'ĭownload and install all required modules (accept all prompts) Intended usage – from OOBE (Out of Box Experience) The script can work from running Windows 10, but be careful removing native Azure AD joined Intune Devices - you can lock yourself out, if you do not know local administrator's password Runs from OOBE screen, connects to Azure AD, Intune and optionally to AD DS, finds all objects for the serial number of the machine it is running on, then deletes it from everywhere, then adds it to Autopilot again.

broken image