Set the Storage Limits on a Site Collection
Scenario/Problem: You want to modify the storage limitations for a site collection.
Solution: Use the Set-SPSite
cmdlet with the MaxSize
and WarningSize
parameters.
Two parameters work together to set the storage limits on a site collection: MaxSize
and WarningSize
. Listing 8.9 shows a sample command line for setting the storage limits.
Set-SPSite -Identity http://sp2013/sites/sitecol -MaxSize 1024-WarningSize 768
Both parameter values are in megabytes. The MaxSize
parameter can be any integer value but must be greater than or equal to the WarningSize
value. Therefore, the WarningSize
parameter can be any value between zero and the
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.