6.4MD-102Intermediate
Est: ~15 minsVerified: 2026-08

Device Lifecycle: Remote Actions & Recovery

Master remote device actions across the employee lifecycle: Wipe vs Retire vs Fresh Start vs Autopilot Reset, and BitLocker recovery key retrieval via Entra ID.

Tags:#Lifecycle#Wipe#Retire#Fresh Start#Autopilot Reset#BitLocker Recovery#MD-102
01

Overview

Managing the device lifecycle—from active employment, to device re-purposing, theft, lost hardware, and employee offboarding—requires understanding the exact operational nuances of Microsoft Intune Remote Actions:

  1. Retire: Removes corporate data, configuration profiles, certificates, and MDM management while leaving all personal data intact. The device un-enrolls from Intune.
  2. Wipe (Factory Reset): Restores the machine to original factory Out-of-Box Experience (OOBE) defaults, deleting all user data, personal files, and installed software.
  3. Fresh Start: Reinstalls a clean version of Windows 10/11, removing pre-installed OEM bloatware while optionally preserving user data profiles.
  4. Autopilot Reset: Resets the device to a fully configured, business-ready state (removing personal accounts while keeping Entra join and Intune enrollment), ready for the next employee in under 20 minutes.
  5. BitLocker Key Escrow Recovery: Instantly retrieves 48-digit numerical recovery passwords when a user is locked out by firmware changes or TPM failures.

---

02

When to Use: Remote Action Decision Matrix

Remote ActionCorporate DataPersonal DataEntra / MDM StateBest Used For
RetireRemovedPreservedDevice un-enrolledEmployee departures with personal BYOD devices (Windows, iOS, Android).
WipeRemovedRemovedFactory Defaults (OOBE)Stolen / lost laptops, or devices transitioning to a completely different user.
Fresh StartRemovedOptional KeepClean OS ReinstallRemoving vendor OEM bloatware on new retail laptops.
Autopilot ResetMaintainedRemovedRemains Entra JoinedRapid re-assignment of shared or corporate devices without re-enrolling.

---

03

Prerequisites

Administrator Permissions:

  • Intune Role: Intune Administrator, Help Desk Operator, or Endpoint Security Manager.
  • BitLocker Key Reader: Role in Microsoft Entra ID or Intune (Global Reader or BitLocker Key Reader).

Endpoint Connectivity:

  • Device must have active internet connectivity (cellular, Ethernet, Wi-Fi) to receive the push notification from the Microsoft Notification Service (WNS / APNs).

---

04

Portal Path

TEXT
Microsoft Intune Admin Center (https://intune.microsoft.com)
└── Devices
    └── All devices > [Select Target Device]
        ├── Overview top bar:
        │   ├── Sync
        │   ├── Restart
        │   ├── Autopilot Reset
        │   ├── Fresh Start
        │   ├── Retire
        │   └── Wipe
        └── Monitor > Recovery keys (BitLocker 48-digit password)

---

05

Step-by-Step Implementation

Step 1: Performing a Controlled Device Wipe

  1. In Intune Admin Center, navigate to Devices > All devices > Select target device.
  2. In the top action bar, click Wipe.
  3. Configure wipe options:
  • Wipe device, and continue to wipe even if device loses power: Check if decommissioning or disposing of hardware.
  • Wipe device, and keep enrollment state and associated user account: Check if refreshing OS while maintaining user identity.
  1. Click Yes to confirm. The device restarts and begins disk formatting within 5–15 minutes.

Step 2: Retrieving BitLocker Recovery Keys via Intune

  1. Select the locked target device in Intune > Devices > All devices.
  2. Under the Monitor section on the left menu, select Recovery keys.
  3. Locate the matching Key ID shown on the user's blue BitLocker recovery screen.
  4. Click Show Recovery Key.
  5. The 48-digit numerical password appears (e.g., 123456-789012-345678...). Read this to the user to unlock their drive.

---

06

PowerShell Automation

Trigger Remote Device Sync via Microsoft Graph PowerShell:

PowerShell
Connect-MgGraph -Scopes "DeviceManagementManagedDevices.PrivilegedOperations.All"

# Find managed device ID
$Device = Get-MgDeviceManagementManagedDevice -Filter "deviceName eq 'CORP-WIN11-042'"

# Send instant Remote Sync command to force policy check-in
Sync-MgDeviceManagementManagedDevice -ManagedDeviceId $Device.Id

Remotely Trigger Autopilot Reset:

PowerShell
# Executes Autopilot Reset on targeted device
Invoke-MgDeviceManagementManagedDeviceWindowsDefenderScan -ManagedDeviceId $Device.Id
# Or trigger Autopilot Reset directly:
$Uri = "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices('$($Device.Id)')/cleanWindowsDevice"
Invoke-MgGraphRequest -Method POST -Uri $Uri

---

07

Microsoft Graph Automation

Query Escrowed BitLocker Recovery Key via Graph:

PowerShell
Connect-MgGraph -Scopes "BitlockerKey.Read.All"

# Retrieve all BitLocker keys escrowed in Microsoft Entra ID
$BitlockerKeys = Get-MgInformationProtectionBitlockerRecoveryKey -All

# Query specific 48-digit recovery password for a known Key ID
$TargetKeyId = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $TargetKeyId -Property "key" |
    Select-Object id, createdDateTime, deviceId, key

---

08

Verification Checklist

VERIFICATION CHECKLIST
0/5 (0%)
Target device acknowledges remote command and executes reboot.
For Retire: Device disappears from Intune MDM, corporate Wi-Fi profiles are removed, personal files remain.
For Wipe: Machine formats storage partitions and reboots into clean OOBE setup.
For Autopilot Reset: Machine wipes local user profile, returns to initial corporate login, maintains Entra Join.
BitLocker audit logs in Entra ID record the identity of the administrator who viewed the recovery key.
09

Diagnostic Logs & Channels

Channel / ToolLog LocationPurpose
Audit Logs (Intune)Intune Admin Center > Tenant administration > Audit logsAudits which administrator initiated Wipe, Retire, Restart, or Key Reveal actions.
Push Notification Client (WNS)Microsoft-Windows-PushNotifications-Platform/OperationalTracks delivery of remote push commands from Microsoft Cloud to client machine.
BitLocker Management Event LogApplications and Services Logs > Microsoft > Windows > BitLocker-API > ManagementLogs recovery key backup successes and escrow failures to Entra ID.

---

10

Troubleshooting Matrix

Error Code / SymptomRoot CauseExact Resolution
Remote Action shows "Pending" foreverDevice is powered off, in sleep mode, disconnected from Wi-Fi, or firewall blocks WNS.Device will execute command automatically as soon as it reconnects to internet.
"BitLocker key not found" in portalBitLocker was enabled manually before enrollment, or escrow policy was not applied.Run elevated PowerShell to backup key manually: BackupToAAD-BitLockerKeyProtector -MountPoint "C:" -KeyProtectorId .
Retire did not remove personal filesThis is the intended design behavior of Retire.If full erasure was intended, issue a Wipe instead of a Retire.

---

11

Production Best Practices

Production Best Practice

Audit BitLocker Key Access:

Viewing a BitLocker recovery key is a sensitive administrative action. Regularly review the Audit logs in Microsoft Entra ID (Filter by Activity: Read BitLocker key) to detect unauthorized key viewing.

Security Caution

Fresh Start on Non-Standard Hardware:

When issuing a Fresh Start, Windows reinstalls using the default generic Windows image. Ensure critical storage or network drivers are available, or use Autopilot Reset if proprietary hardware drivers are required.

---

12

MD-102 Exam Notes

Exam Blueprint & High-Yield Traps

High-Frequency Exam Objectives & Traps:

  1. Retire vs Wipe: Retire preserves personal data and removes corporate data (ideal for BYOD). Wipe wipes everything back to factory defaults.
  2. Autopilot Reset Advantage: Autopilot Reset maintains the Microsoft Entra join and MDM enrollment state; it does not require running through OOBE again.
  3. Fresh Start Options: Fresh Start can optionally retain user data by checking Retain user data on this device.

---

13

Official Documentation