<?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>2013 &#8211; Webbanshee</title>
	<atom:link href="https://webbanshee.net/tag/2013/feed/" rel="self" type="application/rss+xml" />
	<link>https://webbanshee.net</link>
	<description>Your Exchange Server Blog</description>
	<lastBuildDate>Thu, 28 Apr 2022 07:43:07 +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>2013 &#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>Mailbox Locked Mailbox Move Issue</title>
		<link>https://webbanshee.net/mailbox-locked-mailbox-move/</link>
					<comments>https://webbanshee.net/mailbox-locked-mailbox-move/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Tue, 25 May 2021 07:58:02 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailboxMove]]></category>
		<category><![CDATA[Migration]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=3970</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/mailbox-locked-mailbox-move/"><img style="border-radius:8px;" src="https://webbanshee.net/wp-content/uploads/2021/05/MailboxLocked_WB_net.svg"/><span class="exTeaser" style="width:70%;">Cannot move mailbox. Mailbox locked message appears: </span><br />
<span class="exText" style="width:70%;" >Informational: The request has been paused temporarily because the mailbox is locked. The Microsoft Exchange Mailbox Replication service will attempt to continue processing the request ...<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/mailbox-locked-mailbox-move/">Mailbox Locked Mailbox Move Issue</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">
<style><span style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" data-mce-type="bookmark" class="mce_SELRES_start">﻿</span>h2 {font-weight: bold;text-decoration:none;font-size: 18px!Important;}h3 {font-weight: bold;text-decoration:none;font-size: 18px!Important;} h5{margin-bottom: 5px;} .wp-image-2045,.wp-image-2051,.wp-image-2050,.wp-image-2049,.wp-image-2056, .wp-image-2055 {margin-top:2px!Important;margin-right:6px;} .wpe-box-alert {background-color:#f9f6d9!important;border: 1px solid #aaa895;text-align: justify;} .wpe-box-error1 {background-color:#ffebe8!important;border: 1px solid #c00;text-align: justify;} .wpe-box-alert ul li {list-style:square;padding-bottom: 10px;} .wpe-box-note99 ul li {list-style:square; padding-bottom:10px;}</style>
</p>
<p style="text-align: justify;">In this post, I would like to share how I got around a Mailbox Locked Mailbox Move issue. After we have successfully moved several hundred mailboxes to their new location some issues occurred with a few mailboxes.</p>
<p style="text-align: justify;">Moves for those mailboxes could not be started with the <a href="https://webbanshee.net/stalled-move-request/">-priority switch</a> due to the fact that the target location wasn&#8217;t on-premise.</p>
<p style="text-align: justify;">As a result, some of those boxes just stalled. Restarting the Mailbox Replication Service on the relevant source server did the trick. The stalled move requests could be reinitiated. Only one mailbox remained.</p>
<p style="text-align: justify;">However, the remaining mailbox was locked. I tried to move the mailbox to another mailbox database but received the same error as with the move-request:</p>
<div class="wpe-box wpe-box-alert"><span style="color: #2c2c2c; font-weight:bold;">Informational: The request has been paused temporarily because the mailbox is locked. The Microsoft Exchange Mailbox Replication service will attempt to continue processing the request after &#8230;</span></p>
<p><a href="https://webbanshee.net/wp-content/uploads/2021/05/MailboxLockedInfo.jpg"><img loading="lazy" class="aligncenter size-full wp-image-4006" src="https://webbanshee.net/wp-content/uploads/2021/05/MailboxLockedInfo.jpg" alt="Mailbox Locked Mailbox Move" width="502" height="61" srcset="https://webbanshee.net/wp-content/uploads/2021/05/MailboxLockedInfo.jpg 502w, https://webbanshee.net/wp-content/uploads/2021/05/MailboxLockedInfo-300x36.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /></a></div>
<p style="text-align: justify;">It seemed like the mailbox had a locked flag ( or something similar ) set in the information store of the source server that mounts the mailbox database for this mailbox. If so, I would have to restart the information store or reboot the server to wipe this flag. Not the first choice for a production server.</p>
<p>I never had this kind of mailbox locked mailbox move issue before.<br />
So I started to google and fortunately found this article on <a href="https://dirteam.com/bas/2019/04/08/exchange-migration-couldnt-switch-the-mailbox-into-sync-source-mode/" target="_blank" rel="noopener noreferrer">dirteam.com</a>.</p>
<p style="text-align: justify;">The article made me confident that it is most probably locked in the information store on the source server. Switching the mounted mailbox database where the locked mailbox resides to another server just did it. Simple as that. Thank you, DirTeam!</p>
<h4>Here the short procedure to solve the mailbox locked mailbox move issue:</h4>
<div class="wpe-box wpe-box-note3"><span style="font-weight: bold;">Check which mailbox database hosts the locked mailbox:</span><br />
<span style="font-weight: bold; color: #181818;">get-mailbox -Identity</span><span style="font-weight: bold; color: #993333;">&#8220;MailboxName&#8221;</span><span style="font-weight: bold; color: #181818;"> | select PrimarySmtpAddress, database</span></p>
<p><span style="font-weight: bold;">Note the database-name and display servers hosting the copies of this mailbox db:</span><br />
<span style="font-weight: bold; color: #181818;">Get-MailboxDatabaseCopyStatus</span> <span style="font-weight: bold; color: #993333;">&#8220;DatabaseName&#8221;</span></p>
<p><span style="font-weight: bold;">Mount the mailbox database on another server within the DAG:</span><br />
<span style="font-weight: bold; color: #181818;">Move-ActiveMailboxDatabase</span><span style="font-weight: bold; color: #993333;"> &#8220;DatabaseName&#8221;</span><span style="font-weight: bold; color: #181818;"> -ActivateOnServer</span> <span style="font-weight: bold; color: #993333;">&#8220;ServerHostingCopy&#8221;</span></p>
</div>
<p>After the mailbox database was mounted on another server I was able to start and complete the move of the last mailbox successfully.</p>
<p>Have a nice day!<br />
&nbsp;<br />
&nbsp;<br />
If you run into other issues with move requests this could also be of interest:</p>
<p><a class="wpe-button wpe-button-blue" href="https://webbanshee.net/tag/mailboxmove/">Mailbox Moves</a><br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/mailbox-locked-mailbox-move/">Mailbox Locked Mailbox Move Issue</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/mailbox-locked-mailbox-move/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3970</post-id>	</item>
		<item>
		<title>Mailbox Audit Logging &#8211; Enable and Search Logs</title>
		<link>https://webbanshee.net/mailbox-audit-logging/</link>
					<comments>https://webbanshee.net/mailbox-audit-logging/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Fri, 12 Mar 2021 07:21:35 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailboxAudit]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=3656</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/mailbox-audit-logging/"><img src="https://webbanshee.net/wp-content/uploads/2021/02/MailboxAuditLogging.svg"/><span class="exTeaser" style="width:70%;">Use Mailbox Audit Logging to gather insights about what happens in a certain mailbox. </span><br />
<span class="exText" style="width:70%;" >When a mail went missing without interaction of the mailbox owner Mailbox Audit Logging can provide useful information.<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/mailbox-audit-logging/">Mailbox Audit Logging &#8211; Enable and Search Logs</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<style>h2 {font-weight: bold;text-decoration:none;font-size: 22px!Important;}h3 {font-weight: bold;text-decoration:none;font-size: 18px!Important;}h4 {font-weight: bold;text-decoration:none;font-size: 16px!Important;}.wp-image-2045,.wp-image-2051,.wp-image-2050,.wp-image-2049,.wp-image-2056, .wp-image-2055 {margin-top:2px!Important;margin-right:6px;}.red{background:#E86275;padding-left: 5px;padding-right: 5px;padding-top: 2px;padding-bottom: 2px;color:#fefefe;border-radius: 3px;font-size: 14px;} .wpe-button-blue {background:#1072C1!Important; border: none!Important;} .txtred {color:#993333;font-weight:bold;} .txtbold {font-weight:bold;}</style>
<p style="text-align: justify;">Did you ever receive inquiries about strange mailbox behavior like users state that mails have been deleted without any interaction of the mailbox owner? In cases like this, you are happy to enable Mailbox Audit Logging on the affected mailbox.</p>
<p style="text-align: justify;">This post is about how to enable Mailbox Audit Logging on a certain mailbox and configure the auditing parameters to provide the most relevant insights. Let&#8217;s get to the point straight away:</p>
<p>&nbsp;</p>
<h2><img class="alignnone size-full wp-image-2045" src="https://webbanshee.net/wp-content/uploads/2019/01/round_1.svg" alt="1 -" />Enable Mailbox Audit Logging on a mailbox</h2>
<h3>Check the audit status on a certain mailbox:</h3>
<div class="wpe-box wpe-box-note3">
<p><span style="font-weight: bold;">get-mailbox -Identity <span style="font-weight: bold; color: #993333;">MailboxName</span> | select PrimarySmtpAddress, *audit* | fl</span></p>
<p>In the following examples, I will use intern@testlab.local as <span style="font-weight: bold;">-Identity</span><br />
The output shows that Mailbox Audit Logging is not enabled on this mailbox:<br />
<a href="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingDisabled.png"><img loading="lazy" class="aligncenter wp-image-3905 size-full" src="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingDisabled.png" alt="Mailbo Audit Logging Disabled" width="1383" height="92" srcset="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingDisabled.png 1383w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingDisabled-300x20.png 300w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingDisabled-1024x68.png 1024w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingDisabled-768x51.png 768w" sizes="(max-width: 1383px) 100vw, 1383px" /></a></p>
</div>
<h3>Enable Mailbox Audit Logging:</h3>
<div class="wpe-box wpe-box-note3">
<p><span style="font-weight: bold;">get-mailbox -Identity <span style="font-weight: bold; color: #993333;">MailboxName</span> | Set-Mailbox -AuditEnabled <span style="font-weight: bold; color: #993333;">$True</span></span></p>
<p>When you check the status again using the first command it will show AuditEnabled as True now.<br />
Operations audited by default are shown as well:<br />
<a href="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingEnabled.png"><img loading="lazy" class="aligncenter size-full wp-image-3910" src="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingEnabled.png" alt="Mailbox Audit Logging Enabled" width="1389" height="93" srcset="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingEnabled.png 1389w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingEnabled-300x20.png 300w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingEnabled-1024x69.png 1024w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLoggingEnabled-768x51.png 768w" sizes="(max-width: 1389px) 100vw, 1389px" /></a></p>
<p>If your output is truncated with ellipses (&#8230;) <a class="wpe-button wpe-button-blue" href="https://webbanshee.net/expand-powershell-output/" target="_blank" rel="noopener noreferrer">change the $FormatEnumerationLimit value.</a></p>
</div>
<h3>Define operations that should be audited:</h3>
<p>Depending on what circumstances make a mailbox audit logging necessary you can change the predefined audit operations to more relevant ones. Find a list of actions logged by mailbox audit logging <a style="font-weight: bold; color: #993333;" href="https://docs.microsoft.com/en-us/exchange/policy-and-compliance/mailbox-audit-logging/mailbox-audit-logging?view=exchserver-2019#mailbox-actions-logged-by-mailbox-audit-logging" target="_blank" rel="noopener noreferrer">here.</a></p>
<p>Usually, I completely change the actions for AuditOwner. <strong>AuditOwner = MailboxOwner</strong><br />
To do so use the following command:</p>
<div class="wpe-box wpe-box-note3"><span style="font-weight: bold;">Set-Mailbox <span style="font-weight: bold; color: #993333;">MailboxName</span> -Audit<span style="font-weight: bold; color: #993333;">Owner &#8220;Create, SoftDelete, HardDelete, Update, Move, MoveToDeletedItems,MailboxLogin&#8221;</span></span><br />
<a href="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLogging.png"><img loading="lazy" src="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLogging.png" alt="Mailbox Audit Loggint" width="1320" height="113" class="aligncenter size-full wp-image-3929" srcset="https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLogging.png 1320w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLogging-300x26.png 300w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLogging-1024x88.png 1024w, https://webbanshee.net/wp-content/uploads/2021/03/MailboxAuditLogging-768x66.png 768w" sizes="(max-width: 1320px) 100vw, 1320px" /></a><br />
Adjust the logged actions according to the list by Microsoft mentioned above.<br />
Use <span style="font-weight: bold;">-AuditAdmin</span> or <span style="font-weight: bold;">-AuditDelegate</span> instead of <span style="font-weight: bold;">-AuditOwner</span> to change logged operations for Admin or Delegates.</p>
</div>
<h2><img class="alignnone size-full wp-image-2051" src="https://webbanshee.net/wp-content/uploads/2019/01/round_2.svg" alt="2 -" />Search Mailbox Audit Logs</h2>
<h3>Define your query:</h3>
<p>The <span style="font-weight: bold;">Search-MailboxAuditLog</span> CMDlet seems only to work out of an Exchange Management Shell. Out of an ISE loaded with an Exchange PS-Snapin, I always get an error. </p>
<p style="text-align: justify;">Undoubtedly the filter for date ranges in connection with the Search-MailboxAuditLog CMDlet is somewhat imprecise. If you want to query a range from 3 days ago until today for instance I recommend setting the end date of the query to the date of tomorrow. Otherwise, it can happen that no results will be shown for the current day or even the day before.</p>
<div class="wpe-box wpe-box-alert5">
<div class="wpe-box wpe-box-note3" style="overflow-x: auto;">
<span style="font-weight: bold;">Search-MailboxAuditLog -Identity <span style="font-weight: bold; color: #993333;">MailboName</span> -StartDate <span style="font-weight: bold; color: #993333;">&#8220;MM/DD/YYYY&#8221;</span> -EndDate <span style="font-weight: bold; color: #993333;">&#8220;MM/DD/YYYY&#8221;</span> -LogonTypes <span style="font-weight: bold; color: #993333;">Owner</span> -ShowDetails | select <span style="font-weight: bold; color: #993333;">lastaccessed, operation, logontype ,logonuserdisplayname,folderpathname,ClientIPAddress,ClientInfoString,ClientMachineName,ClientProcessName,MailboxOwnerUPN,DelegateUserDisplayName,MailboxResolvedOwnerName,SourceItemSubjectslist</span> | sort <span style="font-weight: bold; color: #993333;">lastaccessed</span> |ft -autosize</span>
</div>
<h3>Some notes to the query above:</h3>
<p><span style="font-weight: bold; color:#993333;">-StartDate/-EndDate:</span> The date format can vary depending on the regional settings of your system!<br />
<span style="font-weight: bold; color:#993333;">-LogonTypes:</span> Narrow down your query to logon types you are interested in.</p>
<h3>Selectors:</h3>
<p><span style="font-weight: bold; color:#993333;">Operation:</span> Displays the logged action.<br />
<span style="font-weight: bold; color:#993333;">ClientIpAddress:</span> Shows the IP address of the client respectively the source network outgoing IP address.<br />
<span style="font-weight: bold; color:#993333;">ClientInfoString:</span> Shows client connection types like RPC, ActiveSync, OWA<br />
<span style="font-weight: bold; color:#993333;">ClientProcessName:</span> For example OUTLOOK.exe<br />
<span style="font-weight: bold; color:#993333;">SourceItemSubjectslist:</span> The subject of mails where an action has been logged with.</p>
<p><span style="font-weight: bold;">I recommend to use only relevant selectors when searching an audit log.<br />
Displaying all selectors can make the output confusing or will not fit in at all.</span>
</div>
<p>Stay safe folks!<br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/mailbox-audit-logging/">Mailbox Audit Logging &#8211; Enable and Search Logs</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/mailbox-audit-logging/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3656</post-id>	</item>
		<item>
		<title>Entry is missing in the Global Address List</title>
		<link>https://webbanshee.net/entry-missing-in-the-global-address-list/</link>
					<comments>https://webbanshee.net/entry-missing-in-the-global-address-list/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Tue, 28 Apr 2020 10:01:30 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[GAL]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[OWA]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=3520</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/entry-missing-in-the-global-address-list/"><img src="https://webbanshee.net/wp-content/uploads/2020/04/FindSomeoneInGAL_ps.svg" /><span class="exTeaser2">After a mailbox or a distribution group has been created it can happen that the appropriate entry is missing in the Global Address List.</span><br />
<span class="exText2">If an entry is missing in the Global Address List you can query the GAL on the server<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/entry-missing-in-the-global-address-list/">Entry is missing in the Global Address List</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Hello Folks! After a mailbox or a distribution group has been created it can happen that the appropriate entry is missing in the Global Address List.</p>
<p style="text-align: justify;">Assuming the <strong>HiddenFromAddressListsEnabled</strong> attribute is set to<span style="color: #993333;"> <strong>$False</strong></span> on the mailbox or distribution group.</p>
<p style="text-align: justify;">When an entry is missing in the Global Address List it is not necessarily needed but good to know if we can find the object in the GAL on the server.</p>
<h3 style="margin-top: 56px; margin-bottom: 20px;">If an entry is missing in the Global Address List you can query the GAL on the server:</h3>
<div class="wpe-box wpe-box-note3">
<div class="wpe-box wpe-box-note-white" style="background: #ffffff!Important; font-weight: bold;"><span style="color: #209154;">## Add Exchange Server SnapIn to PS ##</span><br />
Add-PSSnapin *exch*</p>
<p><span style="color: #209154;">## Get name of GAL ##</span><br />
<strong>Get-GlobalAddressList</strong></p>
<p><span style="color: #209154;">## Prepare data source ##</span><br />
<strong>$customer = <span style="color: #993333;">&#8220;NameOfGAL &#8211; GAL&#8221;</span></strong><br />
<strong>$members=Get-GlobalAddressList $customer</strong></p>
<p><span style="color: #209154;">## Query for a certain object using a part of its name [ we use -like here ] ##</span><br />
<strong>Get-Recipient -RecipientPreviewFilter $members.RecipientFilter -ResultSize unlimited | where {$_.Name -like <span style="color: #993333;">&#8220;*PartOfObjectName*&#8221;</span>} | fl</strong></p>
</div>
</div>
<p style="text-align: justify;">Independently from the outcome of the above PowerShell commands I usually update the Offline Address Book and the Global Address List afterward.</p>
<p>I have put in the option to query the Global Address List for the missing entry because I usually do it.</p>
<h3>Ok here we go &gt; Update the Offline Address Book:</h3>
<div class="wpe-box wpe-box-note3"><strong>Get-OfflineAddressBook</strong><br />
<strong>Get-OfflineAddressBook -Identity<span style="color: #993333;"> &#8220;NameOfOAB&#8221;</span> | Update-OfflineAddressBook</strong></div>
<h3>Now update the Global Address List:</h3>
<div class="wpe-box wpe-box-note3"><strong>Get-GlobalAddressList</strong><br />
<strong>Get-GlobalAddressList -Identity<span style="color: #993333;"> &#8220;NameOfGAL&#8221;</span> | Update-GlobalAddressList</strong></div>
<p>In most cases, this solves it.<br />
&nbsp;<br />
I usually wait 15 Minutes [ one AD sync cycle ] before notifying the customer.<br />
The user should download the Address Book afterward or restart Outlook.<br />
In OWA new entries should be visible straight away.<br />
&nbsp;</p>
<h3>If the problem persists check the showInAddressBook attribute on the object in AD:</h3>
<div class="wpe-box wpe-box-note3">
<a href="https://webbanshee.net/wp-content/uploads/2020/04/showInAddressBook.png"><img loading="lazy" src="https://webbanshee.net/wp-content/uploads/2020/04/showInAddressBook.png" alt="Entry is missing in the Global Address List" width="801" height="155" class="aligncenter size-full wp-image-3537" srcset="https://webbanshee.net/wp-content/uploads/2020/04/showInAddressBook.png 801w, https://webbanshee.net/wp-content/uploads/2020/04/showInAddressBook-300x58.png 300w, https://webbanshee.net/wp-content/uploads/2020/04/showInAddressBook-768x149.png 768w" sizes="(max-width: 801px) 100vw, 801px" /></a></p>
<p><strong>Compare the values of the attribute showInAddressBook with an account or DL that is available in the Global Address List and add them accordingly if one or more entries are missing.</strong>
</div>
<p><span style="font-weight:bold;font-size:18px;text-align:justify;">If appropriate entries are missing here you wouldn&#8217;t get a result when querying the GAL for the missing entry at the beginning of this post. Further it is likely that HiddenFromAddressListsEnabled is set to <span style="color:#993333;font-weight:bold;">$true.</span></span></p>
<p>When <strong>HiddenFromAddressListsEnabled</strong> is set to <span style="color:#993333; font-weight:bold;">$true</span>:</p>
<div class="wpe-box wpe-box-note3" style="margin-bottom:10px;!Important;">
<strong>> Set it to <span style="color:#993333; font-weight:bold;">$false</span> and reload the attribute in AD.</strong>
</div>
<p>Find some examples at the end of this <a href="https://docs.microsoft.com/en-us/exchange/address-books/address-lists/manage-address-lists" rel="noopener noreferrer" target="_blank">Microsoft description</a>.<br />
&nbsp;<br />
If all entries are visible in <strong>showInAddressBook</strong> you should be fine.<br />
Otherwise add the missing entries under showInAddressBook. </p>
<div class="wpe-box wpe-box-note3">
<strong>> Update OAB and GAL again.</strong>
</div>
<p>&nbsp;<br />
Have a nice day!<br />
&nbsp;<br />
&nbsp;<br />
Want to activate an Out of Office message while retaining the formating?</p>
<p><a class="wpe-button wpe-button-red" href="https://webbanshee.net/out-of-office-multiline-message/">Out Of Office Multiline Message through PowerShell</a></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/entry-missing-in-the-global-address-list/">Entry is missing in the Global Address List</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/entry-missing-in-the-global-address-list/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3520</post-id>	</item>
		<item>
		<title>Remove Old OWA Versions to free up Disk Space</title>
		<link>https://webbanshee.net/remove-old-owa-versions/</link>
					<comments>https://webbanshee.net/remove-old-owa-versions/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Tue, 24 Mar 2020 11:43:23 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[CU]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[OWA]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=3395</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/remove-old-owa-versions/"><img src="https://webbanshee.net/wp-content/uploads/2020/03/RemoveOldOWAVersions.svg" /><span class="exTeaser">After each CU install a new OWA version is added to the /Owa/prem folder. After a time this old OWA versions can eat up a lot of disk space.</span><br />
<span class="exText">Is it save to remove them?<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/remove-old-owa-versions/">Remove Old OWA Versions to free up Disk Space</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">If you are running an Exchange Server for a couple of years you will soon or later notice that the free disk space on the Exchange install disk shrinks after every CU install. At this point, you can take in consideration to remove old OWA versions to free up disk space.</p>
<p style="text-align: justify;">The size of these folders located under the path below can take be up to 2GB for each version:</p>
<div class="wpe-box wpe-box-note3">
<p><strong>/ExchangeInstallPath/V15/ClientAccess/OWA/prem</strong></p>
</div>
<p style="text-align: justify;">The question is:</p>
<h4>Is it safe to remove old owa versions?</h4>
<p style="text-align: justify;">Unfortunately, I never found a satisfying answer to this question from Microsoft. On technet forums you can find answers like <a href="https://social.technet.microsoft.com/Forums/en-US/f3731694-ae4a-47d8-b921-a61e47c2b757/remove-old-owa-files-after-cumulative-updates?forum=Exch2016GD" rel="noopener noreferrer">You can do it but it is not recommended.</a></p>
<p style="text-align: justify;">This it is not a statement that makes you remove old OWA versions with peace of mind.<br />
So I gave it a try in our test environment.</p>
<p style="text-align: justify;">As you can see in the picture below there are some OWA version folders in the<strong> /Owa</strong> directory. The last modified date matches the date we have installed <a href="https://webbanshee.net/cu12-exchange-2016-net-4-7-2/">CU12</a> on this server. These folders belong to the current OWA version at that time. ( before we installed <a href="https://webbanshee.net/cu14-exchange-2016/">CU14</a>).</p>
<p style="text-align: justify;">In the <strong>/Owa/prem</strong> folder on the right side, you see the real OWA version folders with about 1GB in size which is eating up your disk space. After every CU install a new OWA version folder is added and the older versions are kept.</p>
<p>&nbsp;</p>
<div class="wpe-box wpe-box-note">
<p>The directories compared:<br />
<a href="https://webbanshee.net/wp-content/uploads/2020/03/OWAVersionFolders.png"><img loading="lazy" class="aligncenter wp-image-3427 size-full" src="https://webbanshee.net/wp-content/uploads/2020/03/OWAVersionFolders.png" alt="Remove Old OWA Versions" width="1551" height="533" srcset="https://webbanshee.net/wp-content/uploads/2020/03/OWAVersionFolders.png 1551w, https://webbanshee.net/wp-content/uploads/2020/03/OWAVersionFolders-300x103.png 300w, https://webbanshee.net/wp-content/uploads/2020/03/OWAVersionFolders-1024x352.png 1024w, https://webbanshee.net/wp-content/uploads/2020/03/OWAVersionFolders-768x264.png 768w, https://webbanshee.net/wp-content/uploads/2020/03/OWAVersionFolders-1536x528.png 1536w" sizes="(max-width: 1551px) 100vw, 1551px" /></a></p>
</div>
<div class="wpe-box wpe-box-alert-yellow wpe-box-active">
<div class="wpe-box-remove"></div>
<p><span style="display: inline-block; text-align: justify;"><strong>When you need to upgrade a couple of servers one after another a server that already has been updated to the newest CU still needs the OWA version files from the last CU. If the mailbox which is being accessed through OWA resides on a server still running the old CU then an already upgraded server which serves OWA needs to be able to speak the old language as well.</strong></span></p>
</div>
<div class="wpe-box wpe-box-download">
<p>According to this, I have moved all old OWA versions from <strong>/Owa/prem</strong> that did not have a match in <strong>/Owa</strong> and were older than 2 years to another drive. It gained me about 6GB free space.</p>
</div>
<p style="text-align: justify;">After no problems occurred in our test environment I have used the same procedure in our production environment ( 18 servers ). There were no problems reported as well while having different CUs in place and no problems after all servers have been upgraded.</p>
<p><span style="display: inline-block; margin-bottom: 30px;">Stay healthy!</span></p>
<p><strong>Need to change the input language on Server Core? </strong></p>
<p><a class="wpe-button wpe-button-red" href="https://webbanshee.net/change-input-language-on-server-core-login-screen/">Change input language via PowerShell</a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/remove-old-owa-versions/">Remove Old OWA Versions to free up Disk Space</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/remove-old-owa-versions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3395</post-id>	</item>
		<item>
		<title>Mail Flow Rule Mark External Mail</title>
		<link>https://webbanshee.net/mail-flow-rule-mark-external-mail/</link>
					<comments>https://webbanshee.net/mail-flow-rule-mark-external-mail/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Wed, 15 Jan 2020 10:45:27 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailFlowRule]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=3145</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/mail-flow-rule-triggered-action"><img src="https://webbanshee.net/wp-content/uploads/2020/01/NewMailFlowRule.svg" /><span class="exTeaser">To filter mails for certain criteria like sender, recipients, domain, header-information and more it makes sense to create a new Mail Flow Rule and associate it with an action of your choice.</span><br />
<span class="exText">In this example we will create a rule that tags mails from external senders with [EXT]<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/mail-flow-rule-mark-external-mail/">Mail Flow Rule Mark External Mail</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<style type="text/css">/*.entry-content img {border-bottom: 3px solid #F90;}*/h2 {font-weight: bold;text-decoration:none;font-size: 20px!Important;}h3 {font-weight: bold;text-decoration:none;font-size: 18px!Important;}.wp-image-2045,.wp-image-2051,.wp-image-2050,.wp-image-2049,.wp-image-2056, .wp-image-2055 {margin-top:2px!Important;margin-right:6px;}</style>
<p style="text-align: justify;">Hello Folks. To filter mails for certain criteria like sender, recipients, domain, header-information and more it makes sense to create a new Mail Flow Rule ( former Transport Rule ) and associate it with an action of your choice.</p>
<p style="text-align: justify;">You could, for example, use a Mail Flow Rule to pretend [EXT] to the subject when a mail comes from an external sender or you could use a rule to classify emails with certain header-information as SPAM and move them to the user&#8217;s Junk-Mail folder.</p>
<p style="text-align: justify;">Ok, let&#8217;s get into it. In this example we will create a rule that tags mails from external senders with [EXT]:</p>
<div class="wpe-box wpe-box-note3"><strong>&gt; Login to your Exchange Control Panel ( ECP ) with an administrative account.</strong><br />
<span style="display: inline-block; text-indent: 12px;"><strong>The URL should be like that:</strong>  <span style="color: #993333; font-weight: bold;">https://YourExchangeURL/ecp<br />
<a style="font-weight: bold;" href="#powershell">&gt; Or click here to create a new Mail Flow Rule via PowerShell</a><br />
</span></span></div>
<h2><img class="alignnone size-full wp-image-2045" src="https://webbanshee.net/wp-content/uploads/2019/01/round_1.svg" alt="1 -" />Create a new Mail Flow Rule via ECP:</h2>
<div class="wpe-box wpe-box-note3"><span style="font-weight: bold;">&gt; In ECP navigate to mail flow &gt; rules and click the <span style="font-size: 26px; position: relative; top: 3px;">+</span> icon. Choose Create a new rule.</span><br />
<a href="https://webbanshee.net/wp-content/uploads/2020/01/NewMailFlowRule.png"><img loading="lazy" class="aligncenter wp-image-3157 size-large" src="https://webbanshee.net/wp-content/uploads/2020/01/NewMailFlowRule-1024x451.png" alt="New Mail Flow Rule" width="1024" height="451" srcset="https://webbanshee.net/wp-content/uploads/2020/01/NewMailFlowRule-1024x451.png 1024w, https://webbanshee.net/wp-content/uploads/2020/01/NewMailFlowRule-300x132.png 300w, https://webbanshee.net/wp-content/uploads/2020/01/NewMailFlowRule-768x338.png 768w, https://webbanshee.net/wp-content/uploads/2020/01/NewMailFlowRule.png 1053w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
The Drop-Down offers several templates for new rules.<br />
We won&#8217;t use them here since we want to create a new Mail Flow Rule from scratch.</div>
<h3>Specify the name and criteria of the new Mail Flow Rule:</h3>
<p>We will create a rule which pretends [EXT] to the message subject when a mail comes from a sender outside of your organization.</p>
<div class="wpe-box wpe-box-note3"><strong>&gt; Specify the name of the rule</strong><br />
<strong>&gt; Click More options</strong><br />
<a href="https://webbanshee.net/wp-content/uploads/2020/01/NameMailFlowRule.png"><img loading="lazy" class="aligncenter size-medium wp-image-3164" src="https://webbanshee.net/wp-content/uploads/2020/01/NameMailFlowRule-300x296.png" alt="Name Mail Flow Rule" width="469" height="463" srcset="https://webbanshee.net/wp-content/uploads/2020/01/NameMailFlowRule-300x296.png 300w, https://webbanshee.net/wp-content/uploads/2020/01/NameMailFlowRule.png 469w" sizes="(max-width: 469px) 100vw, 469px" /></a></p>
<div class="wpe-box wpe-box-alert-orange">
<p><span style="font-weight: bold; font-size: 18px; text-decoration: underline;">For an Exchange environment hosting a single tenant:</span></p>
<p><strong>&gt; Under Apply this rule if choose The sender&#8230; &gt; is external/internal </strong><br />
<strong>&gt; Set it to Outside the organization<br />
&gt; Add another condition<br />
&gt; Choose The recipient&#8230; &gt; domain is<br />
&gt; Add the domain for which you want to mark external mails<br />
&gt; Under Do the following&#8230; choose Prepend the subject of the message with&#8230;<br />
&gt; Enter your preferred tag ( e.g. [EXT] )</strong></p>
<p><a href="https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_so.png"><img loading="lazy" class="aligncenter size-full wp-image-3166" src="https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_so.png" alt="Mail Flow Rule Single Org" width="619" height="343" srcset="https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_so.png 619w, https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_so-300x166.png 300w" sizes="(max-width: 619px) 100vw, 619px" /> </a></p>
<p><strong>&gt; Further down set Match sender address in message to &gt; Envelope</strong><br />
<a href="https://webbanshee.net/wp-content/uploads/2020/01/MatchEnvelope.png"><img loading="lazy" class="aligncenter size-full wp-image-3194" src="https://webbanshee.net/wp-content/uploads/2020/01/MatchEnvelope.png" alt="Mail Flow Rule matches envelope" width="258" height="58" /></a></p>
</div>
<div class="wpe-box wpe-box-alert-orange">
<p><span style="font-weight: bold; font-size: 18px; text-decoration: underline;">For a multi-tenant Exchange environment:</span></p>
<p style="text-align: justify;">Exchange considers a sender to be external if:<br />
• The sender&#8217;s email address isn&#8217;t in an accepted domain.<br />
• The sender&#8217;s email address is in an accepted domain that&#8217;s configured as an external relay domain.</p>
<p style="text-align: justify;">In a multi-tenant environment where tenants send mails between each other, the sender will not be considered as an external sender from the recipient&#8217;s point of view since the sender&#8217;s domain is an accepted domain. This means we cannot use the same conditions as we have used in a single-tenant environment.</p>
<p><strong>&gt; Under Apply this rule if choose The sender&#8230; &gt; address matches any of these text patterns</strong><br />
<strong>&gt; Enter @ as a specified word or phrase<br />
&gt; Add another condition<br />
&gt; Choose The recipient&#8230; &gt; domain is<br />
&gt; Add the domain for which you want to mark external mails<br />
&gt; Under Do the following&#8230; choose Prepend the subject of the message with&#8230;<br />
&gt; Enter your preferred tag ( e.g. [EXT] )<br />
&gt; Under Except if choose The sender &gt; domain is<br />
&gt; Enter one or more domains you don&#8217;t want to be marked as an external sender</strong></p>
<p><a href="https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_multitenant.png"><img loading="lazy" class="aligncenter size-full wp-image-3167" src="https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_multitenant.png" alt="Mail Flow Rule multi-tenant" width="696" height="440" srcset="https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_multitenant.png 696w, https://webbanshee.net/wp-content/uploads/2020/01/MailFlowRuleConditions_multitenant-300x190.png 300w" sizes="(max-width: 696px) 100vw, 696px" /></a><br />
<strong>&gt; Further down set Match sender address in message to &gt; Envelope</strong><br />
<a href="https://webbanshee.net/wp-content/uploads/2020/01/MatchEnvelope.png"><img loading="lazy" class="aligncenter size-full wp-image-3194" src="https://webbanshee.net/wp-content/uploads/2020/01/MatchEnvelope.png" alt="Mail Flow Rule matches envelope" width="258" height="58" /></a></p>
</div>
</div>
<h2 id="powershell"><img class="size-full wp-image-2051 alignnone" role="img" src="https://webbanshee.net/wp-content/uploads/2019/01/round_2.svg" alt="2 -" />Create a new Mail Flow Rule using PowerShell:</h2>
<p><span style="font-weight: bold; font-size: 18px;">For an Exchange environment hosting a single tenant</span></p>
<p>Create a new Mail Flow Rule using the New-TransportRule cmdlet with the following parameters:</p>
<div class="wpe-box wpe-box-white"><strong>New-TransportRule -Name</strong> <span style="color: #993333;">&#8220;Mark mails from external&#8221;</span> <strong>-FromScope</strong> <span style="color: #993333;">NotInOrganization</span> <strong>-RecipientDomainIs</strong> <span style="color: #993333;">testlab.local</span> <strong>-SenderAddressLocation</strong> <span style="color: #993333;">Envelope</span> <strong>-PrependSubject</strong> <span style="color: #993333;">&#8220;[EXT]&#8221;</span> <strong>-Enabled</strong> <span style="color: #993333;">$True</span></div>
<h3>A Short explanation of the used parameters:</h3>
<div class="wpe-box wpe-box-note3"><strong>-Name:</strong><br />
The name of the rule</p>
<p><strong>-FromScope:</strong><br />
Sets the scope to mails from external. This means mails from sender domains that are not in AcceptedDomains of the Exchange organization or are defined as an External Relay Domain.</p>
<p><strong>-RecipientDomainIs:</strong><br />
The recipient domain you want to mark external mails for.</p>
<p><strong>-SenderAddressLocation:</strong><br />
Set to <span style="color: #993333;">Envelope</span> to advise Exchange to fetch the sender&#8217;s address from the mail-header and not from the from field. Since the from field contains the visual address it can be prone to spoofing attempts. To make sure the real sender&#8217;s is address used in the rule use Envelope.</p>
<p><strong>-PrependSubject:</strong><br />
Specify some patterns or words which will be prepended to the subject to tag external mails.</p>
<p><strong>-Enabled:</strong><br />
Activates the rule. If you just want to set up the rule without activating it set the value to <span style="color: #993333;">$False</span></p>
</div>
<p><span style="font-weight: bold; font-size: 18px;">For a multi-tenant Exchange environment</span><br />
Create a new Rule with the parameters below:</p>
<div class="wpe-box wpe-box-white"><strong>New-TransportRule -Name</strong> <span style="color: #993333;">&#8220;Mark mails from external&#8221;</span> <strong>-FromAddressMatchesPatterns</strong> <span style="color: #993333;">&#8220;@&#8221;</span> <strong>-RecipientDomainIs</strong> <span style="color: #993333;">testlab.local</span> <strong>-ExceptIfSenderDomainIs</strong> <span style="color: #993333;">testlab.local</span> <strong>-PrependSubject</strong> <span style="color: #993333;">&#8220;[EXT]&#8221;</span> <strong>-SenderAddressLocation</strong> <span style="color: #993333;">Envelope</span> <strong>-Enabled</strong> <span style="color: #993333;">$True</span></div>
<h3>A Short explanation of the used parameters:</h3>
<div class="wpe-box wpe-box-note3" style="text-align: justify;"><strong>-Name:</strong><br />
The name of the rule.</p>
<p><strong>-FromAddressMatchesPattern:</strong><br />
To catch all mails we give it a common pattern that can be found in all SMTP addresses.</p>
<p><strong>-RecipientDomainIs:</strong><br />
The recipient domain you want to mark external mails for.</p>
<p><strong>-ExcepIfSenderDomainIs:</strong><br />
An exception for your own domain makes sure that your internal mails ( means within the domain you specify here. Not within the Exchange organization! ) will not be marked.</p>
<p><strong>-PrependSubject:</strong><br />
Specify some patterns or words which will be prepended to the subject to tag external mails.</p>
<p><strong>-SenderAddressLocation:</strong><br />
Set to <span style="color: #993333;">Envelope</span> to advise Exchange to fetch the sender&#8217;s address from the mail-header and not from the from field. Since the from field contains the visual address it can be prone to spoofing attempts. To make sure the real sender&#8217;s address is used in the rule use Envelope.</p>
<p><strong>-Enabled:</strong><br />
Activates the rule. If you just want to set up the rule without activating it set the value to <span style="color: #993333;">$False</span></p>
</div>
<h3><img class="alignnone size-full wp-image-2050" role="img" src="https://webbanshee.net/wp-content/uploads/2019/01/round_3.svg" alt="3 -" /> Summary:</h3>
<div class="wpe-box wpe-box-download" style="background: #e7f7d3;">The 1st Mail Flow Rule, which can be used in a single-tenant environment, is triggered when Exchange detects the senders&#8217; domain as a domain that is outside of the Exchange organization.<br />
This means that the senders&#8217; domain is not listed in Accepted Domains or is not configured as an External Relay Domain on the Exchange server.</p>
<p style="text-align: justify;">The 2nd rule, which can be used in a multi-tenant environment ( and also in single-tenant environments ), considers mails from all senders as external emails since the parameter -FromAddressMatchesPattern is filled with the value &#8220;@&#8221; which matches every SMTP address in the envelope.</p>
<p style="text-align: justify;">This is another fact that underlines the importance to set -SenderAddressLocation to Envelope. We have seen visual sender addresses in the FROM field where just a name without @ was displayed. ( only in mails where a malicious sender pretends to be someone out of the recipients&#8217; organization. Spoofing. )</p>
<h3>And here the results:</h3>
<p><a href="https://webbanshee.net/wp-content/uploads/2020/01/ExtMail.png"><img loading="lazy" class="aligncenter size-full wp-image-3208" src="https://webbanshee.net/wp-content/uploads/2020/01/ExtMail.png" alt="Mail Flow Rule External" width="1039" height="273" srcset="https://webbanshee.net/wp-content/uploads/2020/01/ExtMail.png 1039w, https://webbanshee.net/wp-content/uploads/2020/01/ExtMail-300x79.png 300w, https://webbanshee.net/wp-content/uploads/2020/01/ExtMail-768x202.png 768w, https://webbanshee.net/wp-content/uploads/2020/01/ExtMail-1024x269.png 1024w" sizes="(max-width: 1039px) 100vw, 1039px" /></a></p>
<p>With the parameter -ExceptIfSenderDomainIs filled with your recipient domain emails from your domain to your domain ( internal mails ) will not be tagged as external mails.<br />
<a href="https://webbanshee.net/wp-content/uploads/2020/01/IntMail.png"><img loading="lazy" class="aligncenter size-full wp-image-3209" src="https://webbanshee.net/wp-content/uploads/2020/01/IntMail.png" alt="Mail Flow Rule Mark External Mail" width="1042" height="270" srcset="https://webbanshee.net/wp-content/uploads/2020/01/IntMail.png 1042w, https://webbanshee.net/wp-content/uploads/2020/01/IntMail-300x78.png 300w, https://webbanshee.net/wp-content/uploads/2020/01/IntMail-768x199.png 768w, https://webbanshee.net/wp-content/uploads/2020/01/IntMail-1024x265.png 1024w" sizes="(max-width: 1042px) 100vw, 1042px" /></a></p>
</div>
<p>Find a description on the conditions here:  <span style="color: #993333;"><a style="color: #993333;" href="https://docs.microsoft.com/en-us/exchange/policy-and-compliance/mail-flow-rules/conditions-and-exceptions?view=exchserver-2019" target="_blank" rel="noopener noreferrer">Mail flow rule conditions</a></span></p>
<p>Have a nice day!<br />
&nbsp;<br />
</p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/mail-flow-rule-mark-external-mail/">Mail Flow Rule Mark External Mail</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/mail-flow-rule-mark-external-mail/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3145</post-id>	</item>
		<item>
		<title>Out Of Office Multiline Message through PowerShell</title>
		<link>https://webbanshee.net/out-of-office-multiline-message/</link>
					<comments>https://webbanshee.net/out-of-office-multiline-message/#comments</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Sun, 06 Oct 2019 16:35:38 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[AutoReply]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[OOO AutoReply]]></category>
		<category><![CDATA[Out Of Office]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">https://webbanshee.net/?p=3046</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/out-of-office-multiline-message"><img src="https://webbanshee.net/wp-content/uploads/2019/10/OOO_Multiline_Message.svg" /><span class="exTeaser">This post lists some options on how to activate an Out Of Office message via PowerShell and how to preserve the layout of the absence message.</span><br />
<span class="exText">To activate an Out Of Office Message using PowerShell is not a complicated task. But it can be time-consuming when you need to do it for a variety of mailboxes that use a different Out Of Office message layout.<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/out-of-office-multiline-message/">Out Of Office Multiline Message through PowerShell</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<style type="text/css">h2 {font-weight: bold;text-decoration:none;font-size: 20px!Important;}h3 {font-weight: bold;text-decoration:none;font-size: 18px!Important;}.wp-image-2045,.wp-image-2051,.wp-image-2050,.wp-image-2049,.wp-image-2056, .wp-image-2055 {margin-top:2px!Important;margin-right:6px;}.bckgr {background:#ccc;} .see {overflow-x:scroll!Important;overflow-y:hidden;white-space: nowrap;Background:#FDFDF4;border-left: 16px solid #7C98E2; border-top-left-radius:30px; padding-top:15px;padding-left:15px;padding-bottom:10px;scroll-behavior: smooth;}.MsoNormal {background:transparent!Important;} .code-bg {margin-top: -5px;} .RedToPost {position: relative;display: inline-block;cursor: pointer;float: left;background: #D84C56;color: #fff;margin-top:8px;font-weight:bold;} .BlueCopy:hover {opacity: 0.85;}; .RedToPost a {color:#fff;} .RedToPost a:hover {color:#fff;} .RedToPost a:visited {color:#fff;}</style>
<p style="text-align: justify;">We receive requests to activate Out Of Office messages for several mailboxes on a daily base. It is not a complicated task but can be time-consuming when you need to set up Out Of Office messages containing multiple lines, that you adjust within HTML tags, for a variety of mailboxes from several customers. You probably know what I mean: Are the line break tags at the right place? Does the next paragraph begin where it should?</p>
<p style="text-align: justify;">For this reason, I wanted to achieve that we are able just to copy and paste the Out Of Office message from the request, provide the type of the AutoReplyState (enable, disable, schedule) and get visual feedback on the applied attributes, without the need to picture the original customer OOO message in HTML. My script at point 3 of this post will exactly do this.</p>
<p style="text-align: justify;">In the following lines, you can find options on how to activate or disable Out Of Office messages from PowerShell.</p>
<h2><img class="alignnone size-full wp-image-2045" src="https://webbanshee.net/wp-content/uploads/2019/01/round_1.svg" alt="1 -" />Set up a one-liner absence message using PowerShell:</h2>
<p>If you just want to give a short note of your absence the command below should be sufficient:</p>
<div class="wpe-box wpe-box-note3">
<p><strong>Get-Mailbox -Identity <span style="color: #993333;">MailboxToSetupOOO</span> | Set-MailboxAutoReplyConfiguration -AutoReplyState <span style="color: #993333;">Enabled</span> -InternalMessage <span style="color: #993333;">&#8220;EnterYourInternalMessageHere&#8221;</span> -ExternalMessage <span style="color: #993333;">&#8220;EnterYourExternalMessageHere&#8221;</span></strong></p>
</div>
<p>Change the AutoReplyState according to your needs:</p>
<div class="wpe-box wpe-box-note3">
<p><strong><span style="color: #993333;">Enabled</span> = Activation is valid from the point you hit Enter without a defined End-Time</strong><br />
<strong><span style="color: #993333;">Disabled</span> = Deactivates the Out Of Office message. It does not matter if you have defined an Internal or External Message.</strong><br />
<strong><span style="color: #993333;">Scheduled</span> = Define a Start-Time and End-Time during which Out Of Office messages are sent.</strong></p>
</div>
<p style="text-align: justify;">If you set the AutoReplyState to Scheduled you will need to provide a Start-Time and End-Time. Enter the date-format according to your system settings followed by start and end time:</p>
<div class="wpe-box wpe-box-note3">
<p><strong>Get-Mailbox -Identity <span style="color: #993333;">MailboxToSetupOOO</span> | Set-MailboxAutoReplyConfiguration -AutoReplyState <span style="color: #993333;">Scheduled</span> -InternalMessage <span style="color: #993333;">&#8220;EnterYourInternalMessageHere&#8221;</span> -ExternalMessage <span style="color: #993333;">&#8220;EnterYourExternalMessageHere&#8221;</span> -StartTime <span style="color: #993333;">&#8220;DateAccordingYourSystemDateFormatFollowedBy 00:01:00&#8221;</span> -Endtime <span style="color: #993333;">&#8220;DateAccordingYourSystemDateFormatFollowedBy 23:59:00&#8221;</span></strong></p>
</div>
<h2><img class="alignnone size-full wp-image-2051" src="https://webbanshee.net/wp-content/uploads/2019/01/round_2.svg" alt="2 -" />Set up a multiline absence message using HTML tags in PowerShell:</h2>
<p style="text-align: justify;">To set up a multiline Out Of Office message you will need to use HTML tags to preserve the layout.<br />
For example, you receive a request to activate the following message:</p>
<div class="wpe-box wpe-box-note3">
<p>Dear Sender,</p>
<p>Thank you for your email.</p>
<p>I am currently out of the office with no access to my emails.</p>
<p>Please note that your mail will be read with delay.</p>
<p>Kind Regards</p>
</div>
<h3>One option can be to use &lt;br&gt; tags at the end of each line and place an additional &lt;br&gt; tag for an empty line in your InternalMessage / External Message.</h3>
<div class="wpe-box wpe-box-note3">&#8220;Dear Sender,<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
Thank you for your email.<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
I am currently out of the office with no access to my mails.<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
Please note that your mails will be read with delay.<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span><br />
Kind Regards<span style="color: #993333; font-weight: bold;">&lt;br&gt;</span>&#8220;</div>
<p style="text-align: justify;">This option suits mostly scenarios where the message layout does not change and you only want to edit the content. The &lt;br&gt; tags stay where they are.</p>
<h3>The next possibility is a little bit more convenient. Instead of using &lt;br&gt; tags you could use &lt;pre&gt;&lt;/pre&gt; tags and simply paste the Out Of Office message between them:</h3>
<div class="wpe-box wpe-box-note3">
<p>&#8220;<span style="color: #993333; font-weight: bold;">&lt;pre&gt;</span>Dear Sender,</p>
<p>Thank you for your email.</p>
<p>I am currently out of the office with no access to my emails.</p>
<p>Please note that your mail will be read with delay.</p>
<p>Kind Regards<span style="color: #993333; font-weight: bold;">&lt;/pre&gt;</span>&#8221;</p>
</div>
<p>This is also how the script at point 3 works. It utilizes the &lt;pre&gt;&lt;/pre&gt; tags.<br />
</p>
<h2><img class="alignnone size-full wp-image-2050" src="https://webbanshee.net/wp-content/uploads/2019/01/round_3.svg" alt="3 -" />Script to activate a multiline Out Of Office message:</h2>
<p><strong>Usage:</strong></p>
<div class="wpe-box-download" style="padding-left: 10px;"><strong>&#8211; Enter the email address of the mailbox where you want to activate an Out Of Office message.<br />
&#8211; Paste the Out Of Office message. Please ignore possible color differences after pasting the message.<br />
&#8211; Choose the appropriate AutoReplyState.<br />
&#8211; When the script has finished it gives visual feedback. Verify that the applied values are correct.</strong></div>
<p>&nbsp;</p>
<p style="text-align: justify;">Sorry if the common PowerShell colors are displayed here in a different way. It is no easy task to find a plugin that renders and exactly highlights PowerShell in the Backend. ( no hosting on 3rd party servers )<br />
I thought about rewriting the CSS for this one, but it would be too time-consuming. So if you know a plugin or method to highlight PowerShell code that preserves the PowerShell color scheme I would be grateful to get a hint.</p>
<div style="margin-top: 24px;"></div>
<div id="divClipboard" class="see">
<div class="code-bg">
<span style="color: #008000;">#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
    # Activate OOO Messages<br />
    # Written by WebBanshee<br />
    # Feel free to use<br />
    #&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></p>
<p><span style="color: #008000;"># clear screen #</span><br />
    cls</p>
<p><span style="color: #008000;"># set formatlist output to the given value</span><br />
    $FormatEnumerationLimit = $null</p>
<p><span style="color: #008000;"># Mailboxname to set OOO message #</span><br />
    [string] $mbname = Read-Host -prompt &#8216;Enter Mailbox to set OOO&#8217;</p>
<p>        while ($mbname -notlike &#8220;*@*&#8221; -or $mbname -notlike &#8220;*.*&#8221;){</p>
<p>            write-host -ForegroundColor yellow &#8220;Please provide a valid smtp address!&#8221;</p>
<p>            [string] $mbname = Read-Host -prompt &#8216;Enter Mailbox to set OOO&#8217;</p>
<p>             }</p>
<p><span style="color: #008000;"># OOO message #</span><br />
    Write-Host &#8220;&#8221;</p>
<p>    [string] $message = Read-Host -Prompt &#8216;Paste OOO Message here &#8211; Leave blank if you plan to disable&#8217;</p>
<p><span style="color: #008000;"># Place OOO message inside HTML Tags to preserve formatting #</span><br />
    $oootxt = &#8216;&lt;pre&gt;&#8217; + $message + &#8216;&lt;/pre&gt;&#8217;</p>
<p><span style="color: #008000;"># Actions #</span><br />
    Write-Host &#8220;&#8221;</p>
<p>    [string] $mode = Read-Host -Prompt &#8216;(e)nable (d)isable or (s)chedule&#8217; </p>
<p><span style="color: #008000;"># (e)nable #</span><br />
    if ($mode -match &#8220;e&#8221;) {</p>
<p>            get-mailbox -Identity $mbname  | Set-MailboxAutoReplyConfiguration -AutoReplyState Enabled -InternalMessage $oootxt -ExternalMessage $oootxt</p>
<p>    }</p>
<p><span style="color: #008000;"># (d)isable</span><br />
    if ($mode -match &#8220;d&#8221;) {</p>
<p>            get-mailbox -Identity $mbname  | Set-MailboxAutoReplyConfiguration -AutoReplyState Disabled</p>
<p>    }</p>
<p><span style="color: #008000;"># (s)schedule</span><br />
    if ($mode -match &#8220;s&#8221;) {</p>
<p>            [string]$startdate = Read-Host -Prompt &#8216;Enter Start-Date according to your system time. For example: mm/dd/yyyy &#8211; Start-Time will be valid from 00:01&#8217;</p>
<p>            [string]$starttime = &#8220;$startdate 00:01:00&#8221; # You can change the StartTime here</p>
<p>            [string]$enddate = Read-Host -Prompt &#8216;Enter End-Date according to your system time. For example: mm/dd/yyyy &#8211; End-Time will be valid until 23:59&#8217;</p>
<p>            [string]$endtime = &#8220;$enddate 23:59:00&#8221; # You can change the EndTime here</p>
<p>            get-mailbox -Identity $mbname  | Set-MailboxAutoReplyConfiguration -AutoReplyState Scheduled -InternalMessage $oootxt -ExternalMessage $oootxt -StartTime $starttime -EndTime $endtime</p>
<p>    }</p>
<p><span style="color: #008000;"># Display Results</span><br />
    Write-host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;</p>
<p>    Write-host -ForegroundColor green &#8220;The following OOO settings have been applied to mailbox:&#8221; $mbname</p>
<p>    $a = get-mailbox -Identity $mbname | Get-MailboxAutoReplyConfiguration | select AutoReplyState, StartTime , Endtime, InternalMessage, ExternalMessage | fl</p>
<p>    $a</p>
</div>
</div>
<div style="width: 100%; float: right;padding-bottom: 20px;"></div>
<p>Annoyed by waiting for Outlook to start?<br />
Maybe you can sort it out with this one:</p>
<p><a class="wpe-button wpe-button-red" href="https://webbanshee.net/slow-loading-outlook-profile/">Slow loading Outlook profile</a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/out-of-office-multiline-message/">Out Of Office Multiline Message through PowerShell</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/out-of-office-multiline-message/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3046</post-id>	</item>
		<item>
		<title>Lagged mailbox database copy not lagging</title>
		<link>https://webbanshee.net/lagged-mailbox-database-copy-not-lagging/</link>
					<comments>https://webbanshee.net/lagged-mailbox-database-copy-not-lagging/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Wed, 10 Oct 2018 06:10:17 +0000</pubDate>
				<category><![CDATA[Serverside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[MailboxDatabase]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">http://webbanshee.net/?p=1973</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/lagged-copy-not-lagging-exchange-2016/"><img src="https://webbanshee.net/wp-content/uploads/2018/10/LaggedCopyNotLagging.svg" /><span class="exTeaser">After finishing some maintenance tasks on our Exchange Servers we noticed that the lagged mailbox database copy of some of the mailbox databases was not lagging.</span><span class="exText">The replay queue was continuously played down to zero despite of having the ReplayLagTime set to 3 and a half days.<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/lagged-mailbox-database-copy-not-lagging/">Lagged mailbox database copy not lagging</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">After finishing some maintenance tasks on our Exchange Servers we noticed that the lagged mailbox database copy of some of the mailbox databases was not lagging.</p>
<p style="text-align: justify;">The replay queue was continuously played down to zero despite of having the ReplayLagTime set to 3 and a half days.<br />
ContentIndexState was in status Healthy instead of AutoSuspended.</p>
<h4>The following screenshot shows states of  lagged copies on the server where only lagged copies reside. The affected ones have a replay queue count zero or one :<br />
<img loading="lazy" class="alignnone wp-image-1999 size-full" src="https://webbanshee.net/wp-content/uploads/2018/10/DB-States-1.png" alt="Lagged mailbox database copy not lagging" width="881" height="316" srcset="https://webbanshee.net/wp-content/uploads/2018/10/DB-States-1.png 881w, https://webbanshee.net/wp-content/uploads/2018/10/DB-States-1-300x108.png 300w, https://webbanshee.net/wp-content/uploads/2018/10/DB-States-1-768x275.png 768w" sizes="(max-width: 881px) 100vw, 881px" /></h4>
<p style="text-align: justify;">We have for each mailbox database 2 copies and a lagged mailbox database copy in place. According to that the ActivationPreference for each lagged mailbox database copy is 4.<br />
But the mentioned lagged copies appeared to behave like normal copies.<strong> ActivationSuspended</strong> was set to <span style="color: #993333;"><strong>$true</strong></span> since they were born to be lagged copies.</p>
<p style="text-align: justify;">Not every passive copy on the same server ( this server hosts only lagged copies ) showed this behaviour and all parameters for the affected lagged copies were identical with each passive copy where it worked.</p>
<p>My colleague created a new mailbox database that day with 2 copies and a lagged mailbox database copy. After the new database was in place the lagged copy was not lagging as well. This time the passive copy was hosted on another server.</p>
<p style="text-align: justify;">It turns out that all mailbox databases where the lagged mailbox database copy does not work correctly have a normal copy on the same other server. Next step was to check the state of the DatabaseCopyAutoActivationPolicy of this server.</p>
<h4>And yeah , this was it :</h4>
<h4 style="text-align: justify;"><img loading="lazy" class="alignnone size-full wp-image-1983" src="https://webbanshee.net/wp-content/uploads/2018/10/Db-Copy-Blocked-Status.png" alt="DataBaseCopyAutoActivation" width="285" height="81" /><br />
The DatabaseCopyAutoActivationPolicy was set to Blocked. We switched it to unrestricted and stayed patient. After some hours the lagged mailbox database copy started replay logs <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;" /></h4>

<h4 style="font-size: 15px; text-decoration: underline; color: #333333; text-align: justify;">As we understand :</h4>
<h4 style="font-size: 15px; color: #333333; text-align: justify;">Exchange assumes you have a mounted mailbox database, 2 copies and a lagged mailbox database copy in place. When the replication does not see one of the copies it will treat the next available database copy [ in this case the lagged copy ] as the second copy and will play down the replay queue utilizing this copy as a healthy normal copy.</h4>
<h4 style="font-size: 15px; color: #333333; text-align: justify;">As soon the original 2nd copy becomes visible [ setting the DatabaseCopyAutoActivationPolicy state to unrestricted ] the assumed default set is complete ( with min. 2 existing normal copies ) the lagged copy will be treated as lagged mailbox database copy again.</h4>
<p style="text-align: justify;">I think we left one server in state blocked after our maintenance. Luckily it got noticed straight away.</p>
<p style="text-align: justify;">It was not a big task to solve the problem with switching the activation policy to unrestricted , but it took time to get a clue where the culprit was in the chain.<br />
Hope you can save this time with this post.</p>
<p style="text-align: justify;">Have a nice day<span style="color: #ff6600;"><i class="wp-svg-sunrise sunrise"></i></span></p>
<p style="text-align: justify; padding-top: 20px; color: #181818;">Got an Healthy And Upgrading state on your passive copy ? See what it means :</p>
<p><a class="wpe-button wpe-button-red" href="https://webbanshee.net/content-index-state-healthy/">ContentIndexState Healthy And Upgrading</a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/lagged-mailbox-database-copy-not-lagging/">Lagged mailbox database copy not lagging</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/lagged-mailbox-database-copy-not-lagging/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1973</post-id>	</item>
		<item>
		<title>Share contacts Outlook &#8211; How To</title>
		<link>https://webbanshee.net/share-contacts-outlook/</link>
					<comments>https://webbanshee.net/share-contacts-outlook/#respond</comments>
		
		<dc:creator><![CDATA[WebBanshee]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 19:06:59 +0000</pubDate>
				<category><![CDATA[Clientside]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[2016]]></category>
		<category><![CDATA[Contacts]]></category>
		<category><![CDATA[Outlook]]></category>
		<guid isPermaLink="false">http://webbanshee.net/?p=1847</guid>

					<description><![CDATA[<p><a class="ex-link" href="https://webbanshee.net/share-contacts-outlook/"><img src="https://webbanshee.net/wp-content/uploads/2018/09/ShareContacts_02_fin.svg" /><span class="exTeaser">How and in which depth you can share Contacts in Outlook can be confusing sometimes.</span><span class="exText">We often get asked if it would be possible to share Contacts with certain people and manage them centrally ? Read how to achieve this in Outlook<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/share-contacts-outlook/">Share contacts Outlook &#8211; How To</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>How and in which depth you can share Contacts in Outlook can be confusing sometimes. We often get asked if it would be possible to share Contacts with certain people and manage them centrally ?</p>
<p>Well , we do not offer public folders based on the shared character of the environment. For customers without Sharepoint , managing and sharing contacts via Sharepoint isn&#8217;t an option as well. The only thing what&#8217;s left is the classical way via Outlook.</p>
<p>You can create a mailbox before with the only purpose to share contacts out of it.</p>
<p><span style="font-size: 18px;"><strong>Ok , let&#8217;s get straight to it :</strong></span></p>
<p>If you want to share certain contacts with certain people , create a new contact folder and fill it with contacts you want to share with e.g. colleague 1 and colleague 2.</p>
<p><span style="font-size: 18px;"><strong>Navigate to People in the bottom bar :</strong></span></p>
<div class="wpe-box wpe-box-note">
<p><img loading="lazy" class="alignnone wp-image-1862 size-full" src="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_01.jpg" alt="Share contacts Outlook - How To" width="711" height="43" srcset="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_01.jpg 711w, https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_01-300x18.jpg 300w" sizes="(max-width: 711px) 100vw, 711px" /></p>
</div>
<p><span style="font-size: 18px;"><strong>Click your default Contact Folder and create a new folder :</strong></span></p>
<div class="wpe-box wpe-box-note">
<p><img loading="lazy" class="alignnone size-full wp-image-1863" src="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_02.jpg" alt="Share contacts Outlook - How To" width="476" height="168" srcset="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_02.jpg 476w, https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_02-300x106.jpg 300w" sizes="(max-width: 476px) 100vw, 476px" /></p>
</div>
<p><span style="font-size: 18px;"><strong>Right click the just created Contacts folder and choose Share &gt; Share Contacts</strong></span></p>
<div class="wpe-box wpe-box-note">
<p><img loading="lazy" class="alignnone size-full wp-image-1864" src="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_03.jpg" alt="Share contacts Outlook - How To" width="317" height="291" srcset="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_03.jpg 317w, https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_03-300x275.jpg 300w" sizes="(max-width: 317px) 100vw, 317px" /></p>
</div>
<p><span style="font-size: 18px;"><strong>Add the recipients you want to share Contacts with ( e.g. colleague 1 and colleague 2 ). If you tick in <span style="color: #993300; font-weight: bold;">Recipient can add, edit and delete items in this contact folder</span> you will grant Editor permissions to the recipients. In this example we want the recipients to be able to edit those shared Contacts. Click Send when you are done :</strong></span></p>
<div class="wpe-box wpe-box-note">
<p><img loading="lazy" class="alignnone size-full wp-image-1865" src="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_04.jpg" alt="Share contacts Outlook - How To" width="431" height="162" srcset="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_04.jpg 431w, https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_04-300x113.jpg 300w" sizes="(max-width: 431px) 100vw, 431px" /></p>
</div>
<p>You will be prompted for confirmation. The persons you have chosen to share contacts with will be displayed with the granted permissions. In this case Editor, since we have checked this option before.</p>
<p>&nbsp;</p>
<p><span style="font-size: 18px;"><strong>On recipients side open the just received Sharing invitation mail and open the Contacts folder out of the mail :</strong></span></p>
<div class="wpe-box wpe-box-note">
<p><img loading="lazy" class="alignnone size-full wp-image-1866" src="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_05.jpg" alt="Share contacts Outlook - How To" width="307" height="128" srcset="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_05.jpg 307w, https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_05-300x125.jpg 300w" sizes="(max-width: 307px) 100vw, 307px" /></p>
</div>
<p><span style="font-size: 18px;"><strong>The shared Contacts folder will be added to your Contacts :</strong></span></p>
<div class="wpe-box wpe-box-note">
<p><img loading="lazy" class="alignnone size-full wp-image-1867" src="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_06.jpg" alt="Share contacts Outlook - How To" width="252" height="71" /></p>
</div>
<p>The recipients will be able to add &#8211; modify &#8211; delete contacts in the shared Contacts folder, since we have granted them Editor permissions.</p>

<p>&nbsp;</p>
<p><span style="font-size: 18px;"><strong>A more convenient way to share Contacts</strong></span> directly through the permissions tab of the source Contacts folder could have been useful , but this way has its limitations though.<br />
It appears you can just share your default Contacts folder. No sub folders can be shared, which is useful to share different contact folders with certain people. When this fits you your needs choose this way :</p>
<p><span style="font-size: 18px;"><strong>Grant the appropriate permissions on you default Contacts folder :</strong></span></p>
<div class="wpe-box wpe-box-note">
<p><img loading="lazy" class="alignnone size-full wp-image-1868" src="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_07.jpg" alt="Share contacts Outlook - How To" width="395" height="576" srcset="https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_07.jpg 395w, https://webbanshee.net/wp-content/uploads/2018/09/Share_Contacts_07-206x300.jpg 206w" sizes="(max-width: 395px) 100vw, 395px" /></p>
</div>
<p>This will not trigger a sharing invitation mail but in the end we need the permissions, not the mail.</p>
<p><span style="text-decoration: underline; font-size: 18px;"><strong>Conclusion :</strong> </span></p>
<p>Add new people you want to share dedicated Contact folders with ( sub folders of your main Contacts ) by sending a sharing invitation mail. Grant Editor permissions within the mail ( if you want your recipients to be able to add &#8211; modify and delete contact entries. )</p>
<p>Modify or remove permissions via properties and the permissions tab of your Shared Contacts folder.</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><span style="font-size: 18px;"><strong>Note:</strong></span></span></p>
<p>It is not possible to use the shared Contacts from the address book by design.</p>
<p>Good Bye from client side today <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>&nbsp;</p>
<p>You get continously prompted for a password in Outlook ?</p>
<p><a class="wpe-button wpe-button-red" href="https://webbanshee.net/outlook-continuous-password-prompt/">Read how to solve it</a></p>
<p>The post <a rel="nofollow" href="https://webbanshee.net/share-contacts-outlook/">Share contacts Outlook &#8211; How To</a> appeared first on <a rel="nofollow" href="https://webbanshee.net">Webbanshee</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://webbanshee.net/share-contacts-outlook/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1847</post-id>	</item>
	</channel>
</rss>
