New-SPOMigrationEncryptionParameters

Note: This cmdlet has been deprecated. To migrate to SharePoint and Microsoft 365 using PowerShell, see Migrate to SharePoint using PowerShell.

Creates a new random encryption key for a migration job or package.

Syntax

New-SPOMigrationEncryptionParameters []

Description

Creates a random encryption key for submission of a migration job or creation of a migration package. For use with Submit-SPOMigrationJob, ConvertTo-SPOMigrationEncryptedPackage, and Set-SPOMigrationPackageAzureSource in the -EncryptedParameter parameter for each cmdlet.

Examples

EXAMPLE 1

$o = New-SPOMigrationEncryptionParameters

Outputs a random encryption key and saves it in the $o variable.

Outputs

System.Byte

EncryptionKey: The randomly generated encryption key using System.Security.Cryptography.AesCryptoServiceProvider class.

Microsoft.Online.SharePoint.Migration.SPMigrationJobEncryptionMethod

EncryptionMethod: The encryption algorithm used to generate the EncryptionKey. Currently hardcoded to AES256BC.