I've been doing a bit with Windows Powershell over the last few months, a very powerful tool that the Microsoft people have setup. It seems funny that after all those years of GUI base systems they have kind of moved back to what I started with when I last used Window NT 3.51. But they have done a very good job of building Powershell from the ground up as a new command line tool. I know Powershell has been around a while and I'm a bit late getting on the band wagon, but until recently I've not had a need to get involve. From a UNIX point of view I think they have done a very good job of taking the best of shell, dropping the chaff and producing a excellent tool.
So back on the reason for this little post, I wanted to clean a disk, erase all the data and ensure it wasn't readable to anyone else, so I had a look at Powershell.
I've got a old disk with some data on it that I no longer require, so before I shift it I wanted to clean any information off it. Good practice for anyone with a old disk. So I had a look at the Powershell commands to see if they could help. First I need to list what is attached to the system, in this case I've got the SATA disk attached to my laptop via a USB3 caddy.
This looks okay, but it doesn't give me the drive label.
Much better, I can see the drive letter and name.
Windows Vista added a feature to the Format command in that it writes 0's to the volume, it seems that on a default full format the disk has this done as default. But you can ask the system to do it more than once, I've not found the Powershell command variable, so I'm using the default format command.
The parameter '/P:4' specifies the number of passes it would make, in this case, four.