Commands › SharePoint Online

Get-SPOContainerTenantApplyFileVersionPolicyJobImpact

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

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 for a SharePoint Embedded (SPE) container type. 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-SPOContainerTenantApplyFileVersionPolicyJobImpact — 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-SPOContainerTenantApplyFileVersionPolicyJobImpact -ContainerTypeId <Guid> -VersionPolicy <SPOFileVersionPolicySettings> | Format-List

# 3. Export for evidence / drift tracking
Get-SPOContainerTenantApplyFileVersionPolicyJobImpact | Export-Clixml .\SPOContainerTenantApplyFileVersionPolicyJobImpact-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-SPOContainerTenantApplyFileVersionPolicyJobImpact -ContainerTypeId <Guid>
 -VersionPolicy <SPOFileVersionPolicySettings> [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-ContainerTypeId Guid yes The ID of the SharePoint Embedded container type to evaluate.
-VersionPolicy SPOFileVersionPolicySettings yes The version policy to evaluate. Use `Get-SPOTenantVersionPolicy` and `Get-SPOVersionPolicyWithChanges` to build this value.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.