Invoke-SPOMigrationEncryptUploadSubmit
注意:此 cmdlet 已弃用。 若要使用 PowerShell 迁移到 SharePoint 和 Microsoft 365,请参阅使用 PowerShell 迁移到 SharePoint。
在目标网站集中创建新的迁移作业。
语法
Invoke-SPOMigrationEncryptUploadSubmit
-Credentials <CredentialCmdletPipeBind>
-MigrationSourceLocations <MigrationPackageLocation>
[-NoLogFile]
-TargetWebUrl <String>
[<CommonParameters>]
Invoke-SPOMigrationEncryptUploadSubmit
-Credentials <CredentialCmdletPipeBind>
[-NoLogFile]
-SourceFilesPath <String>
-SourcePackagePath <String>
-TargetWebUrl <String>
[<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
用于填写 SPO 租户凭据的参数。
Type: | CredentialCmdletPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-MigrationSourceLocations
包所在的迁移位置。
Type: | MigrationPackageLocation |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoLogFile
控制是否创建日志
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourceFilesPath
源文件 路径,字符串
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourcePackagePath
源包路径。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetWebUrl
目标 Web URL
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |