How to Mount a VHDX to Windows using a PowerShell Script

To mount a VHDX to Windows as a drive using PowerShell, run the command:

Mount-VHD -Path c:\my-folder\MyVirtualDisk.vhdx

or

Mount-VHD -Path c:\my-folder\MyVirtualDisk.vhdx -ReadOnly

Then remove the drive again by using:

Dismount-VHD -Path c:\my-folder\MyVirtualDisk.vhdx

 

This method can be used to copy files into a VM, for example, or  to copy files from one VM to another, or from VM to host, etc. But if the VM is currently running, the virtual disk cannot be mounted. In that case you neeed to use this command.

Backup Software Overview

Server Backup Software
Download BackupChain
Cloud Backup
Backup VMware Workstation
Backup FTP
Backup VirtualBox
Backup File Server

Hyper-V Backup

Backup Hyper-V
  • Step-by-Step Windows 10 Hyper-V Backups
  • 11 Things to Know About Hyper-V Snapshots / Checkpoints
  • How to Back up Hyper-V
  • Popular

    Resources


    Backup Software List
    BackupChain
    Veeam
    Unitrends
    Symantec Backup Exec
    BackupAssist
    Acronis
    Zetta
    Altaro
    Windows Server Backup
    Microsoft DPM
    Ahsay
    CommVault
    IBM

    Other Backup How-To Guides

    Download BackupChain®