Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178097

Need to Get-vm Guest OS information

$
0
0

Need only non windows VMs information, in below scrip i am able to get the VM name and OS information. but in same script i need to get CPU, Memory and Total disksize of the VM. Can  anyone help it out.

 

 

Header 1Header 2Header 3Header 4Header 5Header 6
NameConfigured OS"Running OSCPUmEMORYtotal Disk SIZE

Get-VM |

where{$_.PowerState -eq 'PoweredOn' -and $_.Guest.OSFullName -Notmatch 'Windows'} |

Select Name,

    @{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

  


Viewing all articles
Browse latest Browse all 178097

Trending Articles



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