Help with 'op_Division'.

Welcome Forums General PowerShell Q&A Help with 'op_Division'.

This topic contains 1 reply, has 2 voices, and was last updated by

3 years ago.

  • Author
  • #37217

    Topics: 1
    Replies: 0
    Points: 0
    Rank: Member

    I am a beginner...
    Here is what I am trying to accomplish:
    My problem is that $TotalTb, $AvailableTb and $Freetb have 2 entries so I am only getting the first entry in $Total,$Available,$Free divided.


  • #37220

    Topics: 3
    Replies: 261
    Points: 63
    Rank: Member

    I do not have a Nutanix environment to test, but this logic should work to get disk stats.

    $id.usageStats | ForEach-Object {
            Capacity = "{0:N2}" -f ($_.'storage.capacity_bytes' / 1TB)
            Free = "{0:N2}" -f ($_.'storage.free_bytes' / 1TB)
            Usage = "{0:N2}" -f ($_.'storage.usage_bytes' / 1TB)

The topic ‘Help with 'op_Division'.’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort