Saturday 25 July 2020

Disk Quota Report in PowerShell


Disk Quota Report in PowerShell




Get-FsrmQuota






















Get-FsrmQuota | Select-Object Path, Usage,Size| Sort-Object Usage | Out-GridView













Disk Quota Report in MB

Get-FsrmQuota | Select-Object Path, @{ E={$_.size/1MB -as [int]}; L='Size MB' },  @{ E={$_.Usage/1MB -as [int]}; L='Usage MB' }| ft -AutoSize









Disk Quota Report in GB (only Show Greater Than one GB Size only)



Get-FsrmQuota | Select-Object Path, @{ E={$_.size/1GB -as [int]}; L='Size GB' },  @{ E={$_.Usage/1GB -as [int]}; L='Usage GB' }| ft -AutoSize 














No comments:

Post a Comment