ConvertTo-SPOMigrationTargetedPackage
使用此 Cmdlet 將 XML 檔案轉換成新的移轉套件。
Syntax
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>]
Description
使用此 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
Switch 參數,指出命令是否應該查閱 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 |