ConvertTo-SPOMigrationTargetedPackage
Utilisez cette applet de commande pour convertir vos fichiers XML en un nouveau package de migration.
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
Utilisez cette applet de commande pour créer un package de migration d’une bibliothèque vers une autre bibliothèque sous la forme d’un package. Il convertit les fichiers XML et les enregistre sous la forme d’un nouvel ensemble de fichiers de métadonnées de package de migration ciblés dans le répertoire cible.
Exemples
Exemple 1
cet exemple montre comment convertir un package en un autre ciblé en recherchant les données dans la collection de sites cible. Il utilise le paramètre « -ParallelImport » pour améliorer les performances de migration du partage de fichiers.
$finalPackages = ConvertTo-SPOMigrationTargetedPackage -ParallelImport -SourceFilesPath $sourceFiles -SourcePackagePath $sourcePackage -OutputPackagePath $targetPackage -Credentials $cred -TargetWebUrl $targetWeb -TargetDocumentLibraryPath $targetDocLib
Paramètres
-AzureADUserCredentials
Reçoit les informations d’identification de l’utilisateur 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
Renseignez les informations d’identification régulières (Get-Credential)
Type: | CredentialCmdletPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoAzureADLookup
Commutateur de paramètre qui indique si la commande doit ou non rechercher Azure AD.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoLogFile
Basculez paramètre pour déterminer si vous devez obtenir ou non un fichier journal.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-OutputPackagePath
Chemin du package de sortie
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ParallelImport
Changez de paramètre pour améliorer les performances de migration du partage de fichiers.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-PartitionSizeInBytes
Définissez la taille de partition en octets où se trouve le package cible.
Type: | Int64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourceFilesPath
Définit le chemin d’accès temporaire où se trouvent les fichiers sources XML.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourcePackagePath
Définit l’emplacement du chemin d’accès du package source.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetDocumentLibraryPath
Définit le chemin d’accès de la bibliothèque de documents cible.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetDocumentLibrarySubFolderPath
Définit le chemin d’accès du sous-dossier de la bibliothèque de documents cible.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetEnvironment
Définit l’environnement cible : Production, ProductionChina, None ou 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
Définit le chemin d’accès de la liste cible
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetWebUrl
Définit l’URL web cible du package.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-UserMappingFile
Définit le mappage de fichiers de l’utilisateur.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |