Key Points
- Windows device re-enrollment in Intune requires Windows 10 or 11 Pro, Enterprise, or Education with an assigned Intune license.
- Device Wipe, Retire, and Fresh Start behave differently, and only Wipe can optionally retain enrollment and user account data.
- Manual re-enrollment through Reset this PC or PowerShell commands, such as dsregcmd /join, recovers devices when the Intune wipe action fails.
- Corrupted enrollment states usually require deleting stale registry entries before the enrollment process can be retriggered.
- Autopilot and Group Policy environments reapply device configurations automatically once a wiped device rejoins Microsoft Entra ID.
This guide details the steps that are required in the case of re-enrollment after device wipe for Windows devices . It covers re-provisioning for previously enrolled devices in Microsoft Intune and remediation of failed or incomplete onboarding.
MSPs and internal IT administrators need to be able to re-enroll Windows PCs and mobile devices as part of the device lifecycle: often, devices considered lost and subsequently wiped are then found and need to be remotely re-provisioned, or devices need to be re-purposed for new users.
In some cases, devices may need to be freshly provisioned to apply new policies or respond to data loss, malware, or misconfiguration. Being able to do this without having to return hardware to base reduces downtime and manual labor.
Prerequisites for re-enrolling devices in Intune
To manage device enrollment in the endpoint lifecycle, you will need administrator access to Microsoft Intune Admin Center (previously known as Microsoft Endpoint Manager).
To re-enroll a device in Intune after it has been wiped, it must be running Windows 10 or Windows 11 Pro, Enterprise, or Education, and have an Intune license assigned to either the device or user. The device must also have been enrolled or eligible for Microsoft Entra join, Microsoft Entra hybrid join (formerly Azure AD Join and Hybrid Join), or Autopilot.
Note that Windows 10 reached end of support on October 14, 2025. It remains an allowed version for Intune enrollment, but it no longer receives quality or feature updates outside a paid Extended Security Updates (ESU) subscription, and functionality is not guaranteed. If you are re-enrolling a fleet of wiped Windows 10 devices in 2026, confirm each device’s ESU status before returning it to service.
Before wiping any device or removing it from management control, ensure that any important data on it has been backed up as it will not be recoverable.
What happens when you wipe a device in Intune? What is the difference between retire and wipe, and fresh start?
When re-enrolling a device after it has been wiped, keep in mind that Microsoft Entra ID will retain the device identity and reapply its configurations, while Intune Fresh Start reinstalls Windows and removes apps (re-enrolling with Intune when the user signs in). Device Wipe removes all user data and configurations (you can elect to retain enrollment and the associated user account, however). Retiring removes data and settings and unmanages the device, but does not factory reset it.
When repurposing hardware, ensure that Microsoft Entra ID and Intune records are correctly managed to avoid duplication or stale entries.
Wiping a device from Intune and retaining its Autopilot profile
To wipe a device from Intune and retain its Autopilot profile, log into the Microsoft Intune Admin Center and then:
- Navigate to Devices > Windows > All devices.
- Select the target device and then click Wipe.
- Choose to optionally wipe the device, but keep the enrollment state and the associated user account.
- The device will restart and retain only the optional information selected when initiating the wipe.
It is critical that you do not retire a device instead of wiping it from the Intune Admin Center unless it’s being fully decommissioned, or you will lose management control.
Manual reset on a device using “Reset this PC”
If the Intune wipe action fails or the device is offline, you can manually wipe the device and re-enroll it by following these steps:
- On the Windows device, open the Settings app and navigate to Settings > System > Recovery.
- Click Reset this PC and then choose Remove everything (select cloud download or local reinstallation based on whether you want a completely fresh installation of Windows downloaded from Microsoft, or to use files already on the device).
- Once the device has finished resetting, it will either re-trigger Autopilot provisioning or, if this fails, require manual rejoin via Microsoft Entra ID.
To remove devices that have failed to be fully removed from the Intune Admin Center, they can be removed from the specific device pane. Note that many mobile device management (MDM) platforms support automatic remediation of devices that have broken enrolment, rather than requiring manual intervention.
Organizations that have moved to Windows Autopilot device preparation, Microsoft’s newer, cloud-native re-architecture of Autopilot, do not need to register a hardware hash before re-provisioning a wiped device. Instead, the device picks up its assigned device preparation policy automatically the first time it reaches the out-of-box experience (OOBE) and connects to the internet. If your organization is still on classic Autopilot, the hardware-hash steps below still apply.
Advanced repair with Registry cleanup for enrollment artifacts
In some cases, device enrollment may be corrupted and needs to be purged manually by deleting information from the Windows Registry. This is done by managing the following keys using the Windows Registry Editor:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\Status\
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CloudDomainJoin
Once the relevant registry values have been deleted, the device must be rebooted, and the enrollment process must be triggered by running the following command:
dsregcmd /join
or, in PowerShell:
Start-Process “C:\Windows\System32\DeviceEnroller.exe” -ArgumentList “/c /AutoEnrollMDM”
This removes stale tokens and resets the enrollment pipeline.
Re-enrollment with Autopilot for post-wipe provisioning
To re-enroll with Autopilot after a device wipe, ensure the device ID is already registered in Autopilot, then:
- Connect the device to the Internet
- The Autopilot profile will be automatically pulled from Intune
- The device will go through Microsoft Entra join, Intune enrollment, and the ESP (Enrollment Status Page)
- Apps, policies, and scripts will then be re-applied automatically
You can verify success in the Intune interface, or by running dsregcmd /status on the device.
Group Policy and hybrid join for re-enrollment of domain-joined devices
In hybrid environments, post-wipe re-enrollment requires the use of Group Policy and Microsoft Entra Connect (formerly Azure AD Connect).
Confirm that the Computer Configuration > Administrative Templates > Windows Components > MDM Group Policy Object is applied to the device, and enable the Automatic MDM enrollment using default Azure AD credentials setting and configure the credentials to use.

Then, when the device is joined to your Active Directory domain post-wipe, it will be re-enrolled. You can also trigger re-applying Group Policy Objects by running gpupdate /force and rebooting your device.
PowerShell automation for re-enrollment
You can use the following PowerShell commands in your scripts for bulk or remote device re-enrollment, or for self-healing and remediation.
Optionally reset/wipe the device without user approval/intervention by running:
systemreset -factoryreset
Trigger the device join function with the command:
dsregcmd /join
The following PowerShell command will enroll the device with Intune:
Start-Process “C:\Windows\System32\DeviceEnroller.exe” -ArgumentList “/c /AutoEnrollMDM”
You can use the Microsoft Graph API to verify enrollment:
Get-MgDeviceManagementManagedDevice | Where-Object {$_.DeviceName -eq “Device123”}
Scripting device wipes, re-enrollment, and remediation reduces the need for manual device reconfiguration, and can be automated using MDM and deployment tools.
Re-enrollment methods at a glance
| Method | Best for | Prerequisite | Key command |
| Intune wipe (retain Autopilot) | Devices staying enrolled, needing a clean slate | Admin access to Intune Admin Center | Wipe action in Devices > Windows > All devices |
| Reset this PC | Offline devices or failed Intune wipe | Local access to the device | Settings > System > Recovery > Reset this PC |
| Registry cleanup | Corrupted or stuck enrollment | Local admin rights | dsregcmd /join |
| Autopilot re-enrollment | Devices already registered in Autopilot | Device ID in Autopilot, internet connection | Automatic on OOBE |
| Autopilot device preparation | Cloud-native environments avoiding hardware-hash registration | Device preparation policy assigned | Automatic on OOBE |
| Group Policy / hybrid join | Domain-joined devices | Group Policy Object applied, Microsoft Entra Connect sync | gpupdate /force |
| PowerShell automation | Bulk or remote re-enrollment | Script deployment access | Start-Process DeviceEnroller.exe |
Device re-enrollment troubleshooting
There are several common steps that you can take to troubleshoot device enrolment after it has been wiped:
| Issue | Cause | Fix |
| Enrollment fails after wipe | Device record still present in Intune | Delete the old device from Intune and Microsoft Entra ID. |
| ESP hangs post-reset | App dependency or sync delay | Disable blocking apps or extend the timeout. |
| Autopilot profile not applied | Device not assigned to dynamic group | Reassign or manually assign the profile. |
| MDM enrollment token invalid | Registry not cleared | Delete Enrollments and reboot. |
When troubleshooting, you can examine the logs located in the Windows Event Viewer at:
Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider
Microsoft > Windows > User Device Registration
You can also find information in the Windows Registry key located at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments
NinjaOne enables and automates Intune remediation and re-enrollment
Mobile Device Management (MDM) by NinjaOne gives IT teams and MSPs a way to automate the scripting and remediation work behind Windows re-enrollment. Native and custom automation scripts can run registry cleanup, trigger dsregcmd or DeviceEnroller commands, and remediate broken enrollment states on demand or on a schedule, without requiring a technician to touch each device. Remote Commands and the Remote Task Scheduler extend this to bulk or recurring re-enrollment tasks across a fleet.
For MSPs managing many client devices, this reduces the manual work of post-wipe remediation and helps keep devices in a known, managed state. Mobile Device Management (MDM) by NinjaOne handles the equivalent lifecycle for Apple and Android devices.

