Quick tip:

If you want to change your Deleted Item Retention on your mailbox database, you can do so running a simple command in PowerShell using the Exchange Management Shell:

  • Set-MailboxDatabase -Identity “Mailbox Database Name” -DeletedItemRetention 30
Exchange 2019:- how do i open the exchange management shell on windows server 2019 core?

If you wanted to change a single mailbox, then you can run the following command in PowerShell:

  • Set-Mailbox -Identity “User1” -RetainDeletedItemsFor 30 -UseDatabaseRetentionDefaults $false
Exchange 2019:- how do i open the exchange management shell on windows server 2019 core?

Hope it helps.

    wpChatIcon

    Discover more from Everything-PowerShell

    Subscribe now to keep reading and get access to the full archive.

    Continue reading