Invoke-SPOMigrationEncryptUploadSubmit
注意:此 Cmdlet 已被取代。 若要使用 PowerShell 移轉至 SharePoint 和 Microsoft 365,請參閱使用 PowerShell 移轉至 SharePoint。
在目標網站集合中建立新的移轉作業。
Syntax
Invoke-SPOMigrationEncryptUploadSubmit
-Credentials <CredentialCmdletPipeBind>
-MigrationSourceLocations <MigrationPackageLocation>
[-NoLogFile]
-TargetWebUrl <String>
[<CommonParameters>]
Invoke-SPOMigrationEncryptUploadSubmit
-Credentials <CredentialCmdletPipeBind>
[-NoLogFile]
-SourceFilesPath <String>
-SourcePackagePath <String>
-TargetWebUrl <String>
[<CommonParameters>]
Description
在目標網站集合中建立新的移轉作業,然後傳回代表 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
本範例示範如何提交套件資料來建立新的移轉工作。
範例 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 |