AutopilotCleanup
2.1.0
Bulk removal tool for devices from Windows Autopilot, Microsoft Intune, and Microsoft Entra ID. Features interactive WPF device selection grid, custom app registration support, automatic module installation, serial number validation, real-time deletion monitoring, fast bulk removal with CSV export, and WhatIf mode. Just run Start-AutopilotCleanup after importing.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2025. All rights reserved.
Package Details
Author(s)
- Mark Orr
Tags
Autopilot Intune EntraID DeviceManagement Cleanup MicrosoftGraph Windows Entra DeviceCleanup
Functions
Clear-AutopilotCleanupConfig Configure-AutopilotCleanup Connect-AutopilotGraph Get-AllAutopilotDevices Get-AutopilotDevice Get-EntraDeviceByName Get-GraphPagedResults Get-IntuneDevice Install-RequiredGraphModule Invoke-AutopilotCleanup Invoke-IntuneDeviceSync Invoke-IntuneDeviceWipe Remove-AutopilotDevice Remove-EntraDevices Remove-IntuneDevice Show-DeviceSelectionGrid Start-AutopilotCleanup Test-GraphConnection Test-IntuneDeviceRemoved Wait-ForDeviceWipe Write-ColorOutput
Dependencies
This module has no dependencies.
Release Notes
## 2.1.0
- Custom app registration support (Configure-AutopilotCleanup / Clear-AutopilotCleanupConfig)
- Start-AutopilotCleanup module entry point
- Automatic update check from PowerShell Gallery
- Cleaner console UI - replaced heavy box-drawing with minimal section headers
## 2.0.0
- PowerShell module architecture (Public/Private function structure)
- WPF device selection grid with search and multi-select
- Fast bulk removal mode with CSV export
- GroupTag filtering
- Serial number validation
- Real-time deletion monitoring
- WhatIf mode
- Automatic module installation
FileList
- AutopilotCleanup.nuspec
- Private\Invoke-IntuneDeviceWipe.ps1
- Private\Remove-AutopilotDevice.ps1
- Private\Remove-EntraDevices.ps1
- Private\Remove-IntuneDevice.ps1
- Private\Show-DeviceSelectionGrid.ps1
- Private\Show-UpdateNotification.ps1
- Private\Test-GraphConnection.ps1
- Private\Test-IntuneDeviceRemoved.ps1
- Private\Test-ModuleUpdate.ps1
- Private\Wait-ForDeviceWipe.ps1
- Private\Write-ColorOutput.ps1
- Public\Clear-AutopilotCleanupConfig.ps1
- Public\Configure-AutopilotCleanup.ps1
- Public\Connect-AutopilotGraph.ps1
- Public\Install-RequiredGraphModule.ps1
- Public\Invoke-AutopilotCleanup.ps1
- Public\Start-AutopilotCleanup.ps1
- AutopilotCleanup.psd1
- AutopilotCleanup.psm1
- Private\Get-AllAutopilotDevices.ps1
- Private\Get-AutopilotDevice.ps1
- Private\Get-EntraDeviceByName.ps1
- Private\Get-GraphPagedResults.ps1
- Private\Get-IntuneDevice.ps1
- Private\Invoke-IntuneDeviceSync.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 2.2.3 | 5 | 3/2/2026 |
| 2.2.2 | 4 | 3/2/2026 |
| 2.2.1 | 5 | 3/2/2026 |
| 2.2.0 | 6 | 3/2/2026 |
| 2.1.0 (current version) | 6 | 3/2/2026 |