> ## Content Index
> Fetch the complete content index at: https://www.techielass.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Retention Policy PowerShell Commands
- URL: https://www.techielass.com/retention-policy-powershell-commands/
- Published: 2016-05-01T06:00:00.000Z
- Updated: 2021-03-18T19:45:12.000Z
- Description: PowerShell queries to understand who has retention policies applied to their mailbox or not.
- Author: Sarah Lean
- Tags: PowerShell

I've recently been working on applying retention policies to mailboxes and we've been doing a granular roll-out to the users. I've been using some Powershell commands to track who has the policy applied and who hasn't.

The following command will list all users who have a retention policy applied to their mailbox:

You can export that to a CSV if need be by using:

To identify which users don't have a retention policy applied to their mailbox the following command will assist:

Again to export that to CSV you would use: