How to check mailbox retention policy with powershell

Albert Gostick 91 Reputation points

I have configured a new retention policy in O365 and applied it to user mailboxes. I wanted to be able to use Powershell to list the retention policy for each user to make sure I did not miss any.

Not having fun with powershell - what modules would I need to install and what would the commandlet be to run to show the retention policy on each mailbox. I don't use powershell a lot and each article I look up seems to take me down a dead end.


Not Monitored
Not Monitored
Tag not monitored by Microsoft.
27,141 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,226 Reputation points


    Q&A currently supports the products listed over here (more to be added later on).

    For Exchange Online you can use the following PowerShell modules:

    For an Exchange Server hosted in Azure, you can use the following PowerShell module:

    You can also reach out to more experts in the dedicated Office 365 forum over here:

    (Please don't forget to accept helpful replies as answer)

    Best regards,

1 additional answer

Sort by: Most helpful
  1. Dave Patrick 353.7K Reputation points MVP

    Something here may help.

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.