Wednesday, September 4, 2013

SharePoint Programatically get site quota template name

Here is the script to get the site collection quota template details using powershell.

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService

$quotaTemplate = $contentService.QuotaTemplates | where {$_.QuotaID -match $spSite.Quota.QuotaID}

write-host $quotaTemplate.Name
  
Thank you !!! 

No comments:

Post a Comment