Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Re: Get-VMhost and the related datastores to it

$
0
0

Try something like this

 

Get-VMHost-PipelineVariable esx |

   ForEach-Object-Process {

   $ds=Get-Datastore-RelatedObject $_

   $ds| Select @{N='VMHost';E={$esx.Name}},

   @{N='TotalDS';E={$ds.Count}},

  Name

}


Viewing all articles
Browse latest Browse all 49146

Trending Articles