Quantcast
Viewing all articles
Browse latest Browse all 21975

Using PowerShell to get VM Inventory

Hi,

i am running the below to get the VM inventory. However i need the syntax to get the VHD information / size.

Get-SCVirtualMachine -VMHost HOSTNAME -VMMServer LocalHost | Select-Object Name, ComputerName, Status, Description, VHDType, Memory, DynamicMemoryEnabled, DynamicMemoryMinimumMB, DynamicMemoryMaximumMB, Location, OperatingSystem, VMId | Export-csv "C:\VMInventory" -NoTypeInformation

Thanks,

Avinash


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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