ConvertTo-SPOMigrationTargetedPackage
使用此 cmdlet 将 XML 文件转换为新的迁移包。
语法
DocumentLibraryImport
ConvertTo-SPOMigrationTargetedPackage
[-SourceFilesPath] <String>
[-SourcePackagePath] <String>
[[-OutputPackagePath] <String>]
[-TargetWebUrl] <String>
-TargetDocumentLibraryPath <String>
-Credentials <CredentialCmdletPipeBind>
[-TargetDocumentLibrarySubFolderPath <String>]
[-UserMappingFile <String>]
[-AzureADUserCredentials <CredentialCmdletPipeBind>]
[-NoAzureADLookup]
[-TargetEnvironment <TargetEnvironment>]
[-ParallelImport]
[-PartitionSizeInBytes <Int64>]
[-NoLogFile]
[<CommonParameters>]
ListImport
ConvertTo-SPOMigrationTargetedPackage
[-SourceFilesPath] <String>
[-SourcePackagePath] <String>
[[-OutputPackagePath] <String>]
[-TargetWebUrl] <String>
-TargetListPath <String>
-Credentials <CredentialCmdletPipeBind>
[-UserMappingFile <String>]
[-AzureADUserCredentials <CredentialCmdletPipeBind>]
[-NoAzureADLookup]
[-TargetEnvironment <TargetEnvironment>]
[-ParallelImport]
[-PartitionSizeInBytes <Int64>]
[-NoLogFile]
[<CommonParameters>]
说明
使用此 cmdlet 以包的形式创建从一个库迁移到另一个库的迁移包。 它会转换 XML 文件,并将其作为一组新的目标迁移包元数据文件保存到目标目录。
示例
示例 1
本示例演示如何通过查找目标网站集中的数据将包转换为目标包。 它使用“-ParallelImport”参数来提高文件共享迁移性能。
$finalPackages = ConvertTo-SPOMigrationTargetedPackage -ParallelImport -SourceFilesPath $sourceFiles -SourcePackagePath $sourcePackage -OutputPackagePath $targetPackage -Credentials $cred -TargetWebUrl $targetWeb -TargetDocumentLibraryPath $targetDocLib
参数
-AzureADUserCredentials
适用:SharePoint Online
接收Microsoft Entra用户凭据
参数属性
| 类型: | Microsoft.Online.SharePoint.PowerShell.CredentialCmdletPipeBind |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Credentials
适用:SharePoint Online
填写常规凭据 (Get-Credential)
参数属性
| 类型: | Microsoft.Online.SharePoint.PowerShell.CredentialCmdletPipeBind |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-NoAzureADLookup
适用:SharePoint Online
指示命令是否应查找Microsoft Entra ID的开关参数。
参数属性
| 类型: | System.Management.Automation.SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-NoLogFile
适用:SharePoint Online
切换参数以确定是否应获取日志文件。
参数属性
| 类型: | System.Management.Automation.SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-OutputPackagePath
适用:SharePoint Online
输出包路径
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 2 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ParallelImport
适用:SharePoint Online
切换参数以提高文件共享迁移性能。
参数属性
| 类型: | System.Management.Automation.SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-PartitionSizeInBytes
适用:SharePoint Online
在目标包所在的位置定义分区大小(以字节为单位)。
参数属性
| 类型: | System.Int64 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SourceFilesPath
适用:SharePoint Online
定义 XML 源文件所在的临时路径。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SourcePackagePath
适用:SharePoint Online
定义源包路径位置。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 1 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TargetDocumentLibraryPath
适用:SharePoint Online
定义目标文档库路径。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
DocumentLibraryImport
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TargetDocumentLibrarySubFolderPath
适用:SharePoint Online
定义目标文档库子文件夹路径。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
DocumentLibraryImport
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TargetEnvironment
适用:SharePoint Online
定义目标环境:Production、ProductionChina、None 或 OnPremises。
参数属性
| 类型: | Microsoft.Online.SharePoint.Migration.TargetEnvironment |
| 默认值: | None |
| 接受的值: | Production, ProductionChina, None, OnPremises |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TargetListPath
适用:SharePoint Online
定义目标列表路径
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ListImport
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TargetWebUrl
适用:SharePoint Online
定义包的目标 Web URL。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 3 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-UserMappingFile
适用:SharePoint Online
定义用户的文件映射。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。