Skip to content

Instantly share code, notes, and snippets.

@mibmo
Created May 28, 2022 19:22
Show Gist options
  • Save mibmo/7d057a0c07bdbc02e1694a259599c7f6 to your computer and use it in GitHub Desktop.
Save mibmo/7d057a0c07bdbc02e1694a259599c7f6 to your computer and use it in GitHub Desktop.
Completely wipe user directory with one command from the run box.

Opens a background process that completely wipes all files in the user profile directory.

To run, copy the command below and paste into the Run box (opened through Windows + R).

powershell.exe Start-Process powershell.exe -NoNewWindow -argument '-nologo -noprofile -executionpolicy bypass -command Remove-Item $env:userprofile\* -Recurse -Force'

Contributions

I've very little experience with Windows; optimizations & fixes are very welcome!

Disclaimer

Do NOT use this for malicious purposes. This was made for the purpose of wiping a bunch of computers quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment