Hi LucD,
Great and thanks. It work perfect.
Get-vm |
where{$_.PowerState -eq 'PoweredOn' -and $_.Guest.OSFullName -match 'WIN'} |
select Name,MemoryGB,NumCpu,UsedSpaceGB,
@{N="Configured OS";E={$_.ExtensionData.Config.GuestFullname}},
@{N="Running OS";E={$_.Guest.OsFullName}},
@{N="Powered On";E={ $_.PowerState -eq “PoweredOn”}} |
Export-Csv redhatVM-allVC.csv -NoTypeInformation -UseCulture
Again thanks for the link.