- Resize-Partition
- Syntax
- Description
- Examples
- EXAMPLE 1
- Parameters
- How to change partition size in Windows 10
- Change partition size with Windows 10 Disk Management
- How to decrease partition size in Windows 10:
- How to increase partition size in Windows 10:
- Adjust partition size with partition editor
- Take care of data while resizing disk partition
- How to Free Resize Partition for Windows 7, 8 or 10?
- How to free resize partition in Windows 7
- Extend Partition
- Shrink partition
Resize-Partition
Resizes a partition and the underlying file system.
Syntax
Description
The Resize-Partition cmdlet resizes a partition and the underlying file system.
Examples
EXAMPLE 1
This example starts with a 931.39 GB partition.
Parameters
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Type: | CimSession [ ] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an ID used to identify a disk in the system.
Type: | String [ ] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies an array of disk numbers.
Type: | UInt32 [ ] |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a letter used to identify a drive or volume in the system.
Type: | Char [ ] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the input object that is used in a pipeline command.
Type: | CimInstance [ ] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the starting offset, in bytes.
Type: | UInt64 [ ] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the number of the partition. The number of the partition to be resized.
Type: | UInt32 [ ] |
Aliases: | Number |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Sends items from the interactive window down the pipeline as input to other cmdlets. By default, this cmdlet does not generate any output.
To send items from the interactive window down the pipeline, click to select the items and then click OK. Shift-click and Ctrl-click are supported.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the size of the partition to create. If not specified, then the number will default to Bytes. The acceptable values for this parameter are: Bytes, KB, MB, GB, or TB. The size may be defined by a user.
Type: | UInt64 |
Position: | 2 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Type: | Int32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
How to change partition size in Windows 10
by Andy, Updated on: March 1, 2021
This article introduces how to change partition size for Windows 10 computer without losing data. Resize disk partition with native Disk Management and partition editor software.
When system C drive is running out of space, nobody wants to start from scratch, so many people search by Google to find a better way. In technical forums, many people have similar questions such as:
- Is it possible to change partition size in Windows 10 without reinstalling OS.
- Is it safe to re-size partition and which tool is better to change allocated partition size.
The answer is definitely yes. To change volume size in Windows 10 laptop and desktop, there are 2 options: Windows built-in Disk Management and third party partition editor software. Because of many shortages, Disk Management is not the best tool to change partition size.
Change partition size with Windows 10 Disk Management
Windows 10 Disk Management inherited Shrink Volume and Extend Volume functions from previous version. Shrink Volume can decrease the size of both system C drive and data volumes. Extend Volume can increase size of a drive when there is adjacent Unallocated space. Both functions are safe to change partition size in Windows 10 (32 & 64 bit).
However, if you want to extend a volume by shrinking another one, Disk Management cannot help you, learn why.
How to decrease partition size in Windows 10:
- Press Windows and X on the keyboard and select Disk Management from the list.
- Right click the drive you want to decrease and select Shrink Volume.
- Enter the amount of space (1024MB=1GB) and click Shrink to execute.
This drive will be shrunk within a short time in most cases.
Restrictions of Shrink Volume function:
- Only NTFS partition can be shrank, FAT32 and other types of volumes are not supported.
- Unallocated space can only be generated on the right side.
- Sometimes you can only shrink little space because of some unmovable files are located, even though there is large amount of free space in this drive.
How to increase partition size in Windows 10:
Only when your disk drive configuration meet the requirements below, Extend Volume is workable to increase partition size.
- There must be adjacent Unallocated space on the right side of the drive that you want to extend. If there’s no such Unallocated space, you must delete the right contiguous partition.
- The drive that you want to extend must be formatted with NTFS, FAT32 and other types of partitions are not supported.
- On MBR disk, the partitions to be deleted and extended must be the same Primary or Logical drive. Otherwise, you still cannot extend partition after deleting the right contiguous one.
To increase volume size with Disk Management:
- Right click the NTFS partition that has right adjacent Unallocated space and select Extend Volume.
- Simply click Next in the pop-up Extend Volume Wizard window.
- Click Next to use default selected disk and space, or change manually.
- Click Finish to execute.
Adjust partition size with partition editor
Comparing with Windows 10 Disk Management, NIUBI Partition Editor has advantages while resizing partition, for example:
- Both NTFS and FAT32 partitions are supported to shrink and extend.
- Unallocated space can be made on either left or right when shrinking a drive.
- Partitions can be extended via 1 step with adjacent Unallocated space on either side.
- Unallocated space can be moved and combined to any nonadjacent partition on the same disk.
- If there is not plenty of space in the same disk, NIUBI can copy to a larger one and extend partition with extra space.
How to change partition size in Windows 10 with NIUBI Partition Editor:
Download this program and you’ll see all disk partitions with structure and other information. In my test computer, there are drive C, D, E and system reserved partitions.
There are two options when decrease partition size, right click this partition (here is D:) and select «Resize/Move Volume».
Option 1: If you drag left border towards right in the pop-up window,
Then Unallocated space will be produced on the left side.
Option 2: If you drag right border towards left in the pop-up window,
Then Unallocated space will be produced on the right side.
These Unallocated space can be used to create new volume or combine to other partition.
To increase size of partition C:
Right click C and select «Resize/Move Volume» again, drag right border rightwards to combine Unallocated space.
To increase size of partition E:
Right click E and select «Resize/Move Volume» again, drag left border leftwards to combine Unallocated space.
If you want to decrease E to increase C, follow Option 1 to make Unallocated space on the left side of E. Before adding Unallocated space to C drive, there is an additional step to move Unallocated space to left side of D. To do this, right click drive D and select «Resize/Move Volume», drag middle position towards right in the pop-up window.
Take care of data while resizing disk partition
There is potential system and data damage risk while change partition size for Windows 10 computer. So you’d better back up first and use safe partitioning software. Better than other software, NIUBI Partition Editor provides powerful 1 Second Rollback, Virtual Mode and Cancel-at-well technologies to protect system and data.
Besides changing partition size, it helps you do many other operations such as: merge, convert, defrag, copy, hide, wipe and scan partition. Initialize, convert, set read-only attribute to disk, etc.
How to Free Resize Partition for Windows 7, 8 or 10?
You can free resize partition in Windows 7 without losing data via AOMEI Partition Assistant Standard.
By AOMEI / Last Updated June 12, 2020
Part of Windows 7 users found that sometimes, Windows Disk Management cannot extend volume or shrink volume, and they need to figure out a way to free resize partition in Windows.
Well, the AOMEI Partition Assistant Standard Edition is a totally free disk partition software for managing and optimizing hard drive for your PC and laptop. It allows you to resize partition in Windows 7 free. Besides, it has many other free features such as create, delete, format partition, etc. AOMEI Partition Assistant Standard supports all Windows PC operating systems including Windows 10, Windows 8/8.1, Windows 7, Windows Vista, Windows XP, both 32bit and 64bit. Here are the detailed steps for how to free resize partition in Windows 7 by using AOMEI Partition Assistant Standard.
How to free resize partition in Windows 7
AOMEI Partition Assistant allows you to extend partition or shrink partition more flexibly. Just free download this software, install and launch it. Then, follow the next content to extend or shrink volume.
Extend Partition
It can extend partition effortlessly. If the unallocated space is not adjacently behind the partition that you want to extend, it enables you to change position.
Step 1. Right-click the partition between the partition that you want to extend and the unallocated space and choose «Resize/Move Partition».
Step 2. Drag partition D rightward and click OK.
Step 3. Here you’ll find that the unallocated space is behind C drive.
Step 4. Right-click C drive and choose «Resize/Move Partition» .
Step 5. Slide the double-sided arrow to the right. Then, click «OK».
Shrink partition
If you want to shrink partition on the disk, the AOMEI Partition Assistant can provides you a simpler and safer way to shrink volume.
Step 1. Right-click the partition you want to shrink, select «Resize/Move Partition».
Step 2. Then, you drag the double-headed arrow toward inside flexible, or type the amount you want to shrink in the blank space. Click OK.
Step 3. Back to the main interface, you can see that the partition has been shrunk and there is unallocated space behind the partition. Click Apply to execute the task.
Notes:
Shrink system partition may execute under PreOS Mode.
If there are some page file or AOMEI Partition Assistant installation file running, it will be executed under PreOS Mode.
If there are still some programs running on the partition, AOMEI Partition Assistant will suggest you close the running program, or the process will be executed under PreOS Mode.
AOMEI Partition Assistant is such an outstanding software that you can use to free resize partition in Windows 7/8/10. It is a great tool that can free manage partition for Windows 7, Windows 8, and Windows 10. Besides changing partition size, you can also use it to create partition from unallocated space.