Skip to content

How-ToSSD

How to Use Disk2vhd to Turn Your PC's Drive into a Virtual Disk

Disk2vhd is a free Sysinternals tool that copies a running PC's disk into a VHD or VHDX file. We explain what it captures, what to check first (space, BitLocker, licensing), how to create the file, how to open it in Disk Management, and how to boot it in a Hyper-V virtual machine without breaking the boot configuration.

By , Systems & Technical Editor

5 min read

How to Use Disk2vhd to Turn Your PC's Drive into a Virtual Disk

Disk2vhd is a small, free Sysinternals tool that copies a physical disk into a virtual hard disk file while Windows is running. That's useful in a few situations: keeping a complete, browsable snapshot of an old PC before you wipe it, moving an old Windows install into a virtual machine so a legacy app keeps working, or grabbing a copy of a drive before a risky change. This guide covers what Disk2vhd does, how to run it, and how to open or boot the result, based on Microsoft's documentation as of 29 November 2026.

What Disk2vhd does

Microsoft describes Disk2vhd as a utility that creates VHD (Virtual Hard Disk) versions of physical disks for use in Microsoft Virtual PC or Hyper-V virtual machines. What sets it apart from other physical-to-virtual tools is that you can run it on a system that's online. It uses Windows' Volume Snapshot capability to take consistent point-in-time snapshots of the volumes you choose, so you don't need to boot from a USB stick or shut anything down.

A few points from Microsoft's page shape how you use it:

  • It creates one virtual disk file per physical disk that has selected volumes on it.

  • It keeps the disk's partition layout, but only copies the data for the volumes you tick. That means you can capture just your Windows volumes and leave out a big data partition.

  • You can save the virtual disk to a local volume, even one being converted, but Microsoft says performance is better when the file goes on a different disk from the one being copied.

  • It doesn't support volumes with BitLocker enabled. Turn BitLocker off and wait for the volume to finish decrypting first. Our guide to finding your BitLocker recovery key is worth reading before you touch encryption settings.

The current download is Disk2vhd v2.02. Microsoft's page mentions VHD and the old Virtual PC, but the current program can also create the newer VHDX format: its file dialog offers both .vhd and .vhdx. If you're new to these files, our guide to creating a VHDX virtual disk in Windows 11 explains what they are.

Before you start

  1. Make sure there's enough space. You need room for the used data on the volumes you're capturing, ideally on a second internal drive or a fast external SSD.

  2. Check BitLocker or Device Encryption. As above, encrypted volumes can't be converted. See BitLocker vs Device Encryption if you're not sure which one your PC uses.

  3. Consider licensing. Microsoft's Disk2vhd page notes that Windows installed by PC makers using OEM licences may not be transferred to a virtual hard drive under Microsoft's licensing terms. If you plan to run the old install as a virtual machine rather than just browse its files, check your licence.

Step 1: Download and run Disk2vhd

Download Disk2vhd from its Sysinternals page on Microsoft Learn and extract the zip; it doesn't need installing. Microsoft says it runs on Windows Vista, Windows Server 2008 and later, including 64-bit systems. Right-click the version that matches your PC (the download includes 64-bit and Arm64 builds) and choose Run as administrator, then accept the licence.

Step 2: Choose the volumes and output file

The window lists the volumes on your PC. Tick the ones you want. For a working copy of Windows you'll want everything on the Windows disk, including the small system partitions alongside the main C: volume, not just C: itself. For a data-only archive, tick just the data volume.

Then:

  • Give the output file a .vhdx extension for the modern format, unless you specifically need an old .vhd file.

  • Leave Use Volume Shadow Copy ticked. That's the snapshot feature that lets Disk2vhd copy a disk while Windows is using it.

  • Set the output path to a different drive from the one you're capturing, then click Create.

How long it takes depends on how much data there is and how fast the drives are.

Command-line option

Disk2vhd can also be scripted. Microsoft gives the syntax as disk2vhd <[drive: [drive:]...]|[*]> <vhdfile>, where * includes all volumes. For example:

disk2vhd * e:\vhd\snapshot.vhdx

This is handy for a repeatable copy you run from Task Scheduler; see how to use Task Scheduler in Windows 11.

Step 3: Open the files in the virtual disk

To get at files without starting a virtual machine, open Disk Management as administrator, choose Action > Attach VHD, browse to the .vhdx or .vhd file and click OK. Its volumes appear in File Explorer like any other drive. When you've finished, right-click the disk in Disk Management and detach it; Microsoft notes that detaching doesn't delete the file or the data in it.

There's one important warning from Microsoft. Don't attach the virtual disk on the same PC that created it if you plan to boot from it later. Windows gives the attached disk a new disk signature to avoid a clash with the original drive, and because the boot configuration refers to the boot disk by its signature, Windows will then fail to find it when you boot the copy in a virtual machine. If you want both, attach a copy of the file rather than the original, or browse it on another PC.

Step 4: Boot it in a virtual machine (optional)

To run the captured Windows install, create a virtual machine and add the virtual disk as its hard drive. If you use Hyper-V, see how to enable Hyper-V, or our round-up of the best free virtual machine software for alternatives.

The generation you choose matters. Microsoft's Disk2vhd page says to add the disks to the VM as IDE disks, which means a Generation 1 virtual machine in Hyper-V. Microsoft's Hyper-V guidance also says to choose Generation 1 if you're using an existing virtual hard drive that isn't compatible with UEFI. Generation 2 VMs use UEFI firmware rather than legacy BIOS, so if the PC you captured booted with UEFI, Generation 2 is likely to be the one that boots. If one generation doesn't boot, try the other with the same disk file.

On first boot, Microsoft says the captured Windows will detect the virtual machine's hardware and install drivers if they're present in the image. If they're not, install them from the Hyper-V integration components.

What Disk2vhd isn't

Disk2vhd makes a one-off copy. It doesn't schedule incremental backups, verify the copy or restore an image to a new drive. For regular backups, use a proper imaging tool; see how to create a system image backup in Windows 11 and our pick of the best free backup software.

The bottom line

Disk2vhd is the quickest free way to turn a running Windows PC's disk into a VHDX file you can browse in Disk Management or boot in Hyper-V. Decrypt BitLocker volumes first, save the file to a different drive, and don't attach the disk on the source PC if you plan to boot it later. For ongoing backups, use a dedicated imaging tool instead.

Sources

  1. 01Microsoft Learn (Sysinternals), Disk2vhd v2.02
  2. 02Microsoft Learn, Manage virtual hard disks (VHD)
  3. 03Microsoft Learn, Should I create a generation 1 or 2 virtual machine in Hyper-V?

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Emulators for PC in 2026

Best Picks

Best Free Emulators for PC in 2026

The best free emulators for PC in 2026: RetroArch for retro systems in one app, PCSX2 for PS2, Dolphin for GameCube and Wii, DuckStation for PS1 and PPSSPP for PSP. We compare the systems each covers, licences, BIOS needs, hardware requirements and features from each project's official site, and explain how to stay legal with your own games and BIOS dumps.

Hannah Vance6 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

Versus

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

pyVideoTrans and VideoLingo are popular open-source tools for translating and dubbing videos with AI on your own PC. Using each project's official docs, we compare installation, speech recognition, translation engines, dubbing voices, offline use, GPU support and licences, and say which suits which job.

Callum Reid4 min