Loading...

Microsoft Purview: Update to ResultCount parameter in the Search-UnifiedAuditLog cmdlet

Microsoft Purview: Update to ResultCount parameter in the Search-UnifiedAuditLog cmdlet

Microsoft Purview updates the Search-UnifiedAuditLog cmdlet’s ResultCount parameter to show a running count of results in real time, adding a new boolean property, AuditSearchRequestMetadata.moreRecordsAvailable, to indicate if more records remain. This improves query progress visibility and affects scripts relying on ResultCount as a final total. To improve performance and provide better visibility into query progress, we are updating the behavior of the ResultCount parameter for the Search-UnifiedAuditLog cmdlet in Microsoft Purview Audit. Previously, the ResultCount parameter returned the total number of results expected from a query. With this update, ResultCount will display a running count of results as they are retrieved in real time. We are also introducing a new boolean property, AuditSearchRequestMetadata.moreRecordsAvailable, which indicates whether additional records are still being retrieved. Together, these updates provide administrators with improved transparency into audit log search progress and better support for script and automation scenarios. When this will happen General Availability (Worldwide, GCC): We began rolling out in mid-May 2026 and expect to complete by late May 2026. General Availability (GCC High, DoD): We will begin rolling out in early June 2026 and expect to complete by late June 2026. How this affects your organization Who is affected Administrators who use Microsoft Purview Audit Administrators running the Search-UnifiedAuditLog cmdlet in PowerShell Organizations with scripts or automation that rely on audit log search results What will happen The ResultCount parameter will now display a running count of results as they are retrieved during query execution. A new boolean property, AuditSearchRequestMetadata.moreRecordsAvailable, will indicate whether additional records are still being retrieved. While the query is running: ResultCount shows the number of records retrieved so far. moreRecordsAvailable is set to true. When the query completes: ResultCount reflects the final total number of results. moreRecordsAvailable is set to false. This feature is enabled by default. There is no change to audit log data or retention. Existing scripts that rely on ResultCount representing a final total before completion may require updates. What you can do to prepare Review existing scripts and automation that rely on ResultCount to determine total results. Update scripts to use AuditSearchRequestMetadata.moreRecordsAvailable to confirm when […]

The post Microsoft Purview: Update to ResultCount parameter in the Search-UnifiedAuditLog cmdlet appeared first on M365 Admin.

Published on:

Learn more
Need help with this product?

We can help you with Microsoft Purview: Update to ResultCount parameter in the Search-UnifiedAuditLog cmdlet

If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.

M365 Admin
M365 Admin

by João Ferreira

Share post:

Related posts

Dynamics 365 Field Service: Automate optimizations with Scheduling Operations Agent

This release expands the optimization capabilities of the Scheduling Operations Agent to include the ability to create recurring optimizations...

19 hours ago

Microsoft Teams: Call quality feedback surveys for Teams Rooms on Android

Microsoft Teams will introduce call quality feedback surveys for Teams Rooms on Android starting November 2026. Users can rate audio, video, a...

20 hours ago

Microsoft Edge: Retiring legacy sign-in implementation on Windows

Microsoft Edge on Windows will retire its legacy direct-WAM sign-in in version 157, fully adopting the OneAuth library to standardize authenti...

20 hours ago

Microsoft Defender Vulnerability Management: Private preview for selected developer package vulnerability coverage

Microsoft Defender Vulnerability Management is privately previewing expanded vulnerability coverage for selected Node.js, Python, and Java pac...

20 hours ago

Microsoft Defender for Office 365: Post-delivery protection for malicious QR codes in Microsoft Teams

Microsoft Defender for Office 365 extends Teams URL protection to detect malicious URLs in QR codes post-delivery, warning users and enabling ...

20 hours ago

Microsoft Teams: Analytics for desk utilization in Teams Pro Management portal

Microsoft Teams Pro Management portal will add desk utilization analytics, showing usage, reservations, occupancy, and peak patterns. Requires...

20 hours ago

‘Record A Skill’ Capability in PowerPoint Copilot

PowerPoint Copilot will introduce a “Record a Skill” feature in October 2026, allowing users to record and reuse workflows for com...

20 hours ago

Microsoft 365: Targeted Release retirement

Microsoft 365 Targeted Release will retire in January 2027, replaced by Frontier, Standard, and Deferred release options. Administrators must ...

20 hours ago

Interim guidance for Manitoba time zone changes

A time zone change affects Windows devices in Manitoba, with Windows releasing a fix in October 2026. Manitoba is permanently moving to UTC-5 ...

20 hours ago

Microsoft Purview DLP: Improved setup and Intune multi-admin approval support for unmanaged apps in Edge for Business

Starting November 2026, Microsoft Purview DLP will improve setup and support Intune multi-admin approval for unmanaged apps in Edge for Busine...

20 hours ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.