Forum Discussion

venkatkirankona's avatar
venkatkirankona
Brass Contributor
Dec 10, 2022
Solved

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...
  • koakd540's avatar
    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.

Resources