Hi Guys,
Im trying to shutdown a VM based on its VHD location. Basically i'm trying to change a script that installs Integration services while a VM is turned off. I need to shutdown the VM first but all im passing in is the path to the VHD. I know there is Stop-vm but you have to provide the name of the VM, which I dont have. Is there a way to output the VM name using the Get-VHD command?
I know this is probably a little basic so I appologise in advance.
Thanks