diskpart list disk select disk 0 clean convert gpt exit Then restart the deployment task sequence. In your MDT/SCCM task sequence, insert a step to clear the disk via PowerShell:
Get-Disk | Where-Object Size -GT 100GB | Clear-Disk -RemoveData -Force This ignores USB keys/SD cards.
Get-Disk -Number 0 | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false Do not rely on Disk 0 . Modify your ZTIDiskPart.wsf or custom script to select the disk by size (e.g., the largest physical disk):
I have broken this down into three formats: Option 1: Troubleshooting Guide (For a Blog or Internal KB) Title: Fix: "Disk 0 Cannot Be Formatted" in ZTIDiskPart on Dell PowerEdge Servers
Let me know what PERC controller you have (H330, H740P, etc.) if the issue persists. Use this in WinPE as a replacement for raw ZTIDiskPart:
Here is technical content tailored for IT support, Dell system administrators, or users troubleshooting this specific error.
diskpart list disk select disk 0 clean convert gpt exit Then restart the deployment task sequence. In your MDT/SCCM task sequence, insert a step to clear the disk via PowerShell:
Get-Disk | Where-Object Size -GT 100GB | Clear-Disk -RemoveData -Force This ignores USB keys/SD cards. disk 0 cannot be formatted in ztidiskpart dell
Get-Disk -Number 0 | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false Do not rely on Disk 0 . Modify your ZTIDiskPart.wsf or custom script to select the disk by size (e.g., the largest physical disk): diskpart list disk select disk 0 clean convert
I have broken this down into three formats: Option 1: Troubleshooting Guide (For a Blog or Internal KB) Title: Fix: "Disk 0 Cannot Be Formatted" in ZTIDiskPart on Dell PowerEdge Servers Modify your ZTIDiskPart
Let me know what PERC controller you have (H330, H740P, etc.) if the issue persists. Use this in WinPE as a replacement for raw ZTIDiskPart:
Here is technical content tailored for IT support, Dell system administrators, or users troubleshooting this specific error.