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 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
- Archive 2024
- Archive 2022
- Archive 2021
- Archive 2020
- Archive 2018
- Archive 2017
- Archive 2016
- Archive 2015
- Archive 2014
- Archive 2013
- 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
- How to Shut Down a Hyper-V Virtual Machine
- 2 Reasons Why Continuous Data Protection (CDP) Isn’t Always A Good Idea for Backups
- Fix for Error 0x80780049, Backup ID 517
- How to Convert from Dynamic VHD/VHDX Disk Format to / from Fixed in Hyper-V
- Guidelines for Installing Microsoft Exchange 2013 in Hyper-V
- Helpful Hyper-V Links
- Hyper-V Backup Pulls Windows Server 2012 into Saved State
- Before You Use Carbonite, Mozy, CrashPlan, Rackspace, Softlayer
- List of Effective Hyper-V Backup Strategies
- Hyper-V Server 2008 R2: Important Hotfixes and Updates
- How to Install Hyper-V Server 2012 R2 in VMware Workstation (works for Windows Server 2008 too)
- How to Delete VSS Shadows or Snapshots
- Resolving VSS_WS_FAILED_AT_FREEZE Backup Errors
- VMware Workstation Start & Stop VMs from Command Line
- Hyper-V Backup Links, Guides, Tutorials & Comparisons
- Reboot a virtual machine in Hyper-V from the command line
- Veeam Alternative for Hyper-V Backup
- Volume Shadow Copy Service error EndPrepareSnapshots Cannot Find Anymore Diff Area
- 13 Hyper-V Cluster Shared Volume Tips & Tricks
- Windows Server 2019 ISO Free Download + Hyper-V Server 2019