

Command BitLocker to encrypt either used disk space or all disk space via the GUI or PowerShell, and once encrypted, your data is non-recoverable without the BitLocker key. You could probably build a WinPE environment that ran a powershell script to send ATA commands, but then you might as well use a bootable dban image instead.Ī solution you could automate using PowerShell from within Windows is BitLocker. No software running in normal Windows installations can pass ATA commands. However, Microsoft's AHCI driver blocks these commands unless you're running in a WinPE environment. The ATA "SECURE ERASE" and "SANITIZE" commands can be sent to the storage device controller and are usually your best technological bet for quickly and securely erasing an entire disk. Unfortunately there is no easy Erase-Disk -Secure cmdlet. There are things you can do in PowerShell to effectively secure data on your disk, depending on your need to erase/dispose/recycle a drive.
