ConvertTo-SPOMigrationEncryptedPackage
使用此 Cmdlet 将 XML 文件转换为新的加密迁移包。
语法
ConvertTo-SPOMigrationEncryptedPackage
-EncryptionParameters <EncryptionParameters>
-MigrationSourceLocations <MigrationPackageLocation>
[-NoLogFile]
-TargetFilesPath <String>
-TargetPackagePath <String>
[<CommonParameters>]
ConvertTo-SPOMigrationEncryptedPackage
-EncryptionParameters <EncryptionParameters>
[-NoLogFile]
-SourceFilesPath <String>
-SourcePackagePath <String>
-TargetFilesPath <String>
-TargetPackagePath <String>
[<CommonParameters>]
说明
此命令将临时 XML 文件夹文件上的 XML 文件转换为一组新的目标迁移加密元数据文件到目标目录。
示例
示例 1
ConvertTo-SPOMigrationEncryptedPackage -EncryptionParameters SHA256 -MigrationSourceLocations $MigrationPackageLocation -NoLogFile -TargetFilesPath $TargetFilesPath -TargetPackagePath $TargetPackagePath
将迁移包更改为“migrationSourceLocations”上的迁移加密包,并包含当前租户上的日志文件
示例 2
ConvertTo-SPOMigrationEncryptedPackage -EncryptionParameters SHA384 -MigrationSourceLocations $MigrationPackageLocation -TargetFilesPath $TargetFilesPath -TargetPackagePath $TargetPackagePath
与 example1 相同,但没有日志文件,并且使用加密类型 SHA384
参数
-EncryptionParameters
加密的参数,它不接受通配符。 它接受 SHA384、SHA256 等参数。
Type: | EncryptionParameters |
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
定义 XML 源文件所在的临时路径。
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 |
-TargetFilesPath
定义 XML 源文件所在的临时路径。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetPackagePath
定义要加密的包的源包路径位置。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |