Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Output formatting question

$
0
0

Hi community! Sorry this is so rudimentary. Can someone offer advice on how to better format the output from the below? As it is, it just prints it out with no formatting- I want to output it like the output of format-table and I'd like to have zero decimal places in the output of  Write-Host $CurrentItemHdd.CapacityGB.  Thanks!

 

foreach ($VmItem in $MyVms)

 

  {

 

  $CurrentItemHdd = Get-HardDisk -VM $VmItem

  Write-Host $VmItem.Name $CurrentItemHdd.CapacityGB

 

  }


Viewing all articles
Browse latest Browse all 179681

Trending Articles



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