移轉評定掃描:鎖定的網站Migration Assessment Scan: Locked Sites

了解如何在移轉期間減輕網站鎖定的問題。Learn how to mitigate issues with locked sites during migration.

概觀Overview

當 SharePoint 將某個網站設定為「無法存取」,使用者和系統便無法存取這個網站。如此一來,會將各種移轉前掃描設為略過任何已設定為「無法存取」的網站 。網站便被鎖定When a site is configured as "No Access" in SharePoint, the site is inaccessible by both users and the system. As a result, the various pre-migration scans are configured to ignore any site that is configured as "No Access". It is locked.

資料移轉Data Migration

您無法將鎖定的網站移轉至目標環境,因為移轉工具無法讀取其網站內容。Locked sites cannot be migrated to the target environment, as the migration tooling is unable to read the site contents.

重要

任何設定為「無法存取」(鎖定) 的網站在 SharePoint 中都將予以略過。若要查看鎖定的網站集合清單,請參閱「鎖定的網站」掃描輸出。Any site that is configured as "No Access" (locked), in SharePoint will be skipped. To see a list of locked site collections see the Locked Sites scan output.

準備移轉Preparing for Migration

確認鎖定網站清單正確。如果有網站錯標為「無法存取」,將鎖定狀態更新為「未鎖定」。Ensure the list of locked sites is correct. If you have sites that are incorrectly marked as "No Access", update the lock status to "Not Locked".

移轉之後Post Migration

若要管理目標環境中網站的鎖定狀態,請利用 SharePoint Online 管理命令介面。To manage the lock status on sites on the target environment, leverage the SharePoint Online Management Shell.

如何將 vNext 上的網站集合解除鎖定How to unlock a site collection on vNext

  1. 使用 PowerShell Cmdlet 中的 Set-SPSite Cmdlet 將網站解除鎖定。Use the Set-SPSite cmdlet from the PowerShell cmdlets to unlock sites.

  2. 下載 SharePoint Online 管理命令介面下載這組 Cmdlet。https://www.microsoft.com/download/details.aspx?id=35588Download the cmdlets from the SharePoint Online Management Shell download. https://www.microsoft.com/download/details.aspx?id=35588

  3. 啟動 SharePoint Online 管理命令介面Launch SharePoint Online Management Shell

  4. 執行:Set-SPSite -LockStatus UnlockRun: Set-SPSite -LockStatus Unlock

如何將網站設定為無法存取How to set a site to "No Access"

  1. 使用 PowerShell Cmdlet 中的 Set-SPSite 鎖定網站。這與 「無法存取」類似,使用者無法存取此網站。Use Set-SPSite from the PowerShell cmdlets to lock sites. This is similar to "No Access" in that users can't get to the site.

  2. 下載 SharePoint Online 管理命令介面下載這組 Cmdlet。https://www.microsoft.com/download/details.aspx?id=35588Download the cmdlets from the SharePoint Online Management Shell download. https://www.microsoft.com/download/details.aspx?id=35588

  3. 啟動 SharePoint Online 管理命令介面Launch SharePoint Online Management Shell

  4. 執行:Set-SPSite -LockStatus NoAccessRun: Set-SPSite -LockStatus NoAccess

如何將網站設定為唯讀How to set a site to "Read only"

  1. Set-SPSite 不支援將網站設定為「唯讀」。替代做法是使用網站集合的「網站集合原則」。Set-SPSite does not support setting a site to "Read Only". An alternative method is to use Site Collection Policies on a site collection.

  2. 瀏覽您要「唯讀」的網站。Browse the site you want to be "Read Only".

  3. 選取右上角的齒輪圖示,然後選取 [網站設定]****。In the top right, select the gear icon, and then select Site Settings.

  4. 選取 [網站原則]****。Select Site Policies.

  5. 選取 [建立]****。Select Create.

  • a. 輸入 [名稱]**** 與 [描述]****。a. Enter a Name and Description.

  • 選取 [不要自動關閉或刪除網站]****。Select Do not close or delete site automatically.

  • 選取 [網站集合關閉時會變為唯讀]****。Check The site collection will be read only when it is closed.

  • 選取 [確定]****。Select OK.

  1. 在 [網站設定]**** 中,按一下 [網站關閉和刪除]****。On Site Settings, select Site Closure and Deletion.

  2. 在 [網站原則]**** 選取步驟 4 中的「唯讀」原則。For Site Policy, select the "Read Only" policy from Step 4.

  3. 選取 [確定]****。Select OK.

  4. 返回 [網站關閉和刪除]****,然後選取 [立即關閉此網站]****。Go back to Site Closure and Deletion, and select Close this site now. 網站現在就是「唯讀」。The site is now "Read Only".

  5. 只有網站集合的系統管理員可以存取及選取 [開啟這個網站]****。Only a site collection admin can access and select Open this site.

掃描結果報表Scan Result Reports

LockedSites-detail.csv 這份掃描報告中有一份 URL 清單,列出在 SharePoint 中設為「無法存取」的 URL。LockedSites-detail.csv This scan report contains a list of URLs that are configured as "No Access" in SharePoint.

Column 描述Description
URLURL
已設定為「無法存取」的網站集合 URL。URL of the site collection that is configured as "No Access".
ScanIDScanID
指派給特定 SharePoint 移轉評定工具執行的唯一識別碼。Unique identifier assigned to a specific execution of the SharePoint Migration Assessment Tool.