<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2529 " id="quads-ad2529" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
<h1>The Story</h1>
<p>During a project of Hybrid migration from Exchange on-premises to Exchange online, I was almost about to finalize the project by moving the last remaining users mailboxes however had an interesting issue to deal with where a user was failing with the following error:</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2530 " id="quads-ad2530" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2525 " id="quads-ad2525" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2523 " id="quads-ad2523" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<h3>The Error after migration:</h3>
<p>Error: MigrationPermanentException: Mailbox dumpster size 50.87 GB (54,620,074,576 bytes) exceeds target quota 30 GB &#8211;>; Mailbox dumpster size 50.87 GB exceeds target quota.</p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2019/12/image-3.png"><img style="margin: 0px; display: inline; background-image: none;" title="image" src="https://www.moh10ly.com/wp-content/uploads/2019/12/image_thumb-3.png" alt="image" width="1002" height="570" border="0" /></a> 

<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2526 " id="quads-ad2526" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 
</p>
<p>After some research it turned out that you can clean the dumpster using search-mailbox PowerShell cmdlet, Sync the user’s object with ADConnect and then continue the migration from the last failure.</p>
<p>To solve the issue, Go on your Exchange on-premises and launch Exchange Management shell</p>
<h3>Solution applied:</h3>
<p>First, Let’s see the user’s dumpster and recoverable items</p>
<p>Get-MailboxFolderStatistics -Identity &#8220;User&#8221; -FolderScope RecoverableItems | Format-Table Name,FolderPath,ItemsInFolder,FolderAndSubfolderSize</p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2019/12/image-4.png"><img style="margin: 0px; display: inline; background-image: none;" title="image" src="https://www.moh10ly.com/wp-content/uploads/2019/12/image_thumb-4.png" alt="image" width="868" height="124" border="0" /></a></p>
<p>To Delete the dumpster only use this</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2527 " id="quads-ad2527" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<h3>Delete dumpster only</h3>
<p>Search-mailbox -identity User -SearchDumpsterOnly –DeleteContent</p>
<p>To delete a certain email with certain subject in the dumpster use the following:</p>
<p>Get-mailbox &#8220;user&#8221;| search-mailbox –searchquery &#8220;Subject:&#8217;*'&#8221; –DeleteContent –SearchDumpsterOnly</p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2019/12/image-5.png"><img style="margin: 0px; display: inline; background-image: none;" title="image" src="https://www.moh10ly.com/wp-content/uploads/2019/12/image_thumb-5.png" alt="image" width="714" height="146" border="0" /></a></p>
<p>The cmdlet will search and delete</p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2019/12/clip_image001-2.png"><img style="margin: 0px; display: inline; background-image: none;" title="clip_image001" src="https://www.moh10ly.com/wp-content/uploads/2019/12/clip_image001_thumb-2.png" alt="clip_image001" width="865" height="157" border="0" /></a></p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2019/12/image-6.png"><img style="margin: 0px; display: inline; background-image: none;" title="image" src="https://www.moh10ly.com/wp-content/uploads/2019/12/image_thumb-6.png" alt="image" width="1150" height="606" border="0" /></a></p>
<p>Reference:</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2522 " id="quads-ad2522" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<p><a href="https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messagesadmin-help">https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messagesadmin-help</a></p>

<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2528 " id="quads-ad2528" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…
View Comments
Legend thanks, this was doing my head in!!!