0

My Hyper-V server has vms divided in different logical drives. E.g.: D drive of server contains 4 vms, E drive contains 3 vms.

  1. I know the name of the drive on Hyper-V server (ex: D:), how can i get the names of the virtual machines in that drive.

  2. I know the name of the virtual machine on Hyper-V server, how can i get the drive on Hyper-V server in which the virtual machines is present.

Regards, Abhishek

1 Answers1

0

Take a look to this script:

http://jackiechen.org/2011/10/26/powershell-list-the-hyper-v-vm-vhd-location/

CB.
  • 58,865
  • 9
  • 159
  • 159