Something like this?$vmName = 'MyVM'
Get-VM -Name $vmName |
Thanks but, I've found that the following command gets the exact result I needed:
get-vm VMNAME | get-harddisk
Excuse me, but that is basically the same as I gave you.
My snippet gives exactly what you asked (the datastore)
You will always be our PowerCLi Guru and Savior.