How to Create a Virtual Hard Disk (VHDX) in Windows 11 Disk Management

What is a VHDX?

A Virtual Hard Disk (VHD or the newer VHDX) is a single file on your physical hard drive that Windows treats as an entirely separate, physical drive. When you “mount” a VHDX file, it appears in File Explorer with its own drive letter (like D: or E:), you can format it with its own file system, and you can even encrypt it with BitLocker independently of your main C: drive.

They are incredibly useful for compartmentalizing data. For example, you can create a 50GB VHDX, store all your sensitive financial documents inside it, encrypt it, and then “unmount” it when you are done. The drive completely disappears from File Explorer, and the data simply rests safely inside a single, portable .vhdx file.

While you can create them via the Command Prompt using diskpart, the easiest way to create and manage them in Windows 11 is through the built-in Disk Management tool.

Step 1: Opening Disk Management

You need administrator privileges to create virtual drives.

  1. Right-click on the Start Button in the taskbar.
  2. Select Disk Management from the power user menu.

You will see a visual representation of all the physical storage drives currently attached to your computer.

Step 2: Creating the VHDX File

Now, we will generate the virtual disk file.

  1. In the Disk Management window, click on Action in the top menu bar.
  2. Select Create VHD.
  3. A dialog box will appear. Click Browse to choose where you want to save the actual .vhdx file. (e.g., C:\Users\YourName\Documents\SecureVault.vhdx).
  4. Set the Virtual hard disk size. (e.g., 50 GB).
  5. Select the VHDX format. (VHDX is far superior to the older VHD format; it supports larger sizes and is resistant to data corruption during power failures).
  6. Select the Virtual hard disk type.
    • Fixed size: It immediately claims 50GB of your physical drive. It is slightly faster.
    • Dynamically expanding: The file starts very small and grows as you add data, up to the 50GB maximum. (Recommended for most users).
  7. Click OK.

Windows will quickly build the file. When it finishes, you will see a new disk appear in the bottom pane of Disk Management (e.g., “Disk 1”), labeled as “Unknown” and “Not Initialized”.

Step 3: Initializing the Disk

Before Windows can write data to any new drive (physical or virtual), it must be initialized.

  1. Right-click on the grey box that says Disk 1 (or whatever number it was assigned).
  2. Select Initialize Disk.
  3. Ensure the correct disk is checked. Choose GPT (GUID Partition Table) as the partition style (this is the modern standard for Windows 11).
  4. Click OK.

The disk will now say “Online”, but the space next to it will still say “Unallocated”.

Step 4: Formatting the Volume

Finally, we need to format the unallocated space with a file system so Windows can use it.

  1. Right-click on the striped area labeled Unallocated.
  2. Select New Simple Volume.
  3. Click Next through the wizard.
  4. Choose a Drive Letter (e.g., V: for Vault).
  5. Choose NTFS as the File system, and give it a Volume label (e.g., “Secure Vault”).
  6. Click Next, then Finish.

Instantly, a new window will pop up. Your VHDX is now mounted and active as Drive V:. You can drag and drop files into it exactly as you would a USB flash drive.

Step 5: Ejecting (Unmounting) the Drive

When you are finished working with the files, you should unmount the drive to protect the data.

  1. Open File Explorer.
  2. Right-click on your virtual drive (e.g., Drive V:).
  3. Select Eject.

The drive letter will vanish. To access your files again later, simply navigate to where you originally saved the .vhdx file (in Step 2) and double-click it. Windows 11 will automatically remount it.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.