Hi
How would I add the Cluster name to the following report?
Get-Datastore -VM $vm |
Select @{N="DataStore";E={$_.Name}},
@{N="VM Name";E={$vm.Name}}
The output for the report would be Cluster, DataStore, VM, etc.
Thanks
Something like this
Get-Datastore -VM $vm |
Select @{N="Cluster";E={Get-Cluster -VM $vm | Select -ExpandProperty Name}},
@{N="DataStore";E={$_.Name}},
@{N="VM Name";E={$vm.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Something like this
Get-Datastore -VM $vm |
Select @{N="Cluster";E={Get-Cluster -VM $vm | Select -ExpandProperty Name}},
@{N="DataStore";E={$_.Name}},
@{N="VM Name";E={$vm.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc
