When I run this command
Get-FsrmQuota -path "F:\prod\..." | Select Path, @{ Name="Usage_GB";Expression={$([math]::Round(($_.Usage / 1GB),2))}}, @{ Name="Size_GB";Expression={$([math]::Round(($_.S
ize / 1GB),2))}} | Sort-Object Path
I get the output below
Path Usage_GB Size_GB
---- -------- -------
F:\prod\folderA 15.21 500
F:\prod\folderB 86.85 110
F:\prod\folderC 0 0.1
F:\prod\folderD 0.52 0.68
F:\prod\folderE 0.1 0.2
I would like to add 2 new lines at the end, one for “total usage” (sum of all values in the Usage_GB column) and the other “total Size” (sum of all values in the Size_GB Column, but I don’t know how to sum “usage GB” and “size GB”. How can i do it?
Thanks in advance