Category filter

Script to Wipe Windows Devices

Organizations may need to secure a lost, stolen or misplaced Windows device by performing a complete wipe on it. A complete wipe removes all the organizational and user data and apps, restoring the device to its factory defaults. Hexnode empowers organizations to execute the wipe action on Windows devices remotely with the help of custom scripts.

Notes:

  • You can also execute the Wipe Device action to perform a complete wipe on Windows devices.
  • The script works on Windows 10 and later versions.

Disclaimer:

  • The sample scripts provided below are adapted from third-party open-source sites.

PowerShell Script to Wipe Windows devices

Warning:

  • Hexnode can no longer manage a Windows device once it is completely wiped.

The PowerShell script to execute the wipe action on Windows devices is given below:

The doWipeMethod triggers the device to start the remote wipe.

Notes:

  • Hexnode recommends you to manually validate the script execution on a sample test device before performing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository