Enhanced Recipe - Cove - M365 User Cleanup Offboarding
Enumerate protected M365 users and optionally Bulk purge OneDrive from Share Billable Mailboxes, Unlicensed Mailboxes, and / or Deleted Mailboxes
Support Age parameters for Shared, unlicensed and deleted mailboxes and as well as exception lists for DoNotDeleteEmails and DoNotDeleteDomains to exclude from processing.
v26.06.16 Release Notes
https://developer.n-able.com/n-able-cove/recipes/cove-m365-user-cleanup-offboarding
Version 26.06.16 introduces critical production-ready features for enterprise M365 user cleanup operations. The script now includes comprehensive execution audit logging, dry-run testing capabilities, and command-line authentication for automation. These enhancements transform the script from a basic cleanup utility into a robust, audit-compliant solution suitable for regulated environments and large-scale M365 backup management operations.
What's New
Execution Audit Trail — Complete logging of all cleanup operations with timestamps, operation types, email addresses, user GUIDs, result status, and detailed outcomes for compliance and troubleshooting
WhatIf / Dry-Run Mode — Preview all proposed changes before execution using the -WhatIf switch; logs what would happen without removing backups
Command-Line Authentication — Eliminate credential file dependencies with -APIPartnerName, -APIUsername, and -APIPassword parameters for CI/CD and automated workflows
Protected Account Functions — Centralized protection logic prevents accidental deletion of critical accounts; define protected emails and domains once, enforced across all operations
Debug Mode — Optional detailed output with user-friendly Cove console links instead of raw API URLs; cleaner production deployments with diagnostic capability when needed
Automatic Export — M365 device and user statistics automatically exported to XLS/CSV format without manual configuration