Wednesday, February 13, 2013

Simple Disk Wipe with Powershell Script

Washing my laptop
I have a SATA 2.5" drive I'd like to lend to a friend, but I wanted to quickly wipe the drive with zeros before I gave it to him to use. Not that I'm paranoid about my data, but I think of doing a quick write of zeros on the drive as the same as washing a plate before you'd let someone eat off it.

I found that Chris Duck wrote a very simple script to perform this task. One of the people in the comments also reused the script and built upon it to work with CSV volumes as the free space calculation is different.

So, go check out Chris's site and dunk your disks in the soapy water of his .ps1 script.