Wipe a Device Remotely
Perform a remote wipe on a specific device. Use Connect-MSGraph to authenticate and ensure you have the required permissions to manage Intune resources.
Get-IntuneManagedDevice | Select-Object DeviceName, OperatingSystem, DeviceId, ComplianceState
# Remote wipe a device $deviceId = "your-device-id" # Replace with actual device ID Invoke-IntuneManagedDeviceWipe -DeviceId $deviceId -KeepEnrollmentData $false