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
- VMware Workstation Speed-Up, How to Fix Slow Performance
- Hyper-V Backup for Cluster Shared Volumes
- Granular Backup Software for Hyper-V
- Microsoft Hyper-V Backup for VHD and VHDX VMs
- Hyper-V Host Disk Backup, Physical Host and Virtual Machine Backup
- What is Deduplication?
- How to fix: VSS snapshot creation failed with result: 80070002 on TrueCrypt Volumes
- Hyper-V Server 2008 R2: Important Hotfixes and Updates
- VssDiag Volume Shadow Copy Service Diagnostic Software with Hyper-V Support
- How to remove Acronis and StorageCraft VSS driver / provider
- Current Windows Server 2012 Updates and Hotfixes
- 13 Hyper-V Cluster Shared Volume Tips & Tricks
- Avoid Saved State Backup and Check Hyper-V Integration Service Versions Automatically
- Windows Server 2012: Hotfixes for Cluster Servers
- Slow Cluster Shared Volume–Tips to Speed Up CSV and Backups
- Hyper-V Files, Formats, Snapshots, and Checkpoints Explained
- Veeam Alternative for Hyper-V Backup
- Reboot a virtual machine in Hyper-V from the command line
- How to Fix Error ID 10178 in Hyper-V VMMS
- How to Convert VMware ESX VM to Hyper-V
