Invoke-SPOMigrationEncryptUploadSubmit

注意:此 cmdlet 已弃用。 若要使用 PowerShell 迁移到 SharePoint 并Microsoft 365,请参阅 使用 PowerShell 迁移到 SharePoint

在目标网站集中创建新的迁移作业。

语法

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>]

说明

在目标网站集中创建新的迁移作业,然后返回表示 JobID 的 GUID。 此命令按作业将加密的源文件和清单上传到临时 Azure Blob 存储中。

示例

示例 1

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

此示例演示如何提交包数据以创建新的迁移作业

示例 2

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

本示例演示如何提交包数据以创建新的迁移作业。

本文包含有关如何创建此包的步骤: https://support.office.com/en-us/article/upload-on-premises-content-to-sharepoint-online-using-powershell-cmdlets-555049c6-15ef-45a6-9a1f-a1ef673b867c

示例 3

本示例演示如何提交包数据以创建用于并行导入的新迁移作业。

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

参数

-Credentials

适用:SharePoint Online

用于填写 SPO 租户凭据的参数。

参数属性

类型:Microsoft.Online.SharePoint.PowerShell.CredentialCmdletPipeBind
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-MigrationSourceLocations

适用:SharePoint Online

包所在的迁移位置。

参数属性

类型:Microsoft.Online.SharePoint.Migration.MigrationPackageLocation
默认值:None
支持通配符:False
不显示:False

参数集

ImplicitSourceParameterSet
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-NoLogFile

适用:SharePoint Online

控制是否创建日志

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ParallelUpload

适用:SharePoint Online

是否启用文件并行上传到 Azure。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-SourceFilesPath

适用:SharePoint Online

源文件 路径,字符串

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

ExplicitSourceParameterSet
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-SourcePackagePath

适用:SharePoint Online

源包路径。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

ExplicitSourceParameterSet
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-TargetWebUrl

适用:SharePoint Online

目标 Web URL

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object