r/PowerShell • MVP, Community Blogger • 5h ago

Solved Converting PowerShell Scripts from Search-UnifiedAuditLog

Investigating the work necessary to convert PowerShell scripts based on the Search-UnifiedAuditLog cmdlet to use the AuditLogQuery Graph API shows that it’s not easy. Running audit jobs is a multi-stage process rather than running a simple cmdlet. Parameter values are now passed in a request body or different named parameters, and the properties output in the AuditData payload use a different format. This is definitely not a drop-in exercise, so it’s time to get ready by finding scripts that need to be converted.

https://office365itpros.com/2026/10/27/auditlogquery-conversion/

4 Upvotes

1 comment sorted by

1

u/13159daysold 1h ago

Hopefully they improve it in the next year...