在 SharePoint Server 中管理未使用的網站集合Manage unused site collections in SharePoint Server

摘要: 如何管理 SharePoint Server 2016 和 SharePoint 2013 中未使用的網站集合及如何自動刪除其中的網站集合。Summary: How to manage unused site collections and how to delete site collections automatically in SharePoint Server 2016 and SharePoint 2013.

注意

若要傳送電子郵件通知,您必須設定外寄電子郵件設定。如需詳細資訊,請參閱Configure outgoing email for a SharePoint Server farmTo send email notifications, you must configure outgoing email settings. For more information, see Configure outgoing email for a SharePoint Server farm.

確認網站使用狀況及刪除兩項動作,有助於釋放不再使用之網站集合所佔用的資源。網站集合可以在停止活動的時間達到指定期限時自動刪除,也可依據網站集合擁有者對於通知的回應進行刪除。Site usage confirmation and deletion can help to free resources that are used by site collections that are no longer needed. Site collections can be deleted automatically after a specified period of inactivity or can depend on the site collection owner's response to a notification.

開始之前Before you begin

完成本文的程序之前,應先決定下列事項:Before completing the procedure in this article, you should determine the following:

  • 應等待多久的時間,才確認網站是否停用。How long to wait before you check whether a site collection is inactive.

  • 應每隔多久傳送一次電子郵件通知給網站擁有者,確認其網站集合是否已經停用。在送出第一封電子郵件通知後,若網站集合擁有者沒有任何回應,您可以繼續每天、每週或每月寄送其他通知。How often to send email notifications to site owners to see whether their sites collections are inactive. After the first email notification, if the site collection owner does not respond, you can continue to send additional notices at daily, weekly, or monthly intervals.

  • 要在擁有者未回應多個電子郵件通知時自動刪除未使用的網站集合還是刪除網站集合。如果您刪除無擁有者核准的網站集合,建議先備份網站。Whether you want to automatically delete unused site collections or delete a site collection if the owner does not respond to multiple email notifications. If you delete site collections without an owner's approval, we recommend that you first back up the site.

  • 若要自動刪除未使用的網站集合,請決定刪除之前要傳送多少封電子郵件通知給網站擁有者。預設會先連續 28 天傳送通知,然後再刪除網站集合。可設定的值從最少 28 封通知到最多 168 封通知。若要每週傳送通知,最少須傳送四封通知,最多可傳送 24 封通知。若要每月傳送通知,最少須傳送兩封通知,最多可傳送六封通知給網站擁有者。電子郵件通知中包含讓擁有者確認網站集合是否還要繼續使用的連結。電子郵件通知傳送給網站集合擁有者之後,可能會出現三種結果:If you plan to automatically delete unused site collections, determine how many email notifications you will send to the site owner before you do so. By default, 28 daily notices are sent before site collection deletion. You can configure this number from a minimum of 28 notices to a maximum of 168 notices. For weekly notices, you can send a minimum of four notices and a maximum of 24 notices. For monthly notices, you can send a minimum of two notices and a maximum of six notices to site owners. The email notification contains links to confirm whether a site collection is active or inactive. After an email notification is sent to the site collection owner, there are three possible results:

    • 若網站集合擁有者按下電子郵件通知中的確認連結,表示仍要繼續執行該網站集合,將會更新該網站集合的憑證日期。If the site collection owner confirms that the site collection is active by clicking the confirmation link in the email notification, the certification date of the site collection is renewed.

    • 網站集合擁有者會定期在伺服器陣列管理員群組成員所指定的間隔時間收到電子郵件通知,直到網站集合擁有者確認網站集合仍在執行中或刪除該網站集合為止。The site collection owner continues to receive periodic email notifications according to the interval specified by a member of the Farm Administrators group, until the site collection owner confirms that the site collection is active or deletes the site collection.

    • 若網站集合已經停用,且伺服器陣列管理員群組成員已開啟自動刪除功能,便會傳送指定次數的電子郵件通知給網站集合擁有者。若網站集合擁有者未確認網站集合的狀態,將會自動刪除該網站集合。If the site collection is not active, and a member of the Farm Administrators group has turned on the automatic deletion feature, email notifications are sent to the site collection owner for the specified number of times. If the site collection owner does not confirm the status of the site collection, the site collection is deleted automatically.

以下是我們所建議可以保障自動刪除網站集合萬無一失的最佳作法:We recommend the following best practices to safeguard against the automatic deletion of a site collection:

  • 當使用者建立網站集合時,要求其指定次要網站集合擁有者。網站集合建立者預設會列為網站集合的主要擁有者。網站集合擁有者也可指定網站的次要擁有者。確認通知會自動傳送給網站集合的主要及次要擁有者。Require a secondary site collection owner when users create site collections. By default, the site collection creator is listed as the primary site collection owner. A site collection owner can also specify a secondary site collection owner. Confirmation notifications are automatically sent to the primary and the secondary site collection owners.

  • 讓組織知道休假時間,並安排應變計劃。例如網站集合擁有者請假四週,而伺服器陣列管理員群組成員又設定了網站集合的刪除原則,網站集合擁有者可能會因為錯過了四週的確認機會而不再有機會確認仍要繼續使用該網站,致使網站集合遭到刪除。Keep the organization informed about vacations and leave a contingency plan. For example, if a site collection owner is unavailable for four weeks, and a member of the Farm Administrators group has set the site collection and deletion policy, after four missed weekly confirmations, the site could be deleted without giving the site collection owner an opportunity to confirm the usage of the site.

  • 務必定期備份網站集合,以在網站集合刪除之後,仍能還原最近的複本。Ensure that there is a schedule to back up site collections regularly so that you can restore a recent copy if a site collection is deleted.

    注意

    自動刪除會永久移除網站集合及其中之任何網站的所有內容與資訊。Automatic deletion permanently removes all the content and information from the site collection and any sites within the site collection.

管理未使用的網站集合Manage unused site collections

使用此程序管理未使用的網站集合。您可以執行下列步驟,指定刪除未使用之網站集合前,要詢問網站集合擁有者網站集合是否已停用的排程。Use this procedure to manage unused site collections. You can follow these steps to determine the schedules for notifying site collection owners of site collection inactivity before deleting unused site collections.

管理未使用的網站集合To manage unused site collections

  1. 確認您是否符合下列基本需求:Verify that you meet the following minimum requirements:

    • 您必須是執行 SharePoint 管理中心網站之電腦的伺服器陣列管理員群組成員。You must be a member of the Farm Administrators group on the computer running the SharePoint Central Administration website.
  2. 在管理中心的「應用程式管理」**** 頁面上,按一下 [網站集合]**** 區段中的 [確認網站使用與刪除]*On the Application Management page, in the *Site Collections section, click Confirm site use and deletion.

  3. 若要設定的 Web 應用程式不在清單之中,請在 [網站使用確認與刪除]**** 頁面的 [Web 應用程式]**** 區段中,展開 [Web 應用程式]**** 清單,然後按一下 [變更 Web 應用程式]*On the *Site Use Confirmation and Deletion page, in the Web Application section, if the web application that you want to configure is not listed, expand the Web Application list, and then click Change Web Application.

  4. 在 [選取 Web 應用程式]**** 對話方塊中,按一下您要設定的 Web 應用程式。In the Select Web Application dialog box, click the web application that you want to configure.

  5. 在 [確認和自動刪除設定]**** 區段中:In the Confirmation and Automatic Deletion Settings section:

    • 選取或清除 [傳送電子郵件通知給未使用的網站集合擁有人]**** 核取方塊。Select or clear the Send e-mail notification to owners of unused site collections check box.

      若選取此核取方塊,請輸入建立網站集合或確認網站集合使用狀況之後,要開始傳送通知的天數。預設天數是 30 天,最多為 365 天。If you select this check box, type the number of days, after the site collection creation or after the site collection usage is confirmed, to start to send notifications. The default number of days is 30, and the maximum is 365.

    • 指定電子郵件通知要採用每日、每週或每月排程。預設會採用每日排程。您也可以指定確切的時間檢查網站集合的使用狀況。預設時間為子夜。Specify a daily, weekly, or monthly schedule for email notifications. By default, the schedule is daily. You can also specify the exact time to run the check for the site collection usage. By default, the time is midnight.

    • 選取或清除 [若是未確認使用,則自動刪除網站集合]**** 核取方塊。Select or clear the Automatically delete the site collection if use is not confirmed check box.

      如果選取核取方塊,請輸入在刪除網站集合之前傳送的通知數。預設為 28 次。If you select this check box, type the number of notifications to send before the site collection is deleted. By default, it is 28 notifications.

  6. 按一下 [確定]*Click *OK.

另請參閱See also

概念Concepts

在 SharePoint Server 中刪除並還原網站集合Delete and restore site collections in SharePoint Server