Increase the maximum size of the virtual hard disk via command prompt!
You can change the maximum hard disk capacity at any time using the command line for the VHD or virtual hard disk under Windows 11, 10, ... and MS Server OS!
1.) Changing the maximum size of the virtual hard disk!
1. Please start the diskpart under MS Windows OS
2. Use the command select vdisk
3. To change the size of the VHD enter expand vdisk maximum=132000
Here in the example with 132000, that is ~ 128 GB, the maximum is specified in megabytes, you can specify any other size for the virtual hard disk that is required! This command works under Windows 11, 10, ... etc. and current MS Server OS!
DISKPART> select vdisk file="y: \_ 1\VHD64GB.vhd"
The file for virtual disks was successfully selected by DiskPart.
DISKPART> expand vdisk maximum=132000
100 percent processed
The file for virtual disks was successfully expanded by DiskPart.
2.) What should you watch out for in order to change the maximum hard drive capacity of the VHD?
The maximum size of the VHD for virtual data carriers is of the fixed size and dynamic type, the dynamic is growing. Both types of VHD variants can be changed in terms of the size of the virtual data carrier.
With static or fixed VHDs, one has the impression that this cannot be done, that after the size has been determined, it can no longer be changed. But this is not the case, it can be enlarged later, for example if the volumes it contains become full!
| (Image-2) Create a virtual hard disk via the disk management!
3.) More information about the virtual hard disk!
FAQ 118: Updated on: 11 September 2021 19:37
If you start the terminal APP, the directory will not be taken over by the higher-level program, application, process This is the standard setting in the
This is how you can see via the command prompt which websites / servers your computer is secretly connecting to under Windows 11, 10, and MS Server OS
Sometimes you need space on the hard drive where there is none at all. Hard links and soft links under Windows 11, 10, etc. as well as MS Server can
You can simply test the hard drive speed with a command prompt or PowerShell under Windows 11, 10, or MS Server 2022, 2019, etc. There are many
Deactivating, activating and listing the network adapters via command prompt or Powershell is quite easy to do under Windows 11, 10, and MS Server Everyone
Connecting or disconnecting network drives via the command prompt under Windows 11, 10, or MS Server without mouse clicks is a very practical option
»» My question is not there in the FAQ
Keywords: windows, console, increase, maximum, size, VHD, virtual, hard, disk, command, prompt, change, capacity, server, Questions, Answers, Software