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
- Start a Hyper-V VM from the Command Line — How to
- Disaster Recovery Strategies and Recovery Objectives
- Windows 11 Final Release Free ISO Download Links
- How to fix: Selected writer ‘Microsoft Hyper-V VSS Writer’ is in failed state, VSS_WS_FAILED_AT_PREPARE_SNAPSHOT
- Hyper-V CSV backup: What needs to be considered for VM backups?
- What is Hyper-V and What Operating Systems are Supported?
- Windows Server 2012: Hotfixes for Cluster Servers
- Download Linux Integration Services 3.5 for Hyper-V
- Best Free Network Attached Storage for Files, Hyper-V, and Backups
- New: Backup Software Comparison and List
- How to Fix: MSMQ Writer (MSMQ) failed
- Windows Server 2022 ISO Preview – Free Download
- How to Delete Hyper-V Backup Checkpoint That’s Stuck
- How to fix: VSS snapshot creation failed with result: 80070002 on TrueCrypt Volumes
- How to fix: could not create backup checkpoint for virtual machine
- Current Windows Server 2012 Updates and Hotfixes
- Windows 10 Hyper-V Backup Solution to Back up VHD & VHDX Virtual Machines
- The Ultimate Hyper-V PowerShell Commands Cheat Sheet
- List of Effective Hyper-V Backup Strategies
- How to Convert from Dynamic VHD/VHDX Disk Format to / from Fixed in Hyper-V