AutopilotCleanup
2.2.3
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.2.3
- Targeted API queries for -SerialNumber (no longer fetches entire tenant)
- WPF grid performance improvements (UI virtualization, CollectionView filtering, search debounce)
## 2.2.2
- Fix SerialNumber parameter variable collision causing type conversion errors during device removal
## 2.2.1
- Per-service progress bars during parallel fetch (page count and record count per service)
- Terminal indication when WPF device selection window is open
- Shared concurrent progress tracker for real-time thread job monitoring
## 2.2.0
- -SerialNumber parameter for direct device targeting (single or multiple), bypasses the WPF grid
- Parallel API fetching on PowerShell 7+ using thread jobs (Autopilot, Intune, Entra ID fetched concurrently)
- Automatic fallback to sequential fetch if parallel jobs fail
- Progress bars during pagination for large tenant data retrieval
## 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
- 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
- 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
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 2.2.3 (current version) | 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 | 6 | 3/2/2026 |