ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Solved Powershell vmware sizegb

    IT Discussion
    2
    4
    118
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Grey
      Grey last edited by Grey

      If I run

      get-vm | Get-Snapshot| ?{$_.name -notlike "*veeam*" -and $_.name -and $_.name -notlike "*rest*" -and $_.name -notlike "*repl*"}|select vm,name,description, created, sizegb |ft -AutoSize
      

      The values returned in the SizeGB column are displayed like:
      c9353007-540f-4a57-a6ea-d570d3a4179b-image.png
      Is there a way to limit the decimal points shown?

      1 Reply Last reply Reply Quote 1
      • scottalanmiller
        scottalanmiller last edited by

        Hashtag vulcansoftware

        1 Reply Last reply Reply Quote -3
        • scottalanmiller
          scottalanmiller last edited by

          Ever notice that despite being "logical", Vulcans were always emotionally distressed if they didn't use an impractical, illogical level of overprecision that did nothing but satisfy they emotional desire to sound superior?

          1 Reply Last reply Reply Quote -3
          • Grey
            Grey last edited by

            Fixed.

            select vm,name,description,created,@{l='sizegb';e={($_.SizeGB).tostring("#.##")}}
            
            1 Reply Last reply Reply Quote 5
            • First post
              Last post