List all Virtual Machines in a Virtual Host by VHD Path
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 3,115 views | 23/01/2009 13:07
Now we are going to list all virtual machines (vm) in a specific Virtual Host (vmhost) by sorting VHD Path. I think this is really important for Hyper-v and VMM administrators. Because we know, one of the biggest factor on performans is VHD location. If you place so many Virtual Machines in one IDE/SATA hdd, you get low performans from Hyper-v. So if you want to make a script to deploy a vm, first you see disc situations and then you should choose a path. Lets see sorting codes:
As you see, hyperv09.hyperv.pluvia.org is our vmhost. If we type Format-List Name, Location, we can easily see VHD locations of Virtual Machines. Good luck.
This post also available in Turkish.
Leave a Reply