Edit

Share via


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

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>]

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

Applicable: SharePoint Online

The name of the primary key.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_MultipleParameters
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PrimaryKeyVaultName

Applicable: SharePoint Online

The name of the primary key vault.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_MultipleParameters
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PrimaryKeyVaultUri

{{ Fill PrimaryKeyVaultUri Description }}

Parameter properties

Type:System.Uri
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_Uri
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PrimaryKeyVersion

Applicable: SharePoint Online

The version of the primary key.

Parameter properties

Type:System.Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_MultipleParameters
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SecondaryKeyName

Applicable: SharePoint Online

The name of the secondary key.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_MultipleParameters
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SecondaryKeyVaultName

Applicable: SharePoint Online

The name of the secondary key vault.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_MultipleParameters
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SecondaryKeyVaultUri

{{ Fill SecondaryKeyVaultUri Description }}

Parameter properties

Type:System.Uri
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_Uri
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SecondaryKeyVersion

Applicable: SharePoint Online

The version of the secondary key.

Parameter properties

Type:System.Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

BYOK_MultipleParameters
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object