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

Re: Powershell/PowerCLI Dynamic Email Message Body with Datastores

$
0
0

I think there is something wrong with the following:

 

Function Report-Datastore {

    $output = @()

    Get-Datastore | % {$props = [ordered]@{'Name'=$_.Name;'UsedSpace'=[math]::Round(($_.CapacityGB - $_.FreeSpaceGB),2);'PercFree'=[math]::Round((100 * ($_.FreeSpaceGB/$_.CapacityGB)),0)}

        $output += New-Object -TypeName PSCUstomObject -Property $props

    }

    $output

}


Viewing all articles
Browse latest Browse all 226498

Trending Articles



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