From the title, it is clear you will need to have a Microsoft Exchange Online account, so if you are a home user, then chances are this article is not for you, but at the same time, you can continue to read along in order to learn something new. Before going forward, we must point out that you must use Exchange Online PowerShell since, at this time, it is not possible to make the changes needed from within Outlook or Outlook on the web. It’s odd, but it is what it is, so until Microsoft makes some changes, we have to work with what is available.

Keep permanently deleted emails longer in Outlook

For whatever reason, you might want to keep deleted emails for a little bit longer, and this guide will aid in achieving that task. We will cover the following: 1] Select the correct permissions

First thing first, and that is to assign the permissions that makes sense for this specific issue. To do this, you must visit docs.microsoft.com and check the section, Recipient provisioning permissions, and assign the one listed below on your Exchange Online server. 2] Connect Windows PowerShell to Exchange Online

In order to make things work, we must first connect your Exchange Online server with Windows PowerShell. We can do this by launching PowerShell from your local computer, then copy and paste the following command: When the dialog box comes up, please type in your school, or work account, then your password, and click OK. The next step, then, is to copy and paste another command, and it goes like this, here:

Also, run this command after performing the previous: 3] Disconnect the remote PowerShell session After all of that is done, we suggest not closing Windows PowerShell outright, but instead disconnect it. You see, if you close the window, you could use up all the remote PowerShell sessions available to you, and you’ll need to wait for the sessions to expire. To disconnect the session, then, copy and paste the following command, then run it by hitting the Enter key: 4] Change how long permanently deleted items are kept Now its time to do what you came here to do in the first place, so please fire up Windows PowerShell again, and type the following command into the box and hit Enter: Bear in mind that this command is for a specific mailbox. Please remove Emily Maier and replace it with the name of your preferred mailbox. Furthermore, this command will set the deletion date to 30 days. As for making changes to all mailboxes, please copy and paste the following: OK, so that’s it and we are done. If you need more information visit Microsoft.com.