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
BackupChain Server Backup SoftwareDownload BackupChain
Cloud Backup
Backup VMware Workstation
Backup FTP
Backup VirtualBox
Backup File Server
Hyper-V Backup
Backup Hyper-VPopular
- Hyper-V Links, Guides, Tutorials & Comparisons
- Veeam Alternative
- How to Back up Cluster Shared Volumes
- DriveMaker: Map FTP, SFTP, S3 Site to a Drive Letter (Freeware)
Resources
- Free Hyper-V Server
- Remote Desktop Services Blog
- SCDPM Blog
- SCOM Blog
- V4 Articles
- Knowledge Base
- FAQ
- Sitemap
- Backup Education
- Backup Sichern
- Hyper-V Scripts in PowerShell
- FastNeuron
- BackupChain (Greek)
- BackupChain (Deutsch)
- BackupChain (Spanish)
- BackupChain (French)
- BackupChain (Dutch)
- BackupChain (Italian)
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
- Hyper-V Server 2008 R2: Important Hotfixes and Updates
- How to Mount a VHDX to Windows using a PowerShell Script
- VssDiag Volume Shadow Copy Service Diagnostic Software with Hyper-V Support
- How to Open ISO in Hyper-V Server: Mount ISO to Drive
- Reboot a virtual machine in Hyper-V from the command line
- KB 2885465: CPU resources are not allocated correctly for VMs on Windows Server 2012
- Hyper-V Host Disk Backup, Physical Host and Virtual Machine Backup
- Hyper-V, VMware, VirtualBox Feature Comparison
- Hyper-V IDE or SCSI? What’s Performing Better, Faster?
- Backup Strategies for Large VMs with and without Deduplication
- Copy a File From the Host to a VM Using a Powershell Script
- Hyper-V Backup Quick Start Guide
- Incremental Backup vs. Differential Backup
- How to Update Windows Offline Without an Internet Connection
- What are Hyper-V Checkpoints, Snapshots, and VSS?
- Hyper-V CSV backup: What needs to be considered for VM backups?
- Windows Server 2022 ISO Final Release Free Download
- Windows Server 2025 Direct ISO Download Link
- How to Fix VSS Errors (Volume Shadow Copy Service Errors)
- How to fix 19050: The virtual machine is not in a valid state to perform the operation