How to get retention policy on a soft-deleted mailbox via Powershell
We have thousands of users who’s mailboxes are soft-deleted/inactive since 2024. I’m trying to confirm which policy is responsible for this as the default is 30 days after an account is deleted.
Trying to read up on the MS documentation is confusing, but I can get the mailbox, get our purview policies, legacy exchange policies etc but I can’t tell how to put them together to get what’s applied to a specific mailbox.