<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# API Reference — Performing Email Compliance Auditing

## M365 Compliance PowerShell
```powershell
Get-RetentionCompliancePolicy | Format-List
Get-RetentionComplianceRule | Format-List
Get-Mailbox | Where {$_.LitigationHoldEnabled} | Select DisplayName
Search-UnifiedAuditLog -Operations MailboxLogin -StartDate "2026-01-01"
```

## eDiscovery
```powershell
Get-ComplianceCase | Format-List
Get-ComplianceSearch | Format-List
```

## Audit Commands
```powershell
Get-Mailbox -ResultSize Unlimited | Select DisplayName, AuditEnabled, AuditLogAgeLimit
Get-Mailbox | Where {$_.ForwardingSmtpAddress} | Select DisplayName, ForwardingSmtpAddress
```
