Hello,
I'm running ESX4.0 with HDS-USPV storage half of them are booted locally and the other half are booted over san.
I was trying to find on which datastore the esxconsole.vmdk is located \ where is the OS located through Powercli with no success.
can anyone help?
Try this
Get-VMHost | Select Name, @{N="Console Datastore";E={($_.Extensiondata.Config.SystemFile | where {$_ -match "esxconsole"}).Split(']')[0].TrimStart('[') }}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I was really trying but i could make it work, can you explain what is written there? (2nd line)
Thank You.
That 2nd line is a calculated property. It fetches the datastore name.
What error message did you get ?
Which PowerCLI build are you using ?
Get-PowerCLIVersion
Note that the code only works for ESX, not for ESXi.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference