Get All VHDX for All VMs with this PowerShell Script
Do you need a list of all virtual disks on a Hyper-V server? Simply run this PowerShell script and it will give you a list of all VHD and VHDX files that are connected to virtual machines in Hyper-V:
$MyVMs = Get-VM
Foreach ($MyVM in $MyVMs)
{
$AllHardDrives = $MyVM.HardDrives
Foreach ($HardDriveItem in $AllHardDrives)
{
$HardDriveItem.path | Get-VHD
}
}
Are you Still Using PowerShell Scripts to Back up Your Hyper-V Virtual Machines?
Why not try BackupChain instead? It is a full-featured, yet lightweight, customizable, and simple Hyper-V backup solution and includes many features that make PowerShell scripting for backups unnecessary.
The issue with PowerShell scripts is that they are difficult to manage in the long-term. Most often, there is no proper error handling and logging in place. In addition, there is no alert system in place when errors occur in automated scripts. All of that puts your server infrastructure unnecessarily at risk.
BackupChain is popular with IT professionals because it’s lightweight and can be customized to work exactly the way you need it. It backs up your VMs, disks, and files to various target media and provides excellent logging, reporting, and alert functionality. Simply download it today and give it a try.
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
- How to Fix VSS Timeout Error VSS_E_FLUSH_WRITES_TIMEOUT
- How to fix: VSS snapshot creation failed with result: 80070002 on TrueCrypt Volumes
- 0x800705aa How to Fix ERROR NO SYSTEM RESOURCES
- Hyper-V Backup and Secure DMZ Servers: A How-to Guide
- How to Fix: VM cannot be backed up …file groups reported during OnIdentify
- How to Install Hyper-V Server 2012 R2 in VMware Workstation (works for Windows Server 2008 too)
- What is Hyper-V and What Operating Systems are Supported?
- Hyper-V Backup Links, Guides, Tutorials & Comparisons
- What are Hyper-V Checkpoints, Snapshots, and VSS?
- List of Effective Hyper-V Backup Strategies
- Backup Strategies for Large VMs with and without Deduplication
- Freeware Backup Software–Watch Out!
- 8 Pros and Cons of Hyper-V Backup using USB External Drives
- How to Install a Virtual Machine Inside a Virtual Machine (Hyper-V)
- Download Links for Windows 10 & Windows Server Technical Preview
- Windows Server 2019 ISO Free Download + Hyper-V Server 2019
- How to: Hyper-V Backup Strategy in 12 Simple Steps
- How to Easily Move VHD / VHDX to New Server, Disk, NAS, Cloud
- Windows Server 2025 Direct ISO Download Link
- Hyper-V, VMware, and VirtualBox Hypervisor Limitations
