ConvertTo-SPOMigrationEncryptedPackage

使用此 Cmdlet 将 XML 文件转换为新的加密迁移包。

语法

ImplicitSourceParameterSet

ConvertTo-SPOMigrationEncryptedPackage
    -MigrationSourceLocations <MigrationPackageLocation>
    -EncryptionParameters <EncryptionParameters>
    -TargetFilesPath <String>
    -TargetPackagePath <String>
    [-NoLogFile]
    [<CommonParameters>]

ExplicitSourceParameterSet

ConvertTo-SPOMigrationEncryptedPackage
    -SourceFilesPath <String>
    -SourcePackagePath <String>
    -EncryptionParameters <EncryptionParameters>
    -TargetFilesPath <String>
    -TargetPackagePath <String>
    [-NoLogFile]
    [<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

适用:SharePoint Online

加密的参数,它不接受通配符。 它接受 SHA384、SHA256 等参数。

参数属性

类型:Microsoft.Online.SharePoint.Migration.EncryptionParameters
默认值: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

-SourceFilesPath

适用:SharePoint Online

定义 XML 源文件所在的临时路径。

参数属性

类型: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

-TargetFilesPath

适用:SharePoint Online

定义 XML 源文件所在的临时路径。

参数属性

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

参数集

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

-TargetPackagePath

适用:SharePoint Online

定义要加密的包的源包路径位置。

参数属性

类型: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