Commands › SharePoint Online

Get-SPOAuditDataCollectionStatusForActivityInsights

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

Lists the current status of audit data collection for reports on activities from the last 28 days in the SharePoint admin center.

Quick start script

# Get-SPOAuditDataCollectionStatusForActivityInsights — 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-SPOAuditDataCollectionStatusForActivityInsights | Format-List

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

Syntax

Get-SPOAuditDataCollectionStatusForActivityInsights [-ReportEntity <OptInReportEntityEnum>]
 [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-ReportEntity OptInReportEntityEnum Specifies the entity for which the corresponding audit data collection status should be shown.

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