Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 213099

Re: Using the GET-VM command

$
0
0

You could do something like this

 

Get-View-ViewType VirtualMachine -Property 'Name','Config.Hardware','Guest','Runtime'|

Sort-Object|

Select -Property Name,

   @{N='NumCpu';E={$_.Config.Hardware.NumCPU}},

   @{N='MemGB';E={[math]::Round($_.Config.Hardware.MemoryMB/1KB,1)}},

   @{N='PowerState';E={$_.RunTime.PowerState}},

   @{N='IP';E={$_.Guest.IpAddress}},

   @{N="Configured OS";E={$_.Config.GuestFullName}},

   @{N="Running OS";E={$_.Guest.GuestFullName}}|

Format-Table-AutoSize


Viewing all articles
Browse latest Browse all 213099

Trending Articles



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