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
- 11 Things to Know About Hyper-V Snapshots / Checkpoints
- How to Fix VolSnap Error ..a critical control file could not be opened
- Hyper-V Backup Pulls Windows Server 2012 into Saved State
- Windows 11 Hyper-V Backup, Step-by-Step
- KB 2885465: CPU resources are not allocated correctly for VMs on Windows Server 2012
- How to Create and Delete Hyper-V Checkpoints / Snapshots
- Hyper-V VHD or VHDX? Advantages, Limitations, and Disadvantages
- File Server Backup Software for Windows
- Cloud Backup Hyper-V Virtual Machines over the Internet
- Azure Stack HCI ISO Download for Free
- Download Linux Integration Services 3.5 for Hyper-V
- How to fix error CLSID {463948d2-035d-4d1d-9bfc-473fece07dab} Access Denied
- Backup Software Rewards for Users and MSPs
- VMware Workstation Start & Stop VMs from Command Line
- Hyper-V Backup Links, Guides, Tutorials & Comparisons
- 8 Pros and Cons of Hyper-V Backup using USB External Drives
- Windows 8 Client Hyper-V Limitations, Intro, and Pitfalls
- Hyper-V Server 2016 Download Locations + 2012 R2, 2008
- How to Easily Move VHD / VHDX to New Server, Disk, NAS, Cloud
- Resolving VSS_WS_FAILED_AT_FREEZE Backup Errors