Hi Avmen,
Sorry for the delay.
I feel a little confused with your quetion "advise the object name that i can use to include the snapshot inventory ", would you please explain more in detail?
If you want to add the properties listed in your initial posting to the output, please modify the script like this:
$data = New-Object PSObject -property @{
VMName=$VM.Name
Status=$VM.Status
Description=$VM.Description
DynamicMemoryEnabled=$VM.DynamicMemoryEnabled
DynamicMemoryMinimumMB=$VM.DynamicMemoryMinimumMB
DynamicMemoryMaximumMB=$VM.DynamicMemoryMaximumMB
Location=$VM.Location
OperatingSystem=$VM.OperatingSystem
VMId=$VM.VMId
vCPUs=$VM.CPUCount
MemoryGB= $VM.Memory/1024
VHDName = $VHDconf.VirtualHardDisk.Name
VHDSize = $VHDconf.VirtualHardDisk.MaximumSize/1GB
VHDCurrentSize = [Math]::Round($VHDconf.VirtualHardDisk.Size/1GB)
VHDType = $VHDconf.VirtualHardDisk.VHDType
VHDBusType = $VHDconf.BusType
VHDBus = $VHDconf.Bus
VHDLUN = $VHDconf.Lun
VHDDatastore = $VHDconf.VirtualHardDisk.HostVolume
}
If you have any feedback on our support, please click here.
Best Regards,
Anna
TechNet Community Support