Microsoft Virtualization Discussions

Disk Sanitization

sbrack
4,798 Views

Is there any function / Cmdlet in the PowerShell ToolKit I can use for scripting the disk sanitization process? My customer is searching an elegant way to automate the process of erasing old storage systems securely. Security demands are high so we have to use the disk sanitization feature.

1 ACCEPTED SOLUTION

cknight
4,798 Views

I don't have a great answer for this question.  There are no APIs for the disk sanitization feature, hence no cmdlets.  I would normally recommend Invoke-NaSsh, but that CLI command offers no switch to suppress confirmation warnings, so the SSH invocation doesn't return.  You need some kind of scriptable SSH tool with an 'expect' feature that allows you to dismiss the confirmation.

View solution in original post

2 REPLIES 2

cknight
4,799 Views

I don't have a great answer for this question.  There are no APIs for the disk sanitization feature, hence no cmdlets.  I would normally recommend Invoke-NaSsh, but that CLI command offers no switch to suppress confirmation warnings, so the SSH invocation doesn't return.  You need some kind of scriptable SSH tool with an 'expect' feature that allows you to dismiss the confirmation.

paleon
4,798 Views

The Invoke-NaSsh cmdlet allows users to execute any command they would enter at the command line.  Get-NaDisk and Get-NaDiskOwner would be useful for identifying which disks belong to which aggregate and which controller.

Public