<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>MailboxExport &#8211; Webbanshee</title>
	<atom:link href="https://webbanshee.net/tag/mailboxexport/feed/" rel="self" type="application/rss+xml" />
	<link>https://webbanshee.net</link>
	<description>Your Exchange Server Blog</description>
	<lastBuildDate>Thu, 28 Apr 2022 07:38:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://webbanshee.net/wp-content/uploads/2017/01/WB_BL_RND-150x150.png</url>
	<title>MailboxExport &#8211; Webbanshee</title>
	<link>https://webbanshee.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">122610384</site>	<item>
		<title>StalledDueToSource_DiskLatency Mailbox Export</title>
		<link>https://webbanshee.net/stalledduetosource_disklatency/</link>
					<comments>https://webbanshee.net/stalledduetosource_disklatency/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Sat, 05 Feb 2022 13:29:14 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailboxExport]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Throttling]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=4118</guid>

					<description><![CDATA[<style>.key{background:#444444;padding-left: 5px;padding-right: 5px;padding-top: 2px;padding-bottom: 2px;color:#fefefe;border-radius: 3px;font-size: 14px;}</style>
<p><a class="ex-link" href="https://webbanshee.net/stalledduetosource_disklatency/"><img style="width:200px; border-radius:8px;" src="https://webbanshee.net/wp-content/uploads/2022/01/StalledDueToSourceDiskLatency_10_saveas_final.svg"/><span class="exTeaser" style="width:70%;">Finish mailbox export requests that are StalledDueToSource_DiskLatency</span><br />
<span class="exText" style="width:70%;" >Yesterday I exported a 30GB Mailbox to our SFTP server. The request always stalled at the end. As a consequence, the export started to loop and the the export .pst was growing much bigger than the initial mailbox size<span style="font-size: 11px !Important; width: 10%; height: 5%; color: #993333; padding-left: 20px;">......read more</span></span></a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/stalledduetosource_disklatency/">StalledDueToSource_DiskLatency Mailbox Export</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<style>
.num{margin-top:2px!Important; margin-right:10px;} h2 {font-weight: bold;text-decoration:none;font-size: 20px!Important;} .see {overflow-x: scroll!Important; overflow-y: hidden;white-space:nowrap;} .wpe-box-note3 {color:#333;} .wp-svg-sun-3 {font-size:24px!Important;position:relative;top:5px;left:5px;}
</style>
<p>Hello fellow Exchange Admins, Yesterday I exported a 30GB Mailbox as a .pst file to our SFTP server. At about 90% the MailboxExportRequest stalled with StalledDueToSource_DiskLatency. </p>
<p>No other exports were running from the source server. I even disabled all scheduled tasks that could have an impact on the database where the mailbox is mounted. </p>
<p>However, the export request always switched to: <span style="font-weight:bold;">StalledDueToSource_DiskLatency</span></p>
<p>As a consequence, the export started to loop. It just created a new folder hierarchy and started to export the items again.</p>
<p>Therefore the export .pst was growing much bigger than the initial mailbox size. In other words, this can blow up your storage capacities if you have a large mailbox and leave the export overnight! Not to mention that the export is useless afterward.</p>
<p>In this post, I want to share how I worked around the StalledDueToSource_DiskLatency condition. </p>
<div class="wpe-box wpe-box-alert" style="background: #FBF4939C!Important; font-weight:bold;">
The solution requires that you have a DAG in place.
</div>
<p>Let&#8217;s start at the beginning:</p>
<div class="wpe-box wpe-box-note3" style="color:#232366;font-weight:bold;">
First, I started the Mailbox Export Request using the Priority switch with <span style="color:#993333;font-weight:bold;">Emergency</span>.<br />
So the export request is being prioritized over other jobs.</p>
<div class="wpe-box wpe-box-note see" style="color:#333;font-weight:bold;">
New-MailboxExportRequest -Mailbox <span style="color:#993333;font-weight:bold;">MailboxToExport</span> -Name <span style="color:#993333;font-weight:bold;">IndividualNameOfTheExportRequest</span> -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span> -BadItemLimit <span style="color:#993333;font-weight:bold;">0</span> -LargeItemLimit <span style="color:#993333;font-weight:bold;">0</span> -FilePath <span style="color:#993333;font-weight:bold;">&#8220;\\PathToExportLocation\NameOfExportedMailbox.pst&#8221;</span> -Priority <span style="color:#993333;font-weight:bold;">Emergency</span>
</div>
</div>
<div class="wpe-box wpe-box-note3" style="color:#232366;font-weight:bold;">
Once the export was running I monitored the request. The following CMDlet will show all relevant information:</p>
<div class="wpe-box wpe-box-note see" style="color:#333;font-weight:bold;">
Get-MailboxExportRequest <span style="color:#993333;font-weight:bold;">IndividualNameOfTheExportRequest</span> -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span>| Get-MailboxExportRequestStatistics <span style="color:#993333;font-weight:bold;">-IncludeReport</span> | select Report,MRSServerName,Name,SyncStage,Priority,LastFailure,FailureCode,FailureType,BadItemLimit,BadItemsEncountered,LargeItemLimit,LargeItemsEncountered,OverallDuration,Status,StatusDetail,EstimatedTransferSize,BytesTransferred,EstimatedTransferItemCount,ItemsTransferred,PercentComplete
</div>
</div>
<p>You can find more useful details on monitoring export requests here:</p>
<p><a class="wpe-button wpe-button-blue" href="https://webbanshee.net/export-mailbox-new-mailboxexportrequest/">Monitor Mailbox Exports</a><br />
<br />
The pain started whenever the export reached completion of 100%.<br />
The job was relinquished due to large delays and unfavorable server health on the source server-side.</p>
<p>As can be seen in the image below the export status stayed inProgress.<br />
While SyncStage was CopyingMessages and StatusDetail was StalledDueToSource_DiskLatency:</p>
<div class="wpe-box wpe-box-note3">
<a href="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-01.png"><img loading="lazy" src="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-01.png" alt="StalledDueToSource_Disklatency" width="481" height="259" class="aligncenter size-full wp-image-4207" srcset="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-01.png 481w, https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-01-300x162.png 300w" sizes="(max-width: 481px) 100vw, 481px" /></a>
</div>
<p>Therefore the export job was relinquished: </p>
<div class="wpe-box wpe-box-note3">
<a href="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-02.png"><img loading="lazy" src="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-02.png" alt="Relinquishing Job StalledDueToSource_Disklatency" width="1246" height="77" class="aligncenter size-full wp-image-4204" srcset="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-02.png 1246w, https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-02-300x19.png 300w, https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-02-1024x63.png 1024w, https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-02-768x47.png 768w" sizes="(max-width: 1246px) 100vw, 1246px" /></a>
</div>
<p>Eventually, the export started all over again. StatusDetail: CreatingFolderHerarchy:</p>
<div class="wpe-box wpe-box-note3">
<a href="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-03.png"><img loading="lazy" src="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-03.png" alt="Creating Folder Hierarchy" width="475" height="254" class="aligncenter size-full wp-image-4205" srcset="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-03.png 475w, https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-03-300x160.png 300w" sizes="(max-width: 475px) 100vw, 475px" /></a>
</div>
<p>Then PercentComplete was 10% again:</p>
<div class="wpe-box wpe-box-note3">
<a href="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-04.png"><img loading="lazy" src="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-04.png" alt="Copying Messages" width="480" height="253" class="aligncenter size-full wp-image-4206" srcset="https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-04.png 480w, https://webbanshee.net/wp-content/uploads/2022/04/StalledDueToSourceDiskLatency-04-300x158.png 300w" sizes="(max-width: 480px) 100vw, 480px" /></a>
</div>
<p>As a result, the size of the export PST grew much bigger than the initial mailbox size.</p>
<p>After all, the solution for me was to switch the mailbox database that hosts the mailbox to another copy within the DAG:</p>
<h2>Work around StalledDueToSource_DiskLatency</h2>
<div class="wpe-box wpe-box-note3" style="color:#232366;font-weight:bold;">
<h5>First, check which mailbox database hosts the mailbox you want to export:</h5>
<div class="wpe-box wpe-box-note" style="color:#333;font-weight:bold;">
Get-Mailbox -Identity <span style="color:#993333;font-weight:bold;">MailboxToExport</span> | select <span style="color:#993333;font-weight:bold;">PrimarySmtpAddress, ServerName, Database</span>
</div>
<p><span style="color:#232366;font-weight:bold;">ServerName shows the server where StalledDueToSource_DiskLatency originates from.</span>
</div>
<div class="wpe-box wpe-box-note3" style="color:#232366;font-weight:bold;">
<h5>Next, check to which servers the passive database copies are seeded:</h5>
<div class="wpe-box wpe-box-note" style="color:#333;font-weight:bold;">
Get-MailboxDatabaseCopyStatus -Identity <span style="color:#993333;font-weight:bold;">DatabaseName</span>
</div>
<p><span style="color:#232366;font-weight:bold;">The output lists the active mailbox database ( Status: Mounted ), the passive copies ( Status: Healthy ), and the lagged mailbox database copy. ( Status: Healthy with ReplayQueueLenghth greater than the others )</span>
</div>
<div class="wpe-box wpe-box-note3" style="color:#232366;font-weight:bold;">
<h5>Now switch the active mailbox database with Status: Mounted to one of the passive copies with Status: Healthy:</h5>
<div class="wpe-box wpe-box-error"<span style="color:#993333;font-weight:bold;">Note that you don&#8217;t switch it to the copy where the ReplayQueueLenghth is greater than on the other copies!</span></div>
<div class="wpe-box wpe-box-note see" style="color:#333;font-weight:bold;">
Move-ActiveMailboxDatabase <span style="color:#993333;font-weight:bold;">DatabaseName</span> -ActivateOnServer <span style="color:#993333;font-weight:bold;">OneOfTheServersFromTheOutputBefore</span>
</div>
<p><span style="color:#232366;font-weight:bold;">As has been noted before take care that you don&#8217;t try to activate the mailbox database on the server that hosts the lagged database copy!</span>
</div>
<p>After the database is switched to another server try to export the mailbox with a new export request.<br />
Given that the new server has no performance or disk issues the export should complete in a normal manner.</p>
<p>&nbsp;</p>
<div class="wpe-box wpe-box-alert" style="background: #FBF49361!Important; font-weight:bold;">
<span style="font-weight:bold;">One more thing:</span><br />
After I activated the mailbox database that hosts the mailbox on another server the ServerName did not change when querying the mailbox.</p>
<div class="wpe-box wpe-box-note3" style="color:#232366;font-weight:bold;">
Get-Mailbox -Identity MailboxToExport | select PrimarySmtpAddress, ServerName, Database
</div>
<p><span style="font-weight:bold;">The output of the command above will still show the old server under ServerName. But this is just visual. However, you can find a good explanation for that</span> <a style="color:#993333; font-weight:bold;" href="https://blog.rmilne.ca/2014/12/04/exchange-servername-points-to-wrong-or-decommissioned-server/" rel="noopener" target="_blank">here</a>.
</div>
<p>Have a nice day <span class="wp-svg-sun-3 sun-3"></span></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/stalledduetosource_disklatency/">StalledDueToSource_DiskLatency Mailbox Export</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/stalledduetosource_disklatency/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4118</post-id>	</item>
		<item>
		<title>Export Mailbox New-MailboxExportRequest</title>
		<link>https://webbanshee.net/export-mailbox-new-mailboxexportrequest/</link>
					<comments>https://webbanshee.net/export-mailbox-new-mailboxexportrequest/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Thu, 06 Jan 2022 14:21:06 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailboxExport]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=4149</guid>

					<description><![CDATA[<style>.key{background:#444444;padding-left: 5px;padding-right: 5px;padding-top: 2px;padding-bottom: 2px;color:#fefefe;border-radius: 3px;font-size: 14px;}</style>
<p><a class="ex-link" href="https://webbanshee.net/export-mailbox-new-mailboxexportrequest/"><img style="border-radius:8px;" src="https://webbanshee.net/wp-content/uploads/2022/03/NewMailboxExportRequest.svg"/><span class="exTeaser" style="width:70%;">Export a mailbox and monitor the export request</span><br />
<span class="exText" style="width:70%;" >Find a detailed description of how to export a mailbox with New-MailboxExportRequest and monitor the export request in this post. Get-MailboxExportRequestStatistics are explained as well.<span style="font-size: 11px !Important; width: 10%; height: 5%; color: #993333; padding-left: 20px;">......read more</span></span></a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/export-mailbox-new-mailboxexportrequest/">Export Mailbox New-MailboxExportRequest</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<style>
.num{margin-top:2px!Important; margin-right:10px;} h2 {font-weight: bold;text-decoration:none;font-size: 20px!Important;} .see {overflow-x: scroll!Important; overflow-y: hidden;white-space:nowrap;} .wpe-box-note3 {color:#333;}
</style>
<p>Hello folks, Today I would like to share my experience so far on how to export a mailbox with New-MailboxExportRequest. There are a couple of parameters to query to get useful information about the status of an export request.</p>
<p>As long as everything goes smooth you will probably just need the percentage information. But when the New-MailboxExportRequest stalls or stops with an error you will be happy to have some additional parameters to query at your disposal.</p>
<p>So let&#8217;s get to the point straight away:</p>
<h2>Start to export a mailbox with New-MailboxExportRequest:</h2>
<div class="wpe-box wpe-box-note3">
<div class="wpe-box wpe-box-note see" style="color:#232366;font-weight:bold;">
New-MailboxExportRequest -Mailbox <span style="color:#993333;font-weight:bold;">MailboxName</span> -Name <span style="color:#993333;font-weight:bold;">ExportRequestName</span> -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span> -BadItemLimit <span style="color:#993333;font-weight:bold;">0</span> -LargeItemLimit <span style="color:#993333;font-weight:bold;">0</span> -FilePath <span style="color:#993333;font-weight:bold;">&#8220;\\ServerName\ExportLocationFolder\MailboxName.pst&#8221;</span> -Priority <span style="color:#993333;font-weight:bold;">Emergency</span>
</div>
<p><span style="color:#232366;font-weight:bold;">Use the -Priority switch with Emergency to prevent stalling!</span>
</div>
<h4>After you have started the export request check the progress:</h4>
<div class="wpe-box wpe-box-note3">
<div class="wpe-box wpe-box-note see" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest <span style="color:#993333;font-weight:bold;">-Name ExportRequestName</span> -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span> | Get-MailboxExportRequestStatistics <span style="color:#993333;font-weight:bold;">-IncludeReport</span> | select <span style="color:#993333;font-weight:bold;">Report, name,Priority, FailureCode, FailureType,DiagnosticInfo,BadItemLimit,BadItemsEncountered,LargeItemLimit,LargeItemsEncountered, OverallDuration, Status, StatusDetail,EstimatedTransferSize,BytesTransferred, EstimatedTransferItemCount, ItemsTransferred,PercentComplete</span>
</div>
<p><span style="color:#232366;font-weight:bold;">As a result, you will get the values of the selected parameters.</span><br />
<span style="color:#232366;font-weight:bold;">Adjust the selected parameters if the output gets too long or intransparent.</span><br />
<span style="color:#232366;font-weight:bold;">For example remove <span style="color:#993333;font-weight:bold;">-IncludeReport</span></span></p>
<p><span style="color:#232366;font-weight:bold;">You can find a description of the selected parameters below.</span>
</div>
<h4>First, a short info on the <span style="color:#993333;font-weight:bold;">-IncludeReport</span> switch:<span style="color:#993333;font-weight:bold;"></h4>
<div class="wpe-box wpe-box-note3" style="color:#232366;font-weight:bold;">
When this switch is used in accordance with select Report the ouptut looks like this:</p>
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
<a href="https://webbanshee.net/wp-content/uploads/2022/03/IncludeReport.jpg"><img loading="lazy" src="https://webbanshee.net/wp-content/uploads/2022/03/IncludeReport.jpg" alt="New-MailboxExportRequest -IncludeReport" width="1128" height="683" class="aligncenter size-full wp-image-4162" srcset="https://webbanshee.net/wp-content/uploads/2022/03/IncludeReport.jpg 1128w, https://webbanshee.net/wp-content/uploads/2022/03/IncludeReport-300x182.jpg 300w, https://webbanshee.net/wp-content/uploads/2022/03/IncludeReport-1024x620.jpg 1024w, https://webbanshee.net/wp-content/uploads/2022/03/IncludeReport-768x465.jpg 768w" sizes="(max-width: 1128px) 100vw, 1128px" /></a><br />
The output displays the currently processed items. Depending on the mailbox size the output can get much longer. Below the report, the output of other parameters you have selected is displayed.
</div>
</div>

<h4>New-MailboxExportRequest relevant infos that can be selected:</h4>
<div class="wpe-box wpe-box-note3">
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">Report:</span> Displays the whole export request history when used with the <span style="color:#993333;font-weight:bold;">-IncludeReport</span> switch. Skipped items based on bad or large items limits are also displayed.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">Name:</span> The individual name of the mailbox export request.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">Priority:</span>  Possible values are Lower, Low, Normal (This is the default value), High, Higher, Highest, Emergency [Use the highest priority to prevent stalling. I usually use Emergency]</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">FailureCode:</span> Displays the failure code [ not really useful unless you find a list of failure codes for export requests. I couldn&#8217;t find one.]</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">FailureType:</span> Description of the failure that stopped the mailbox export request.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">DiagnosticInfo:</span> This needs to be used with the <span style="color:#993333;font-weight:bold;">-Diagnostic</span> switch when selected to display diagnostic information. Among others, you will be able to see job pickup results and timestamps.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">BadItemLimit:</span> The max. amount of inconsistent items that will be skipped and will not be exported. When this limit is reached the export will fail. A BadItemLimit greater than 50 requires the <span style="color:#993333;font-weight:bold;">-AcceptLargeDataLoss</span> switch.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">BadItemsEncountered:</span> Number of bad items found during the export.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">LargeItemLimit:</span> The max. amount of items in the mailbox that exceeds the allowed message size. The default value is 0. A value higher than 50 requires the <span style="color:#993333;font-weight:bold;">-AcceptLargeDataLoss</span> switch. (not recommended)</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">LargeItemsEcountered:</span> Number of large items found during the export.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">OverallDuration:</span> Duration of the mailbox export. Includes times of stalling as well.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">Status:</span> The current state of the export. Relevant values are inProgress, Queued, Completed, Failed, Suspended.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">StatusDetail:</span> Displays additional information on some states.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">EstimatedTransferSize:</span> Estimates and displays the amount of the exported data.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">BytesTransferred:</span> Displays the amount of data that has been really transferred. This usually differs from the EstimatedTransferSize.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">EstimatedTransferItemCount:</span> Estimates and displays the number of items that will be transferred.</span><br />
<span style="display:inline-block;margin-bottom:10px;font-weight:bold;"><span style="color:#993333;font-weight:bold;">ItemsTransferred:</span> Displays the number of items that have been transferred. Can differ from EstimatedTransferItemCount. ( Among others depending on encountered bad or large items and the associated limits )</span><br />
<span style="color:#993333;font-weight:bold;">PercentComplete:</span> The progress of the export request in percent.
</div>
<p><span style="color:#232366;">See the standard reference to Get-MailboxExportRequest by Microsoft</span> <a style="font-weight:bold;color:#232366;" href="https://docs.microsoft.com/en-us/powershell/module/exchange/get-mailboxexportrequest?view=exchange-ps" rel="noopener" target="_blank">here</a>.<br />
<span style="color:#232366;">Find more to Get-MailboxExportRequestStatistics by Microsoft under <a style="font-weight:bold;color:#232366;" href="https://docs.microsoft.com/en-us/powershell/module/exchange/get-mailboxexportrequeststatistics?view=exchange-ps" rel="noopener" target="_blank">this link</a>.</span>
</div>
<h2>Modify parameters of a mailbox export request:</h2>
<p>To modify the parameters of an existing mailbox export request you will need to suspend the request first. This can be useful when you retrospectively want to change the BadItemnLimit or want to raise the priority.</p>
<h4>Suspend the mailbox export request:</h4>
<div class="wpe-box wpe-box-note3">
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -Name <span style="color:#993333;font-weight:bold;">ExportRequestName</span> | Suspend-MailboxExportRequest
</div>
<p><span style="color:#232366; font-weight:bold;">In case you want to suspend all mailbox exports of the same batch:</span></p>
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span> | Suspend-MailboxExportRequest
</div>
</div>
<h4>Now change the parameters [Example: <span style="color:#993333;font-weight:bold;">BadItemLimit</span>]</h4>
<div class="wpe-box wpe-box-note3">
<div class="wpe-box wpe-box-note see" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -Name <span style="color:#993333;font-weight:bold;">ExportRequestName</span> | Set-MailboxExportRequest <span style="color:#993333;font-weight:bold;">-BadItemLimit 25</span>
</div>
<p><span style="color:#232366; font-weight:bold;">In order to change all export requests of the same batch:</span></p>
<div class="wpe-box wpe-box-note see" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span> | Set-MailboxExportRequest <span style="color:#993333;font-weight:bold;">-BadItemLimit 25</span>
</div>
</div>

<h4>Resume the mailbox export request:</h4>
<div class="wpe-box wpe-box-note3">
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -Name <span style="color:#993333;font-weight:bold;">ExportRequestName</span> | Resume-MailboxExportRequest
</div>
<p><span style="color:#232366; font-weight:bold;">In case you want to resume all mailbox exports of the same batch:</span></p>
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span> | Resume-MailboxExportRequest
</div>
</div>
<div class="wpe-box wpe-box-alert" style="background: #F9F6D9!Important;">
<span style="font-weight:bold;color:#993333;">Note:</span><br />
<span style="font-weight:bold;">Modifying the BadItemLimit value makes sense when you have started the export with a low BadItemLimit ( for exmaple 5 ). While monitoring the export you assume that there will be more bad item than you have specified.</span></p>
<p><span style="font-weight:bold;">Another case would be when the export fails because the BadItemLimit threshold has been reached. In that case, you can modify the BadItemLimit after the export failed and resume the export. Suspend is not needed here as it has already failed. To be honest I usually trigger a New-MailboxExportRequest when this happens because I don&#8217;t trust the resume. I am not 100 percent sure that the resume picks up where it stopped and I want to prevent duplicated items. But if you trust the resume process more than me give it a try.</span>
</div>
<h2>Remove-MailboxExportRequest</h2>
<p>Here are two arguments to remove mailbox export requests you don&#8217;t need anymore:</p>
<ul>
<li>To export a mailbox with New-MailboxExportRequest with the same request name.</li>
<li>Further, do some housekeeping and keep your environment clean and transparent.</li>
</ul>
<div class="wpe-box wpe-box-note3" style="margin-top:25px;">
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -Name <span style="color:#993333;font-weight:bold;">ExportRequestName</span> | Remove-MailboxExportRequest
</div>
<p><span style="color:#232366; font-weight:bold;">In case you want to remove all mailbox exports of the same batch:</span></p>
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest -BatchName <span style="color:#993333;font-weight:bold;">BatchName</span> | Remove-MailboxExportRequest
</div>
<p><span style="color:#232366; font-weight:bold;">In order to remove all mailbox export requests:</span></p>
<div class="wpe-box wpe-box-note" style="color:#232366;font-weight:bold;">
Get-MailboxExportRequest | Remove-MailboxExportRequest
</div>
</div>
<div class="wpe-box wpe-box-alert" style="background: #F9F6D9!Important;">
<span style="font-weight:bold;color:#993333;">Final remark:</span><br />
<span style="font-weight:bold;color:#232366">Get-mailboxExportRequest vs. Get-MailboxExportRequestStatistics:</span><br />
<span style="font-weight:bold;color:#232366">Whenever an export request got stalled and I monitored the request with Get-MailboxExportRequest it showed me InProgress as the current state.</span></p>
<p><span style="font-weight:bold;color:#232366">Only <span style="color:#993333;font-weight:bold;">Get-mailboxExportRequest | Get-MailboxExportRequestStatistics</span> showed me the real status.</span><br />
<span style="font-weight:bold;color:#232366">It seems regarding the state of the export Get-mailboxExportRequest is not as much reliable as Get-MailboxExportRequestStatistics.</span><br />
<span style="font-weight:bold;color:#232366">For this reason I always use Get-MailboxExportRequestStatistics when I export a mailbox with New-MailboxExportRequest.</span>
</div>
<p>Have a nice day!</p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/export-mailbox-new-mailboxexportrequest/">Export Mailbox New-MailboxExportRequest</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/export-mailbox-new-mailboxexportrequest/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4149</post-id>	</item>
		<item>
		<title>O365 PST Export</title>
		<link>https://webbanshee.net/o365-pst-export/</link>
					<comments>https://webbanshee.net/o365-pst-export/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Mon, 07 Jan 2019 18:03:37 +0000</pubDate>
				<category><![CDATA[Clientside]]></category>
		<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailboxExport]]></category>
		<category><![CDATA[MailboxImport]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[O365]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">http://webbanshee.net/?p=2032</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/o365-pst-export/"><img src="https://webbanshee.net/wp-content/uploads/2019/01/O365ExportPST.gif" /><span class="exTeaser">At the end of the last year we had a request from an existing customer to export the content of a few mailboxes they had hosted on O365 servers.</span><br />
<span class="exText">In this O365 PST Export post I would like to share what we have learned and the most appropriate solution in our case. Read the whole experience here ...<span style="font-size: 11px !Important; width: 10%; height: 5%; color: #993333; padding-left: 20px;">...read more</span></span><br />
</a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/o365-pst-export/">O365 PST Export</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<style type="text/css">.wpe-box-note {overflow-x: auto; white-space: nowrap;}.solution {display: inline;font-size: 12px; background-color: #abebc6; margin-top: -4px; margin-left:6px; padding: 1px 5px 2px 5px;vertical-align:top; border-radius: 2px;}.learned {display: inline;font-size: 12px; background-color:  #fadbd8 ; margin-top: -4px; margin-left:6px; padding: 1px 5px 2px 5px;vertical-align:top; border-radius: 2px;}.number {margin-top: 2px !Important; padding-right: 5px; }</style>
<p>At the end of the last year we had a request from an existing customer to export the content of a few mailboxes they had hosted on O365 servers. In this O365 PST Export post I would like to share what we have learned and the most appropriate solution in our case.<br />
The customer did not want to get technically involved into this migration. We specified the parameters for the exports and they gave us an admin account for their O365 tenant.</p>
<p>First I would like to point out that the solution or workaround we have used here is only appropriate for a smaller number of mailboxes, since manual interaction is needed.</p>
<p>The whole experience :</p>
<h4><img class="alignnone size-full wp-image-2045 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_1.svg" alt="1-" /> Prepare an account on source side with FullAccess to all mailboxes <span class="solution">Solution</span></h4>
<p>We have created a migration user in O365 with mailbox and granted FullAccess permission on all mailboxes in the customers O365 tenant.<br />
It is faster to do this via remote-powershell. Connect and enter your credentials :</p>
<div class="wpe-box wpe-box-note"><span style="color: #cc6600;">$Credential = Get-Credential</span><br />
<span style="color: #cc6600;">$ExchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://outlook.office365.com/powershell-liveid” -Credential $credential -Authentication “Basic” -AllowRedirection</span><br />
<span style="color: #cc6600;">Import-PSSession $ExchangeSession</span></div>
<p>Once logged in grant FullAccess on all mailboxes to the migration user without Automapping.<br />
Do not activate Automapping  because we will use Outlook for a proper O365 pst export.</p>
<div class="wpe-box wpe-box-note">Get-Mailbox | Add-MailboxPermission -User <span style="color: #993333;">migrationuser@customerdomain.com</span> -Accessrights <span style="color: #993333;">FullAccess</span> -InheritanceType <span style="color: #993333;">All</span> -Automapping <span style="color: #993333;">$False</span></div>
<h4><img class="alignnone size-full wp-image-2051 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_2.svg" alt="2-" />O365 pst export via GUI<span class="learned">Learned</span></h4>
<p>To bring it straight to the point. The outcome of this method didn&#8217;t fit our needs in any way. An eDisocvery will be performed and the results will be available for download in .pst format.<br />
Unfortunately these .pst files have a folder structure beginning with the mailboxname , one level down you find ( in our case ) an ApplicationDataRoot  folder and the Top Of Information Store folder. The real mailbox structure begins here :</p>
<p>It would be confusing to anyyone to adapt these folder structures on the target mailboxes.</p>
<div style="display: block; width: 100%;">
<div class="wpe-col wpe-col-12-12">
<div class="wpe-col-1">
<div class="wpe-box wpe-box-note">
<p><a href="https://webbanshee.net/wp-content/uploads/2019/01/O365_PST.png"><img loading="lazy" class="aligncenter wp-image-2063 size-medium" src="https://webbanshee.net/wp-content/uploads/2019/01/O365_PST-246x300.png" alt="O365 PST Export" width="246" height="300" srcset="https://webbanshee.net/wp-content/uploads/2019/01/O365_PST-246x300.png 246w, https://webbanshee.net/wp-content/uploads/2019/01/O365_PST.png 296w" sizes="(max-width: 246px) 100vw, 246px" /></a></p>
</div>
</div>
<div class="wpe-col-2">
<div style="margin-top: 20px;"></div>
</div>
</div>
</div>
<p>Since this method did not provide a real solution I will not go into details on how to make an O365 pst export via GUI.</p>
<h4><img class="alignnone size-medium wp-image-2050 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_3.svg" alt="3 -" />Connect migration mailbox via Outlook and export mailboxes <span class="solution">Solution</span></h4>
<p>This step is the main part of the solution and why I mentioned at the beginning that it is only suitable for few .pst exports. We have connected the mailbox of the migration user via autodiscover and an Outlook 2016 client. This was the host for the evening <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The next step was to disable Cached Mode. Outlook should be in online mode to prevent data loss through synchronization issues. This is also the cause for disabling Automapping. Outlook limits the auto mapped delegate mailboxes to 10 ( we had over 20 ). Further would Outlook have been overwhelmed with so many shared mailboxes in online mode.</p>
<p>After this we manually mapped the 1st mailbox to export ( Online Mode ! Important ! ) within the profile of the migration user. You can check the folder sizes on the server via right click on the root of the mapped mailbox &gt; Outlook Datafile Properties.  Depending on the size of the source mailbox the O365 pst export can take an extended amount of time. The O365 server provided a good performance in download speeds but some mailboxes were about 18 GB.<br />
We have experienced 2 or 3 connection losses to the O365 server at our first test. The final migration took place on a weekend. There were no further problems then.</p>
<p>Export the O365 mailbox via Outlook to a pst file :</p>
<div class="wpe-box wpe-box-note">
<p style="text-align: center;"><a href="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_01.png"><img loading="lazy" class="aligncenter wp-image-2066 size-medium" src="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_01-300x226.png" alt="O365 PST Export" width="300" height="226" srcset="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_01-300x226.png 300w, https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_01.png 476w" sizes="(max-width: 300px) 100vw, 300px" /></a><img loading="lazy" class="aligncenter wp-image-2069 size-medium" src="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_02-300x232.png" alt="O365 PST Export" width="300" height="232" srcset="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_02-300x232.png 300w, https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_02.png 437w" sizes="(max-width: 300px) 100vw, 300px" /><a href="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_03.png"><img loading="lazy" class="aligncenter wp-image-2070 size-medium" src="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_03-300x233.png" alt="O365 PST Export" width="300" height="233" srcset="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_03-300x233.png 300w, https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_03.png 437w" sizes="(max-width: 300px) 100vw, 300px" /></a><a href="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_4.png"><img loading="lazy" class="aligncenter wp-image-2071 size-medium" src="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_4-300x231.png" alt="O365 PST Export" width="300" height="231" srcset="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_4-300x231.png 300w, https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_4.png 429w" sizes="(max-width: 300px) 100vw, 300px" /></a><br />
Choose how to handle duplicates.<br />
Allow duplicate items is the best choice to avoid data loss</p>
<p><a href="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_05.png"><img loading="lazy" class="aligncenter wp-image-2072 size-medium" src="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_05-300x226.png" alt="O365 PST Export" width="300" height="226" srcset="https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_05-300x226.png 300w, https://webbanshee.net/wp-content/uploads/2019/01/Outlook_PST_Export_05.png 438w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
</div>
<h4><img class="alignnone size-medium wp-image-2049 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_4.svg" alt="4-" />Additionally Export Calendar as PST<span class="solution">Solution</span><span class="learned">Learned</span></h4>
<p>In our tests we noticed that after an O365 pst export has been imported into the new target mailbox , there were no calendar entries. When querying the import request statistics with -includereport it turns out that all calendar entries have been treated as corrupted items. ( which counts against the bad item limit ). So the mailbox-importrequest needs to be triggered with a high bad item limit and -AcceptLargeDataLoss  or the calendar needs to be excluded from the import request.</p>
<p>To only export the calendar repeat the steps shown in the screenshots under point 3. Choose only the the calendar instead of the whole mailbox. When the calendar has sub folders ( what most likely is the case ) keep &#8220;Include subfolders&#8221; ticked.<br />
We made these exports available for download to to the customer. End users were then able to map only the small calendar pst into their Outlook Client and drag the relevant items into their new mailbox calendar.</p>
<h4><img class="alignnone size-medium wp-image-2056 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_5.svg" alt="5 -" />Import the O365 PST export to the target mailbox <span class="solution">Solution</span></h4>
<p>In compliance with the customer we have chosen to raise the bad limit in the mailbox-importrequest. The detailed import logs were provided to the customer as well. We use the -Priority Emergency switch to prevent an import request from <a href="https://webbanshee.net/stalled-move-request/" target="_blank" rel="noopener noreferrer"><strong>stalling like described here</strong></a></p>
<div class="wpe-box wpe-box-note">
<p>New-MailboxImportRequest -Name <span style="color: #993333;">IndivudalMailboxName</span> -BatchName <span style="color: #993333;">NameOfTheBatch</span> -FilePath <span style="color: #993333;">\\Server\Folder\NameOfPST.pst</span> -Mailbox <span style="color: #993333;">TargetMailbox</span> -BadItemLimit <span style="color: #993333;">10000</span> -LargeItemLimit <span style="color: #993333;">10000</span> -AcceptLargeDataloss -priority <span style="color: #993333;">Emergency</span></p>
</div>
<p>Track the import request with :</p>
<div class="wpe-box wpe-box-note">
<p>Get-MailboxImportRequest -name <span style="color: #993333;">IndivudalMailboxName</span> | Get-MailboxImportRequestStatistics <span style="color: #993333;">-IncludeReport</span> | fl<span style="color: #993333;"> report, *transfer*, bad*, *status*,percent*, *failure*</span></p>
</div>
<p>Copy the full report to the clipboard so that you can insert it into a text file :</p>
<div class="wpe-box wpe-box-note">
<p>Get-MailboxImportRequest -name <span style="color: #993333;">IndivudalMailboxName</span> | Get-MailboxImportRequestStatistics <span style="color: #993333;">-IncludeReport</span> | fl | <span style="color: #993333;">clip</span></p>
</div>

<h4><img class="alignnone size-medium wp-image-2055 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_6.svg" alt="6 -" />Export and Import the next mailbox<span class="solution">Solution</span></h4>
<p>Close the mailbox &#8211; you just have exported and imported &#8211; in Outlook and map the next mailbox into the profile of the migration user. Repeat steps <img class="alignnone size-medium wp-image-2050 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_3.svg" alt="3 -" />to <img class="alignnone size-medium wp-image-2056 number" src="https://webbanshee.net/wp-content/uploads/2019/01/round_5.svg" alt="5 -" /></p>
<p>I hope this helps should you face the same problem with an O365 pst export.<br />
If you know a more efficient way , where the effort fits the benefit , it would be nice to hear it. I know this is not the most elegant way to do this. But there was no other choice for this small quantity of mailboxes.</p>
<p>Have a nice day !</p>
<p><a class="wpe-button wpe-button-red" href="https://webbanshee.net/mailbox-import-request-language/">See how to import mailbox content with language settings</a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/o365-pst-export/">O365 PST Export</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/o365-pst-export/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2032</post-id>	</item>
		<item>
		<title>Cannot remove MailboxExportRequests</title>
		<link>https://webbanshee.net/cannot-remove-mailboxexportrequests/</link>
					<comments>https://webbanshee.net/cannot-remove-mailboxexportrequests/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Tue, 30 Jan 2018 10:42:45 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailboxExport]]></category>
		<guid isPermaLink="false">http://webbanshee.net/?p=1583</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/cannot-remove-mailboxexportrequests/"><img src="https://webbanshee.net/wp-content/uploads/2018/01/RemoveExportRequests.svg" /><span class="exTeaser">Already triggered MailboxExportRequests cannot be deleted with piping the common powershell syntax Remove-MailboxExportRequest.</span><br />
<span class="exText">We saw this problem first after we had CU6 in place.<span class="exreadmore">...read more<br />
</span></a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/cannot-remove-mailboxexportrequests/">Cannot remove MailboxExportRequests</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>How to remove MailboxExportRequests after you get an error <strong>Value cannot be null</strong>.</p>
<p>This will be a short one <img alt="Cannot remove MailboxExportRequests" src="https://webbanshee.net/wp-content/plugins/wp-edit/plugins/emoticons/img/smiley-wink.gif" /></p>
<p>Here we go :</p>
<div style="margin-top: 50px; margin-bottom: 20px;"><span style="text-decoration: underline;"><strong>Scenario  :</strong></span></div>
<p>Already triggered MailboxExportRequests cannot be removed with piping the common powershell syntax Remove-MailboxExportRequest.</p>
<p>We saw this problem first after we had CU6 in place.</p>
<p>When you try to remove MailboxExportRequests with the following command you get the error below as a result :</p>
<div class="wpe-box wpe-box-note">
<p>Get-MailboxExportRequest -Status <span style="color: #993333;">(Whatever you need: Completed, Failed, Suspended, InProgress)</span> | Remove-MailboxExportRequest</p>
</div>
<div class="wpe-box wpe-box-alert" style="border: #181818 1px solid; background-color: #0d316b; fon-family: monospace;">
<p><span style="color: #ff9900;">WARNING: An unexpected error has occurred and a Watson dump is being generated: Value cannot be null.</span><br />
<span style="color: #ff9900;"> Parameter name: index</span><br />
<span style="color: #fa3e3e;">Remove-MailboxExportRequest : Value cannot be null.</span></p>
</div>
<p><span style="text-decoration: underline;"><strong>Solution :</strong></span></p>
<p>Pipe the Remove-MailboxExportRequest command as follows :</p>
<div class="wpe-box wpe-box-note">
<p>Get-MailboxExportRequest -Status <span style="color: #b50505;">completed</span> | %{Remove-MailboxExportRequest $_.RequestGuid -Confirm:$false}</p>
</div>
<p>Change -Status to <span style="color: #b50505;">Queued</span> to remove queued MailboxExportRequests<br />
&#8230; or change the -Status switch to your needs.</p>
<p>Leave the -Status switch away to remove all MailboxExportRequests</p>
<p>&nbsp;</p>
<p><span style="display: inline-block; font-size: 14px; background-color: #66ff99; color: #333; border: 0px solid #eee; padding: 1px 5px; border-radius: 3px;">Update:</span></p>
<p>After installing Exchange 2016 CU8 the classic way to remove  MailboxExportRequests seems to work again.</p>
<div class="wpe-box wpe-box-note">
<p>Get-MailboxExportRequest -Status <span style="color: #993333;">(Whatever you need: Completed, Failed, Suspended, InProgress)</span> | Remove-MailboxExportRequest</p>
</div>
<p>That&#8217;s it !</p>
<p>Have a nice day <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/cannot-remove-mailboxexportrequests/">Cannot remove MailboxExportRequests</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/cannot-remove-mailboxexportrequests/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1583</post-id>	</item>
	</channel>
</rss>
