Muokkaa

Jaa


Invoke-SPOMigrationEncryptUploadSubmit

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

Creates a new migration job in the target site collection.

Syntax

Invoke-SPOMigrationEncryptUploadSubmit
      -Credentials <CredentialCmdletPipeBind>
      -MigrationSourceLocations <MigrationPackageLocation>
      [-NoLogFile]
      -TargetWebUrl <String>
      [<CommonParameters>]
Invoke-SPOMigrationEncryptUploadSubmit
      -Credentials <CredentialCmdletPipeBind>
      [-NoLogFile]
      -SourceFilesPath <String>
      -SourcePackagePath <String>
      -TargetWebUrl <String>
      [<CommonParameters>]

Description

Creates a new migration job in the target site collection, and then returns a GUID representing the JobID. This command will upload encrypted source files and manifests into temporary Azure blob storage per job.

Examples

Example 1

$job = Invoke-SPOMigrationEncryptUploadSubmit -SourceFilesPath $sourceFiles -SourcePackagePath $spoPackagePath -Credentials $cred -TargetWebUrl $targetWebUrl

This example shows how to submit package data to create a new migration job

Example 2

$sourceFiles = "sourceFiles"
$spoPackagePath = "packagePath"
$credentials = Get-Credential
$targetweburl = "https://contoso.sharepoint.com"
Invoke-SPOMigrationEncryptUploadSubmit -SourceFilesPath $sourceFiles -SourcePackagePath $spoPackagePath -Credentials $credentials -TargetWebUrl $targetweburl

This example shows how to submit package data to create a new migration job.

This article contains the steps on how to create this package: https://support.office.com/en-us/article/upload-on-premises-content-to-sharepoint-online-using-powershell-cmdlets-555049c6-15ef-45a6-9a1f-a1ef673b867c

Example 3

This example shows how to submit package data to create new migration jobs for parallel import.

$jobs = $finalPackages | % {Invoke-SPOMigrationEncryptUploadSubmit -SourceFilesPath $_.FilesDirectory.FullName -SourcePackagePath $_.PackageDirectory.FullName -Credentials $cred -TargetWebUrl $targetWeb}

Parameters

-Credentials

Parameter to fill out credentials of the SPO tenant.

Type:CredentialCmdletPipeBind
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-MigrationSourceLocations

Migration Location where the package lies.

Type:MigrationPackageLocation
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-NoLogFile

Controls if a log will be created or not

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SourceFilesPath

Source files Path, string

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SourcePackagePath

Source Package Path.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-TargetWebUrl

Target web URL

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online