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
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-NoAzureADLookup

开关参数,该参数指示命令是否应查找或不应查找 Azure AD。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-NoLogFile

切换参数以确定是否应获取日志文件。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-OutputPackagePath

输出包路径

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-ParallelImport

切换参数以提高文件共享迁移性能。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-PartitionSizeInBytes

定义将位于目标包的分区大小(以字节为单位)。

Type:Int64
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SourceFilesPath

定义 XML 源文件所在的临时路径。

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SourcePackagePath

定义源包路径位置。

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-TargetDocumentLibraryPath

定义目标文档库路径。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-TargetDocumentLibrarySubFolderPath

定义目标文档库子文件夹路径。

Type:String
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-TargetListPath

定义目标列表路径

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-TargetWebUrl

定义包的目标 Web URL。

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-UserMappingFile

定义用户的文件映射。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-凭据

填写常规凭据 (Get-Credential)

Type:CredentialCmdletPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online