Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Create, edit, and delete quota templates in SharePoint 2013

Published: December 4, 2012

Summary: How to create, edit, and delete site quota templates for a SharePoint 2013 site collection.

Applies to:  SharePoint Server 2013 | SharePoint Foundation 2013 

You control how much data a site collection can hold and the quantity of resources it can use by using quotas. Quotas let you set storage limit values and warning limit values. Storage limit values define the maximum limit which the site collection size cannot exceed. Warning limit values define a threshold that, when reached, triggers an email alert to the site collection administrators. Quotas can be saved as quota templates, which can then be applied to any site collection in a SharePoint farm. Using quota templates rather than individual quotas can simplify setting storage limits on new site collections. For more information about how to plan quotas, see Plan quota management (SharePoint Foundation 2010).

When the site collection reaches the maximum storage level, SharePoint 2013 sets the lock status for the site collection to Read-only, and users are prevented from adding, updating, or deleting content. SharePoint 2013 sends an email message that contains information about the issue to the site collection administrators. The site collection administrators can either delete unused content from the site collection or ask a member of the Farm Administrators group to increase the limits. A farm administrator can do any of the following to change the limits:

  • Change the storage limit on the quota template that the site collection is using. The new limits will only take effect if the quota template is removed and reapplied to the site collection

  • Designate a new quota template that has a higher storage limit to the site collection and apply it. This automatically increases the limits for the site collection to the limits in the newly designated quota template. This is the preferred method, because the settings in the new quota template are automatically applied to the site collection and no additional action is needed.

  • Change the storage limit for the site collection manually. This overrides the limits set in the quota template that is currently applied to the site collection.

note Note:

When you apply a quota template to a site collection, the storage limit applies to the site collection as a whole. In other words, the storage limit applies to the sum of the content sizes for the top-level site and all subsites within the site collection. If versioning is enabled, the versions in a site and the content in the Recycle Bins count toward storage limits. You can also specify a percentage of storage limits for the second-stage Recycle Bin. For more information about Recycle Bin settings, see Configure Recycle Bin settings (SharePoint Foundation 2010).

For recommendations about how to size content databases and site collections, see Enterprise content storage planning (SharePoint Server 2010) and Storage and SQL Server capacity planning and configuration (SharePoint Server 2013).

You can also apply quota templates to a site collection that contains sandboxed solutions. A sandbox is a restricted execution environment that enables programs to access only certain resources, and that keeps problems that occur in the sandbox from affecting the rest of the server environment. You can limit the maximum usage per day and send a warning email message when the usage limit is approaching. If the maximum usage limit is reached, the sandboxed solution is disabled for the rest of the day, and an email message is sent to the site collection administrator. For more information about restricting the resources that your sandboxed solutions consume, see Configure resource points for sandboxed solutions (SharePoint Server 2010).

You can also change existing quota templates. This allows you to change storage limits for all of the site collections that use the same quota template. When you change a quota template, you must reapply it to existing site collections before the new storage limits are enforced.

You can delete a quota template if necessary. However, deleting a quota template will not delete quota values from sites that were created by using the quota template. If you want to remove quotas from all sites by using a specific quota template, you must use the object model or perform a SQL query.

Important Important:

The steps in this article apply to both SharePoint Foundation 2013 and SharePoint Server 2013.

In this article:

Before you begin

Before you perform this procedure, confirm the following:

  • Outgoing email is configured.

    For more information, see Configure outgoing email for a SharePoint 2013 farm.

  • The Disk Quota Warning timer job is running.

    For more information about default timer jobs for SharePoint 2013, see Timer job reference (SharePoint Foundation 2010).

  • The quota template options on the quota template page in Central Administration are available only if you have already created one or more quota templates. The first time that you use this page, you will be given only the option to create a new template.

Create a quota template

You might want to create a quota template to apply to sites that have storage and performance requirements that differ from most other sites in the site collection.

To create a quota template

  1. Verify that you have the following administrative credentials:

    • You are a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration website.

  2. On the Central Administration home page, click Application Management.

  3. On the Application Management page, in the Site Collections section, click Specify quota templates.

  4. On the Quota Templates page, in the Template Name section, click Create a new quota template.

  5. In the New template name box, type the name of the new template.

    If you want to base your new template on an existing quota template, expand the Template to start from list, and then click the template that you want.

  6. In the Storage Limit Values section, set the values that you want to apply to the template.

    • If you want to restrict how much data that can be stored, click the Limit site storage to a maximum of check box and type the storage limit in megabytes into the box.

    • If you want an email message to be sent to the site collection administrator when a certain storage threshold is reached, click the Send warning E-mail when Site Collection storage reaches check box and type the threshold in megabytes into the box.

  7. In the Sandboxed Solutions with Code Limits section, set the values for a template for sandboxed solutions.

    1. In the Limit maximum usage per day to box, type the daily usage in points.

    2. In the Send warning e-mail when usage per day reaches box, type the daily usage warning limit in points.

      A point is a relative measurement of resource usage, for example, CPU cycles, memory, or page faults. Points enable comparisons between measurements of resource usage that could not be compared otherwise.

      For more information, see Administering sandboxed solutions.

      If you do not want to send a warning email message, clear the Send warning e-mail when usage per day reaches check box.

  8. Click OK.

Edit a quota template

You might want to edit a quota template to increase the storage limit if you find that sites are exceeding the current storage limit on a regular basis.

To edit a quota template

  1. Verify that you have the following administrative credentials:

    • You are a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration website.

  2. On the Central Administration home page, click Application Management.

  3. On the Application Management page, in the Site Collections section, click Specify quota templates.

  4. On the Quota Templates page, in the Template Name section, expand the Template to modify list, and then click the template that you want to edit.

  5. Change the settings as necessary, and then click OK.

Delete a quota template

You might want to delete a quota template when the site collection that required those specific settings is deleted.

To delete a quota template

  1. Verify that you have the following administrative credentials:

    • You are a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration website.

  2. On the Central Administration home page, click Application Management.

  3. On the Application Management page, in the Site Collections section, click Specify quota templates.

  4. In the Template Name section, expand the Template to modify list, and then click the template that you want to delete.

  5. At the bottom of the Quota Templates page, click Delete, and then click OK.

Change the settings of a quota template

note Note:

A modified quota template is not automatically applied to any existing site collections that use the quota template. A member of the Farm Administrators group must manually apply all modified values to all existing sites that use the quota template.

To change the settings of a quota template by using Central Administration

  1. Verify that you have the following administrative credentials:

    • You must be a member of the Farm Administrators group.

  2. On the Central Administration home page, click Application Management.

  3. On the Application Management page, in the Site Collections section, click Specify quota templates.

  4. On the Quota Templates page, in the Template Name section, in the Template to modify list, select the template that you want to change.

  5. In the Storage Limit Values section, specify the values that you want to apply to the template.

    • If you want to modify the amount of data that can be stored in the database, leave the Limit site storage to a maximum of check box selected, and then type the new storage limit, in megabytes, in the box.

    • If you want an email message to be sent to the site collection administrator when a storage threshold is reached, select the Send warning E-mail when site storage reaches check box, and then type the threshold, in megabytes, in the box.

  6. In the Sandboxed Solutions With Code Limits section, specify the values that you want to apply to the template.

    • If you want to limit the maximum resource usage points per day for sandboxed solutions that contain code, type the new limit in the Limit maximum usage per day to box. The default limit is 300 points.

    • If you want an email message to be sent to the site collection administrator when the usage per day threshold is reached, select the Send warning e-mail when usage per day reaches check box, and then type the threshold, in points, in the box.

  7. Click OK.

Change the quota template for a site collection

If a site collection is close to exceeding its storage limits and you want to increase its size, you can change the quota template that is applied to the site collection to a quota template that has higher limits. This automatically updates the warning and storage limits for the site collection.

To change the quota template for a site collection by using Central Administration

  1. Verify that you have the following administrative credentials:

    • You must be a member of the Farm Administrators group.

  2. On the Central Administration home page, click Application Management.

  3. On the Application Management page, in the Site Collections section, click Configure quotas and locks.

  4. On the Site Collection Quotas and Locks page, ensure that the correct site collection is displayed. If you want to change the site collection, expand the Site Collection list, and then click Change Site Collection. Use the Select Site Collection page to select a site collection.

  5. In the Site Quota Information section, expand the Current quota template list, and then select the new quota template to apply.

  6. Click OK.

To change the quota template for a site collection by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

  2. Click Start, and then click All Programs.

  3. Click Microsoft SharePoint 2010 Products.

  4. Click SharePoint 2010 Management Shell.

  5. At the Windows PowerShell command prompt, type the following command:

    Set-SPSite -Identity "<Site>" -QuotaTemplate "<Template>"
    

    Where:

    • <Site> is the URL or GUID of the site collection whose quota template that you want to change.

    • <Template> is the name or GUID of the replacement quota template.

For more information, see Set-SPSite.

note Note:

We recommend that you use Windows PowerShell when performing command-line administrative tasks. The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.

Change the storage limits for a site collection

Use these procedures to change the storage limits for a site collection.

To change the storage limits for a site collection by using Central Administration

  1. Verify that you have the following administrative credentials:

    • You must be a member of the Farm Administrators group.

  2. On the Central Administration home page, click Application Management.

  3. On the Application Management page, in the Site Collections section, click Configure quotas and locks.

  4. On the Site Collection and Quota Locks page, ensure that the correct site collection is displayed. If you want to change the site collection, in the Site Collection section, expand the Site Collection list, and then click Change Site Collection. Use the Select Site Collection page to select a site collection.

  5. If the site collection currently uses a quota template, do the following to specify an individual quota:

    • On the Site Collection Quotas and Locks page, in the Site Quota Information section, expand the Current quota template list, and then select Individual Quota.

  6. Select the Limit site storage to a maximum of check box, and then type the new maximum value in megabytes.

  7. If you want to send site storage notification email messages to the site collection administrator, select the Send warning e-mail when site storage reaches check box, and then type the value in megabytes.

  8. If you want to limit the maximum resource usage points per day for sandboxed solutions, type the new limit in the Limit maximum usage per day to box. The default is 300 points.

  9. If you want an email message to be sent to the site collection administrator when the usage per day threshold is reached, select the Send warning e-mail when usage per day reaches check box, and then type the threshold, in points, in the box. The default is 100 points.

  10. Click OK.

To change the storage limits for a site collection by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

  2. Click Start, and then click All Programs.

  3. Click Microsoft SharePoint 2013 Products.

  4. Click SharePoint 2013 Management Shell.

  5. At the Windows PowerShell command prompt, type the following command:

    Set-SPSite -Identity "<Site>" -MaxSize <Limit>
    

    Where:

    • <Site> is the URL of the site collection whose storage limits you want to change.

    • <Limit> is the new storage limit for the site collection, in megabytes.

      noteNote:

      The new storage limit overrides the limit set in the quota template that is currently applied to the site collection.

      For more information about the Set-SPSite cmdlet, see Set-SPSite.

    For information about how to use Windows PowerShell and the SharePoint object model to set the maximum usage per day and the warning level threshold for sandboxed solutions, see "Using Windows PowerShell for Administration" in Chapter 4: Sandboxed Solutions, an excerpt from the book Inside Microsoft SharePoint 2010 on MSDN.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.