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
- Volume Shadow Copy Service error EndPrepareSnapshots Cannot Find Anymore Diff Area
- How to Install a Virtual Machine Inside a Virtual Machine (Hyper-V)
- 11 Things to Know About Hyper-V Snapshots / Checkpoints
- Hyper-V Stop 0x0000000A BSOD Error Causes and Fixes KB2776366
- Hyper-V Server 2008 R2: Important Hotfixes and Updates
- How to Convert VHD Files to VHDX Disks in Hyper-V
- Avoid Saved State Backup and Check Hyper-V Integration Service Versions Automatically
- Hyper-V Best Practices You Must Know
- List of Effective Hyper-V Backup Strategies
- Microsoft Hyper-V Backup for VHD and VHDX VMs
- How to Shut Down a Hyper-V Virtual Machine
- Hyper-V IDE or SCSI? What’s Performing Better, Faster?
- Windows 10 Hyper-V Backup Solution to Back up VHD & VHDX Virtual Machines
- How to Update Windows Offline Without an Internet Connection
- Hyper-V, VMware, and VirtualBox Hypervisor Limitations
- The Ultimate Hyper-V PowerShell Commands Cheat Sheet
- Hyper-V Backup for Cluster Shared Volumes
- How to Fix VolSnap 28 Error “The shadow copy could not be created…
- Hyper-V Cluster 2012 R2 Setup Instructions, Simple and Quick
- How to Backup VMware Workstation, VMs, VMDK Files