-
Notifications
You must be signed in to change notification settings - Fork 5
remote_wipe.ps1
Corey Watson edited this page Dec 19, 2025
·
1 revision
Initiates a remote wipe of the Windows device using the MDM RemoteWipe CSP.
Initiates a remote wipe of the Windows device using the MDM RemoteWipe CSP. This completely erases all data on the device and resets it to factory state.
WARNING: THIS ACTION IS IRREVERSIBLE
ALL DATA ON THE DEVICE WILL BE PERMANENTLY DELETED
Initiates a remote wipe of the Windows device using the MDM RemoteWipe CSP. This completely erases all data on the device and resets it to factory state.
- Windows 10/11 (MDM enrolled or Azure AD joined)
- Administrator privileges
- Device must have MDM RemoteWipe capability
None
- Creates CIM session to local MDM namespace
- Retrieves MDM_RemoteWipe instance
- Invokes the doWipeMethod
- Device begins factory reset process
- THIS IS A DESTRUCTIVE OPERATION
- Use only on lost/stolen devices or for secure decommissioning
- Cannot be undone once initiated
- Ensure proper authorization before running
- 0 = Wipe initiated successfully
- 1 = Failure (CIM session, instance not found, or wipe failed)
[ INITIALIZING REMOTE WIPE ]
--------------------------------------------------------------
CIM Session : Created
MDM Instance : Found
[ EXECUTING WIPE ]
--------------------------------------------------------------
Status : Invoking doWipeMethod...
Result : Wipe initiated successfully
[ FINAL STATUS ]
--------------------------------------------------------------
REMOTE WIPE INITIATED - DEVICE WILL RESET
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps
- View Script Source
- Scripts - Back to script index