2 Replies Latest reply on May 11, 2017 6:50 AM by mattboren

    How to round storage output numbers

    AutomationStation Lurker

      How and where would I add a rounding operator to round the inventory script I have showing how much storage is being used? I would like to only show one number after the decimal point. Anyone know?

       

      Get-VM | Select-Object Name,MemoryGB,NumCpu,UsedSpaceGB,@{n="TotalHDSizeGB"; e={(Get-HardDisk -VM $_ |Measure-Object -Sum CapacityGB).Sum}},@{n="Network"; e={(Get-NetworkAdapter -VM $_ |Select -unique -expand NetworkName)}} | Sort-Object Network