Inspect Partition Layout with Get-Partition

List every partition on every disk with its number, drive letter, type, and size using the Storage module.

WindowsstoragepowershellpartitionsLow risk
Run Get-Partition | Select DiskNumber, PartitionNumber, DriveLetter, Type, Size to map each disk's partition table.

01Command

Command
$ Get-Partition | Select-Object DiskNumber, PartitionNumber, DriveLetter, Type, @{n='SizeGB';e={[math]::Round($_.Size/1GB,1)}} | Sort-Object DiskNumber, PartitionNumber

02What it does

Get-Volume shows letters and free space but hides partitions that have no letter — the EFI System Partition, Recovery partition, and MSR, which is exactly what you need before resizing or clean-installing. Get-Partition exposes Type (System, Recovery, Basic, IFS), PartitionNumber for use with Remove-Partition or Resize-Partition, and MbrType/GptType GUIDs. Pipe one partition to Get-Volume or Add-PartitionAccessPath to assign a letter to a hidden recovery partition.

03Risk

RiskLow risk

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Get-Partition
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents Get-Partition objects and their DiskNumber, PartitionNumber, and Type properties.

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions