Commands › SharePoint Online
Get-SPOTenantApplyFileVersionPolicyJobImpact
Estimates how many versions would be trimmed and how much storage would be freed if a trimming job were run with the given version policy. SharePoint Advanced Management license or Copilot license is required to run this cmdlet. > [!NOTE] > This feature is currently in preview and may not be available in your tenant.
Quick start script
# Get-SPOTenantApplyFileVersionPolicyJobImpact — 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-SPOTenantApplyFileVersionPolicyJobImpact -VersionPolicy <SPOFileVersionPolicySettings> | Format-List
# 3. Export for evidence / drift tracking
Get-SPOTenantApplyFileVersionPolicyJobImpact | Export-Clixml .\SPOTenantApplyFileVersionPolicyJobImpact-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-SPOTenantApplyFileVersionPolicyJobImpact -VersionPolicy <SPOFileVersionPolicySettings> [<CommonParameters>]
Parameters (1)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.