Two Ways to Wipe a Windows Host with Powershell
Recently I had to come up with a solution to remote wipe a large number of windows workstations. The hosts had an EDR agent running on them which allowed me to remotely execute powershell, and that’s what I had to work with. There were two scenarios I had to deal with: one where the OS needed to be unusable and the data inaccessible by the user, and another scenario where the device needed to be usable but essentially factory reset in a clean state.