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
ImplicitSourceParameterSet
Invoke-SPOMigrationEncryptUploadSubmit
-MigrationSourceLocations <MigrationPackageLocation>
-Credentials <CredentialCmdletPipeBind>
-TargetWebUrl <String>
[-NoLogFile]
[-ParallelUpload]
[<CommonParameters>]
ExplicitSourceParameterSet
Invoke-SPOMigrationEncryptUploadSubmit
-SourceFilesPath <String>
-SourcePackagePath <String>
-Credentials <CredentialCmdletPipeBind>
-TargetWebUrl <String>
[-NoLogFile]
[-ParallelUpload]
[<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
Applicable: SharePoint Online
Parameter to fill out credentials of the SPO tenant.
Parameter properties
Type: | Microsoft.Online.SharePoint.PowerShell.CredentialCmdletPipeBind |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-MigrationSourceLocations
Applicable: SharePoint Online
Migration Location where the package lies.
Parameter properties
Type: | Microsoft.Online.SharePoint.Migration.MigrationPackageLocation |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ImplicitSourceParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-NoLogFile
Applicable: SharePoint Online
Controls if a log will be created or not
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ParallelUpload
{{ Fill ParallelUpload Description }}
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SourceFilesPath
Applicable: SharePoint Online
Source files Path, string
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ExplicitSourceParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SourcePackagePath
Applicable: SharePoint Online
Source Package Path.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ExplicitSourceParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-TargetWebUrl
Applicable: SharePoint Online
Target web URL
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.