Commands › SharePoint Online
Register-SPODataEncryptionPolicy
Cmdlet to register customer encryption status for your geo tenant. For more information, see Controlling your data in Office 365 using Customer Key
Quick start script
# Register-SPODataEncryptionPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Register-SPODataEncryptionPolicy -PrimaryKeyName <String> -PrimaryKeyVaultName <String> -PrimaryKeyVaultUri <Uri> | Format-List
# 3. Export for evidence / drift tracking
Register-SPODataEncryptionPolicy | Export-Clixml .\SPODataEncryptionPolicy-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
BYOK_MultipleParameters (Default)
Register-SPODataEncryptionPolicy -PrimaryKeyVaultName <String> -PrimaryKeyName <String>
-PrimaryKeyVersion <Guid> -SecondaryKeyVaultName <String> -SecondaryKeyName <String>
-SecondaryKeyVersion <Guid> [-WhatIf] [-Confirm] [<CommonParameters>]
BYOK_Uri
Register-SPODataEncryptionPolicy -PrimaryKeyVaultUri <Uri> -SecondaryKeyVaultUri <Uri> [-WhatIf] [-Confirm]
[<CommonParameters>]
Parameters (10)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.