Commands › SharePoint Online
Get-SPOSiteDataEncryptionPolicy
Validates the encryption of a Group Site, Team Site, or OneDrive for Business site if a Customer Key has been registered for the site.
Quick start script
# Get-SPOSiteDataEncryptionPolicy — 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
Get-SPOSiteDataEncryptionPolicy -Identity <SpoSitePipeBind> | Format-List
# 3. Export for evidence / drift tracking
Get-SPOSiteDataEncryptionPolicy | Export-Clixml .\SPOSiteDataEncryptionPolicy-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-SPOSiteDataEncryptionPolicy [-Identity] <SpoSitePipeBind> [<CommonParameters>]
Parameters (1)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.