Resize Partition with PowerShell in Windows

Table of Contents
  1. Understand the problem
  2. Use Windows built-in tools
  3. Use Qiling tools for guided steps
  4. Check the result

PowerShell can resize a partition with commands such as Get-Partition and Resize-Partition. It is useful for administrators, but it requires exact disk and partition information.

Understand the problem

Command-line resizing is efficient when the disk layout is straightforward. It becomes risky when you need to move partitions, merge space, or handle boot partitions.

Use Windows built-in tools

Run PowerShell as administrator and verify every disk number before executing resize commands.

  1. Open Windows PowerShell as administrator.
  2. Run Get-Disk and Get-Partition to identify the target disk and partition.
  3. Run Get-PartitionSupportedSize -DriveLetter X to check the minimum and maximum supported size.
  4. Use Resize-Partition -DriveLetter X -Size 120GB with the correct drive letter and size.
  5. Open Disk Management after the command finishes to verify the partition layout.

Use Qiling tools for guided steps

Download Qiling Disk MasterQiling Disk Master

Resize a partition visually when PowerShell cannot move partitions or when you want to preview changes first.

Function. Resize or move the partition with preview

Step 1. Back up important files from the target partition. Close running programs, pause large file transfers, and make sure the computer has stable power.

Step 2. Open Qiling Disk Master. In the disk map, select the target partition by drive letter, capacity, and position, then click Resize/Move.

Select the partition to resize or move

Step 3. Drag the partition border or enter the new size to extend or shrink the partition to the planned size. If unallocated space is on the wrong side, move the neighboring partition first so the final layout is correct.

Adjust the partition size with preview

Step 4. Review the pending operations in the disk map. Confirm that only the intended partition will be changed.

Step 5. Click Proceed to apply the changes. Do not interrupt the process while the partition is being moved or resized.

Step 6. When the task finishes, reopen Disk Management and File Explorer. Confirm the final capacity, drive letter, and file access.

Check the result

Confirm the partition size in PowerShell and Disk Management. Open several files from the resized volume to make sure access is normal.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it