Upravit

Sdílet prostřednictvím


Restore-SPODataEncryptionPolicy

Cmdlet to restore customer encryption status for your geo tenant when in recovery mode. For more information, see Controlling your data in Office 365 using Customer Key

Syntax

Restore-SPODataEncryptionPolicy
       -PrimaryKeyVaultName <string>
        -PrimaryKeyName <string>
       -PrimaryKeyVersion <guid>
       -SecondaryKeyVaultName <string>
       -SecondaryKeyName <string>
       -SecondaryKeyVersion <guid>
       [<CommonParameters>]

Description

Use the cmdlet to restore customer encryption status for your geo tenant when in recovery mode. For more information, see Controlling your data in Office 365 using Customer Key

Examples

Example 1

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

This example restores the DEP used with SharePoint Online and OneDrive for Business to the given keys.

Parameters

-PrimaryKeyName

The name of the primary key.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-PrimaryKeyVaultName

The name of the primary key vault.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-PrimaryKeyVersion

The version of the primary key.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SecondaryKeyName

The name of the secondary key.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SecondaryKeyVaultName

The name of the secondary key vault.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SecondaryKeyVersion

The version of the secondary key.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online