Commands › SharePoint Online

ConvertTo-SPOMigrationEncryptedPackage

SharePoint Online Microsoft.Online.SharePoint.PowerShell ConvertTo-*

Use this Cmdlet to convert your XML files into a new encrypted migration package.

Quick start script

# ConvertTo-SPOMigrationEncryptedPackage — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
ConvertTo-SPOMigrationEncryptedPackage -EncryptionParameters <EncryptionParameters> -MigrationSourceLocations <MigrationPackageLocation> -SourceFilesPath <String> | Format-List

# 3. Export for evidence / drift tracking
ConvertTo-SPOMigrationEncryptedPackage | Export-Clixml .\SPOMigrationEncryptedPackage-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

ImplicitSourceParameterSet

ConvertTo-SPOMigrationEncryptedPackage -MigrationSourceLocations <MigrationPackageLocation>
 -EncryptionParameters <EncryptionParameters> -TargetFilesPath <String> -TargetPackagePath <String>
 [-NoLogFile] [<CommonParameters>]

ExplicitSourceParameterSet

ConvertTo-SPOMigrationEncryptedPackage -SourceFilesPath <String> -SourcePackagePath <String>
 -EncryptionParameters <EncryptionParameters> -TargetFilesPath <String> -TargetPackagePath <String>
 [-NoLogFile] [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-EncryptionParameters EncryptionParameters yes Parameters of the encryption, it doesn't accept wildcard characters. It accepts parameters like SHA384, SHA256, etc.
-MigrationSourceLocations MigrationPackageLocation yes Possible Source locations to migrate
-NoLogFile SwitchParameter Switch Parameter to determine if you should get or not a log file.
-SourceFilesPath String yes Defines the temporary Path where are located the XML source files.
-SourcePackagePath String yes Defines the source package path location.
-TargetFilesPath String yes Defines the temporary Path where are located the XML source files.
-TargetPackagePath String yes Defines the source package path location of the package to be encrypted.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.