Saturday, 10 June 2023

PowerShell – How to Get Disk Quota Report (FSRMQuota)

PowerShell – How to Get Disk Quota Report (FSRMQuota)



$Property = @(

   'Path',

   @{name='SizeGB';expression={[Math]::Round(($_.Size/1GB),2)}},

   @{name='UsageGB';expression={[Math]::Round(($_.Usage/1GB),2)}},

   @{name='UsagePCT';expression={[Math]::Round((($_.Usage/$_.Size)*100),2)}},

   'Template'

)

Get-FSRMQuota | Select -Property $Property | Export-Csv C:\temp\FSQuotaUsage.csv -notype 



Refer below for more.


https://techsol2018.blogspot.com/2020/07/disk-quota-report-in-powershell.html



No comments:

Post a Comment