ConvertTo-SPOMigrationTargetedPackage
使用此 cmdlet 将 XML 文件转换为新的迁移包。
语法
ConvertTo-SPOMigrationTargetedPackage
[-SourceFilesPath] <String>
[-SourcePackagePath] <String>
[[-OutputPackagePath] <String>]
[-TargetWebUrl] <String>
[-AzureADUserCredentials <CredentialCmdletPipeBind>]
-Credentials <CredentialCmdletPipeBind>
[-NoAzureADLookup]
[-NoLogFile]
[-ParallelImport]
[-PartitionSizeInBytes <Int64>]
-TargetDocumentLibraryPath <String>
[-TargetDocumentLibrarySubFolderPath <String>]
[-TargetEnvironment <TargetEnvironment>]
[-UserMappingFile <String>]
[<CommonParameters>]
ConvertTo-SPOMigrationTargetedPackage
[-SourceFilesPath] <String>
[-SourcePackagePath] <String>
[[-OutputPackagePath] <String>]
[-TargetWebUrl] <String>
[-AzureADUserCredentials <CredentialCmdletPipeBind>]
-Credentials <CredentialCmdletPipeBind>
[-NoAzureADLookup]
[-NoLogFile]
[-ParallelImport]
[-PartitionSizeInBytes <Int64>]
[-TargetEnvironment <TargetEnvironment>]
-TargetListPath <String>
[-UserMappingFile <String>]
[<CommonParameters>]
说明
使用此 cmdlet 以包的形式创建从一个库迁移到另一个库的迁移包。 它会转换 XML 文件,并将其作为一组新的目标迁移包元数据文件保存到目标目录。
示例
示例 1
本示例演示如何通过查找目标网站集中的数据将包转换为目标包。 它使用“-ParallelImport”参数来提高文件共享迁移性能。
$finalPackages = ConvertTo-SPOMigrationTargetedPackage -ParallelImport -SourceFilesPath $sourceFiles -SourcePackagePath $sourcePackage -OutputPackagePath $targetPackage -Credentials $cred -TargetWebUrl $targetWeb -TargetDocumentLibraryPath $targetDocLib
参数
-AzureADUserCredentials
接收 Azure Active Directory 用户凭据
Type: | CredentialCmdletPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Credentials
填写常规凭据 (Get-Credential)
Type: | CredentialCmdletPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoAzureADLookup
指示命令是否应查找 Azure AD 的开关参数。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoLogFile
切换参数以确定是否应获取日志文件。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-OutputPackagePath
输出包路径
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ParallelImport
切换参数以提高文件共享迁移性能。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-PartitionSizeInBytes
在目标包所在的位置定义分区大小(以字节为单位)。
Type: | Int64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourceFilesPath
定义 XML 源文件所在的临时路径。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourcePackagePath
定义源包路径位置。
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetDocumentLibraryPath
定义目标文档库路径。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetDocumentLibrarySubFolderPath
定义目标文档库子文件夹路径。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetEnvironment
定义目标环境:Production、ProductionChina、None 或 OnPremises。
Type: | TargetEnvironment |
Accepted values: | Production, ProductionChina, None, OnPremises |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetListPath
定义目标列表路径
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetWebUrl
定义包的目标 Web URL。
Type: | String |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-UserMappingFile
定义用户的文件映射。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |