Forum Discussion
venkatkirankona
Dec 10, 2022Brass Contributor
How to clear the Discovery Holds folder
To find whether this discovery holds folder is completely full, use the below-mentioned command. Step 1: Connect-ExchangeOnline and then, Step 2: Get-MailboxFolderStatistics -Identity us...
- May 23, 2023
Great post, thank you. This helped me when both RecoveryItems and DiscoveryHolds were full. We had a lot of retention policies, so using this command excluded them from all polices:
Get-RetentionCompliancePolicy | foreach {Set-RetentionCompliancePolicy -identity $_.name -AddExchangeLocationException <user>}
Also, it can take a lot more than a few minutes if the mailbox has a lot of items (in my case, 100GB). It's going very slow for me, maybe 1GB every hour or two.
JoseOrne
Jan 30, 2024Copper Contributor
Thank you so much for this info. This worked for the issue we were having, my question would be how do I undo the changes to the affected mailbox? I'm talking about the settings like Set-RetentionCompliancePolicy -Identity "Compliance Retention Policy Name" -AddExchangeLocationException user and the -retaindeleteditemsfor settings.
venkatkirankona
Feb 05, 2024Brass Contributor
We can remove the same excluded ones by using commands else by going to the compliance portal to the "retention policy".