Skip to content

Invoke-MigrationEncryptUploadSubmit

SharePoint Online: Invokes migration encrypt upload submit

#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell
[CmdletBinding()]
Param([Parameter(Mandatory = $true)][guid]$PackageId, [Parameter(Mandatory = $true)][string]$TargetWebUrl)
Process {
    try {
        $result = Invoke-SPOMigrationEncryptUploadSubmit -PackageId $PackageId -TargetWebUrl $TargetWebUrl -ErrorAction Stop | Select-Object *
        if ($null -ne $result) { $result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force }
    }
    catch { throw }
}

Migration package ID

Target SharePoint web URL

An interactive directory of PowerShell scripts.