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

Re: Need a report from Power-Cli which shows resource pools including VM,s CPU, Memory, Guest, DS, VMDK files in one HTML report.

$
0
0

Please ignore CPU, Memory. I need one csv document containing the following:

Resource Group

VM Name

VMDK name (or even better the folder the VMDK(s) are in)

Datastore

Storage format and capacity is useful too.


I have managed to gather VM Name, Resource pool, and Datastores Name but also want VMDKs on each VMs, storage capacity and format too.


Connect-VIServer ......................

Get-VM |

Select Name,

@{N="Datastore";E={[string]::Join(',',(Get-Datastore -Id $_.DatastoreIdList | Select -ExpandProperty Name))}},

@{N="ResourcePool";E={$_ | Get-ResourcePool}} |

Export-Csv C:\Sysadmin\scripts\Geoff\ResourcePoolReport.csv -NoTypeInformation -UseCulture


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>