Use this when initializing, partitioning or extending disks on Windows.
Disk Management
Disk Management (diskmgmt.msc) is the Windows tool to initialize disks as MBR or GPT and create, format, extend, shrink and assign letters to volumes. diskpart and Storage PowerShell do the same from the command line.
1. Disk Management: GUI for disks, partitions and volumes.
2. PowerShell is better for scripts and remote.
3. diskpart for recovery situations.
4. Be careful with disk numbers.
5. Rescan after changes (Update-HostStorageCache).
admin → Disk Management/PowerShell → disks
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 PowerShell equivalents Verify boundary
| Disk Management action | PowerShell |
|---|---|
| Bring online | Set-Disk -Number 2 -IsOffline $false |
| Initialise GPT | Initialize-Disk -Number 2 -PartitionStyle GPT |
| New volume | New-Partition -DiskNumber 2 -UseMaximumSize -AssignDriveLetter | Format-Volume -FileSystem NTFS |
| Extend | Resize-Partition -DriveLetter E -Size (Get-PartitionSupportedSize -DriveLetter E).SizeMax |
Step 2 Step-by-step failure diagnosis Narrow the fault
Disk Management visibility does not show filesystem/application I/O health.
Step 3 Common mistakes Narrow the fault
- Initialising the wrong disk.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- New disks must be initialized.
- diskpart and PowerShell do the same tasks.
- Extend needs adjacent free space.
diskmgmt.msc— GUIdiskpart— CLIGet-Disk; Get-Partition; Get-Volume— PowerShell equivalents
ReferenceHow it works1 section · depth on demand
Disk Management vs alternatives
| Tool | Use |
|---|---|
| diskmgmt.msc | GUI for initialise, partition, format, extend, shrink, letters |
| diskpart | Scriptable CLI (clean, convert, attributes) |
Storage cmdlets (Get-Disk, New-Partition) | Automation and remote management |
| Windows Admin Center | Web management of servers |
diskpart clean wipes the partition table immediately with no confirmation, so list disk and select disk carefully.
ReferenceImportant terms & boundaries2 sections · depth on demand
Common error states
| State | Meaning |
|---|---|
| Offline (policy) | SAN policy kept the disk offline |
| Not initialized | New disk without partition table |
| Foreign | Dynamic disk from another system |
| Missing | Dynamic disk member not present |
| RAW | Partition has no recognised file system |
In depth
Disk Management (diskmgmt.msc) covers basic tasks; diskpart and the Storage PowerShell module cover everything and can be scripted.
| Task | PowerShell | diskpart |
|---|---|---|
| List disks | Get-Disk | list disk |
| Online disk | Set-Disk 2 -IsOffline $false | select disk 2 → online disk |
| Clear read-only | Set-Disk 2 -IsReadOnly $false | attributes disk clear readonly |
| Extend | Resize-Partition | extend |
| Wipe disk | Clear-Disk 2 -RemoveData | clean |
Clear-Disk and clean destroy the partition table immediately — check the disk number against size and serial first.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Storage → Disk Management. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/storage · confidence 94%