在 SharePoint Server 中建立、編輯和刪除配額範本Create, edit, and delete quota templates in SharePoint Server

摘要:如何建立、編輯和刪除 SharePoint Server 2016 和 SharePoint 2013 網站集合的網站配額範本。Summary: How to create, edit, and delete site quota templates for a SharePoint Server 2016 and SharePoint 2013 site collection.

您可以控制網站集合可保留多少資料,以及它可透過配額來使用的資源數量。如需如何規劃配額的詳細資訊,請參閱配額You control how much data a site collection can hold and the quantity of resources it can use by using quotas. For more information about how to plan quotas, see Quotas.

注意

[!附註] 您將配額範本套用到網站集合時,儲存量限制將套用到整個網站集合。換句話說,儲存量限制將套用到網站集合中最上層網站及所有子網站的內容大小總和。如果啟用版本控制,網站中的版本和資源回收筒中的內容會計入儲存量限制。您也可以指定第二階段資源回收筒的儲存量限制百分比。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.

開始之前Before you begin

執行此程序之前,請先確認下列事項:Before you perform this procedure, confirm the following:

建立配額範本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:

    • 您是執行 SharePoint 管理中心 網站的電腦上伺服器陣列管理員群組的成員。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. On the Application Management page, in the Site Collections section, click Specify quota templates.

  3. 在 [配額範本] 頁面上的 [範本名稱] 區段中按一下 [建立新的配額範本On the Quota Templates page, in the Template Name section, click Create a new quota template.

  4. 在 [新範本名稱] 方塊中輸入新範本的名稱。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.

  5. 在 [儲存量限制值] 區段中,設定您想要套用到範本的值。In the Storage Limit Values section, set the values that you want to apply to the template.

    • 如果您想要限制可以儲存的資料量,按一下 [限制網站儲存量的最大值] 核取方塊並輸入到該方塊的儲存限制 (mb)。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.

    • 若要達到特定儲存臨界值時傳送給網站集合管理員的電子郵件訊息,請按一下 [傳送警告電子郵件時網站集合的儲存量達到] 核取方塊並輸入到該方塊臨界值 (mb)。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.

  6. 在 [含程式碼限制的沙箱化解決方案] 區段中,設定沙箱化解決方案範本的值。In the Sandboxed Solutions with Code Limits section, set the values for a template for sandboxed solutions.

    • 在 [每日使用量上限] 方塊中輸入以點為單位的每日使用量。In the Limit maximum usage per day to box, type the daily usage in points.

    • 在 [傳送警告電子郵件時的每日流量到達以下值] 方塊中輸入以點為單位的每日使用量警告限制。In the Send warning e-mail when usage per day reaches box, type the daily usage warning limit in points.

      點是資源使用量的相對度量單位,例如 CPU 週、 記憶體或分頁錯誤。點能夠用來比較沒有其他方法能夠比較的資源使用量度量。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.

      如果您不想傳送警告電子郵件訊息,清除 [傳送警告電子郵件時的每日流量到達以下值] 核取方塊,並再按一下 [確定]If you do not want to send a warning email message, clear the Send warning e-mail when usage per day reaches check box, and then 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:

    • 您是執行 SharePoint 管理中心 網站的電腦上伺服器陣列管理員群組的成員。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. On the Application Management page, in the Site Collections section, click Specify quota templates.

  3. 在 [配額範本] 頁面上的 [範本名稱] 區段中依序展開 [要修改的範本] 清單及 [您想要編輯的範本。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.

  4. 設定必要時變更,並再按一下 [確定]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.

即使您可以在必要時刪除配額範本,但我們不建議您這麼做。因為刪除配額範本並不會從使用配額範本所建立的網站中刪除配額值。相反地,我們建議您使用物件模型來對配額範本略做修正。Even though you can delete a quota template if necessary, we do not recommend that you do this. Since deleting a quota template will not delete quota values from sites that were created by using the quota template. Instead, we recommend that you use the object model to perform minor fixes in the quota template.

刪除配額範本To delete a quota template

  1. 確認是否具備下列系統管理認證:Verify that you have the following administrative credentials:

    • 您是執行 SharePoint 管理中心 網站的電腦上伺服器陣列管理員群組的成員。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. On the Application Management page, in the Site Collections section, click Specify quota templates.

  3. 在 [範本名稱] 區段中,若要修改的範本] 清單中,依序展開 [] 和 [您想要刪除的範本。In the Template Name section, expand the Template to modify list, and then click the template that you want to delete.

  4. 底部的 [配額範本] 頁面上,按一下 [刪除] 及 [確定]At the bottom of the Quota Templates page, click Delete, and then click OK.

變更配額範本的設定Change the settings of a quota template

注意

[!附註] 修改後的配額範本不會自動套用於使用配額範本的任何現有網站集合。伺服器陣列管理員群組的成員必須將所有修改後的值手動套用於使用配額範本的所有現有網站。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. On the Application Management page, in the Site Collections section, click Specify quota templates.

  3. 在 [配額範本] 頁面上 [範本名稱] 區段的 [要修改的範本] 清單中選取您想要變更的範本。On the Quota Templates page, in the Template Name section, in the Template to modify list, select the template that you want to change.

  4. 在 [儲存量限制值] 區段中,指定您想要套用到範本的值。In the Storage Limit Values section, specify the values that you want to apply to the template.

    • 如果您想要修改的可以儲存在資料庫中的資料量、 保留選取 [限制網站儲存量的最大值] 核取方塊,然後再輸入新的儲存限制] 方塊中 (mb)。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.

    • 若要達到儲存臨界值時傳送給網站集合管理員的電子郵件訊息,請選取 [傳送警告電子郵件時網站儲存量達到] 核取方塊,並再輸入的臨界值] 方塊中 (mb)。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.

  5. 在 [含程式碼限制沙箱化解決方案] 區段中,指定您想要套用到範本的值。In the Sandboxed Solutions With Code Limits section, specify the values that you want to apply to the template.

    • 如果您想要限制每日的沙箱化解決方案包含程式碼的最大資源使用狀況點,請每日使用量上限] 方塊中輸入新的限制。預設的限制為 300 點。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.

  6. 按一下 [ OK ]。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 so the quota template 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. On the Application Management page, in the Site Collections section, click Configure quotas and locks.

  3. 在 [網站集合配額與鎖定] 頁面上,確定會顯示正確的網站集合。如果您想要變更之網站集合,依序展開 [網站集合] 清單中,然後再按一下 [變更網站集合。使用 [選取網站集合] 頁面上選取網站集合。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.

  4. 在 [網站配額資訊] 區段中依序展開 [目前的配額範本] 清單中,選取要套用,新的配額範本,然後按一下 [確定]In the Site Quota Information section, expand the Current quota template list, and select the new quota template to apply, and then click OK.

使用 Microsoft PowerShell 變更網站集合的配額範本To change the quota template for a site collection by using Microsoft PowerShell

  1. 確認符合下列基本需求:請參閱<Add-SPShellAdmin>。Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

  2. 開啟 SharePoint 管理命令介面。Open the SharePoint Management Shell.

  3. 在 Microsoft PowerShell 命令提示字元處,輸入下列命令:At the Microsoft PowerShell command prompt, type the following command:

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

    其中:Where:

    • <站台> 是您要變更配額範本的網站集合 URL 或 GUID。<Site> is the URL or GUID of the site collection whose quota template that you want to change.

    • <範本> 式取代配額範本的名稱或 GUID。<Template> is the name or GUID of the replacement quota template.

如需詳細資訊,請參閱<Set-SPSite>。建議您在執行命令列管理工作時使用 Windows PowerShell。Stsadm 命令列工具已過時,但為與舊版產品相容,仍會隨附提供。For more information, see Set-SPSite. We recommend that you use Microsoft 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, 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. 選取限制網站儲存量的最大值] 核取方塊,然後再輸入新的最大值 (mb)。Select the Limit site storage to a maximum of check box, and then type the new maximum value in megabytes.

  7. 如果您想要將網站儲存通知電子郵件傳送給網站集合管理員,選取 [傳送警告電子郵件時網站儲存量達到] 核取方塊,並再輸入值 (mb)。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. 如果您想要限制每日的沙箱化解決方案的最大資源使用狀況點,請每日使用量上限] 方塊中輸入新的限制。預設值為 300 點。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. 若要達到每日臨界值使用量時傳送給網站集合管理員的電子郵件訊息,請選取 [傳送警告電子郵件時的每日流量到達以下值] 核取方塊,並再輸入臨界值,以點為] 方塊中。預設值為 100 點。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. 按一下 [ OK ]。Click OK.

若要使用 PowerShell 變更網站集合的儲存限制To change the storage limits for a site collection by using PowerShell

  1. 確認符合下列基本需求:請參閱<Add-SPShellAdmin>。Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

  2. 開啟 SharePoint 管理命令介面。Open the SharePoint Management Shell.

  3. 在 Microsoft PowerShell 命令提示字元處,輸入下列命令:At the Microsoft PowerShell command prompt, type the following command:

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

    其中:Where:

    • <網站> 是要變更其儲存限制之網站集合的 URL。<Site> is the URL of the site collection whose storage limits you want to change.

    • <Limit> 是網站集合的新儲存量限制,以位元組為單位。<Limit> is the new storage limit for the site collection, in bytes.

      注意

      [!附註] 新的儲存量限制會覆寫目前套用於網站集合的配額範本中設定的限制。The new storage limit overrides the limit set in the quota template that is currently applied to the site collection.

      如需詳細資訊,請參閱<Set-SPSite>。For more information, see Set-SPSite.

      如需如何使用 PowerShell 及 SharePoint 物件模型設定每日使用量上限及沙箱化解決方案警告層級閾值的資訊,請參閱 MSDN 的《 Inside Microsoft SharePoint 2010 》一書中< 第 4 章:沙箱化解決方案>所述的「使用 Windows PowerShell 進行管理」。For information about how to use 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.

另請參閱See also

概念Concepts

在 SharePoint Server 中建立網站集合Create a site collection in SharePoint Server

在 SharePoint Server 中管理網站集合的鎖定狀態Manage the lock status for site collections in SharePoint Server