You need PowerCLI for this obviously, and need to use the
Connect-VIServer
command first to connect to your vCenter server.
Get-VM | ForEach-Object {Get-View $_.ID} | ForEach-Object {Write-Host $_.Name $_.Config.Version}
You need PowerCLI for this obviously, and need to use the
Connect-VIServer
command first to connect to your vCenter server.
Get-VM | ForEach-Object {Get-View $_.ID} | ForEach-Object {Write-Host $_.Name $_.Config.Version}