迁移评估扫描:锁定网站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 此扫描报告包含在 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.