Restore-SPODataEncryptionPolicy

Cmdlet 用于在恢复模式下还原异地租户的客户加密状态。 有关详细信息,请参阅使用客户密钥控制Office 365中的数据

语法

BYOK_MultipleParameters

Restore-SPODataEncryptionPolicy
    -PrimaryKeyVaultName <String>
    -PrimaryKeyName <String>
    -PrimaryKeyVersion <Guid>
    -SecondaryKeyVaultName <String>
    -SecondaryKeyName <String>
    -SecondaryKeyVersion <Guid>
    [<CommonParameters>]

BYOK_Uri

Restore-SPODataEncryptionPolicy
    -PrimaryKeyVaultUri <Uri>
    -SecondaryKeyVaultUri <Uri>
    [<CommonParameters>]

说明

在恢复模式下,使用 cmdlet 还原异地租户的客户加密状态。 有关详细信息,请参阅使用客户密钥控制Office 365中的数据

示例

示例 1

Restore-SPODataEncryptionPolicy -PrimaryKeyVaultName 'PKVaultName1' -PrimaryKeyName 'PrimaryKey1' -PrimaryKeyVersion 'f635a23bd4a44b9996ff6aadd88d42ba' -SecondaryKeyVaultName 'SKVaultName1' -SecondaryKeyName 'SecondaryKey2' -SecondaryKeyVersion '2b3e8f1d754f438dacdec1f0945f251a'

此示例还原与 SharePoint Online 一起使用的 DEP,并将OneDrive for Business到给定密钥。

参数

-PrimaryKeyName

适用:SharePoint Online

主键的名称。

参数属性

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

参数集

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

-PrimaryKeyVaultName

适用:SharePoint Online

主密钥保管库的名称。

参数属性

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

参数集

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

-PrimaryKeyVaultUri

适用:SharePoint Online

主密钥保管库的 URI。

参数属性

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

参数集

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

-PrimaryKeyVersion

适用:SharePoint Online

主键的版本。

参数属性

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

参数集

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

-SecondaryKeyName

适用:SharePoint Online

辅助密钥的名称。

参数属性

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

参数集

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

-SecondaryKeyVaultName

适用:SharePoint Online

辅助密钥保管库的名称。

参数属性

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

参数集

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

-SecondaryKeyVaultUri

适用:SharePoint Online

辅助密钥保管库的 URI。

参数属性

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

参数集

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

-SecondaryKeyVersion

适用:SharePoint Online

辅助密钥的版本。

参数属性

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

参数集

BYOK_MultipleParameters
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