Hello,
I'd like to get a specific VM, and list it's VMDKs, and where they are stored (datastore name).
Thanks,
Something like this?
Get-VM -Name $vmName |
Get-HardDisk |
Select Name,FileName,@{N='Datastore';E={$_.FileName.Split(']')[0].TrimStart('[')}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hello,
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)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Dear,
You will always be our PowerCLi Guru and Savior.
Good day,