<?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#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SMTP Port 25</title>
	<atom:link href="http://smtpport25.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://smtpport25.wordpress.com</link>
	<description>Anything and Everything Related Exchange, Emails and Active Directory and Scripting, Its My Life !!!</description>
	<lastBuildDate>Fri, 27 Jan 2012 08:09:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='smtpport25.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/59f56e723b9bced7de772667204b6f88?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>SMTP Port 25</title>
		<link>http://smtpport25.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://smtpport25.wordpress.com/osd.xml" title="SMTP Port 25" />
	<atom:link rel='hub' href='http://smtpport25.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Exchange 2010 SP1/SP2 &#8211; Deleting email sent to Wrong DL</title>
		<link>http://smtpport25.wordpress.com/2012/01/27/exchange-2010-sp1sp2-deleting-email-sent-to-wrong-dl/</link>
		<comments>http://smtpport25.wordpress.com/2012/01/27/exchange-2010-sp1sp2-deleting-email-sent-to-wrong-dl/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 07:42:17 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[deletecontent]]></category>
		<category><![CDATA[mailbox-search]]></category>
		<category><![CDATA[searchquery]]></category>

		<guid isPermaLink="false">https://smtpport25.wordpress.com/?p=1751</guid>
		<description><![CDATA[As an Exchange Admin, how many times have you got a request to delete email, from your senior management, for deleting specific emails from specific mailboxes? I am sure most of you would say, ”Its Crazy Man”. I personally have seen very important emails being sent to a wrong DL and management coming to us [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1751&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As an Exchange Admin, how many times have you got a request to delete email, from your senior management, for deleting specific emails from specific mailboxes? I am sure most of you would say, ”Its Crazy Man”. I personally have seen very important emails being sent to a wrong DL and management coming to us for help. Users may even try to recall the message, with only some being successful. This would add a new set of emails in the mailbox. There can also be situations like, where Spam emails are sent to the DL users’ mailbox, or there is a requirement to delete emails between specific dates. These are the various possible requirements from users, and it does not come as a surprise to me.</p>
<p>In Exchange 2000 and 2003, this can be achieved by using Exmerge.</p>
<p>In Exchange 2007, this can be achieved by using export-mailbox and this cmdlet has enhanced in Exchange 2010 to New-MailboxExportrequest. The cmdlet does not comes with the option to delete the contents. MS also have added couple new cmdlets to export and import the content of the mailbox</p>
<p>In Exchange 2010, this can be achieved using search-Mailbox</p>
<p>Here are simple steps for the Exchange Admins, who can get this task done real quick in Exchange 2010 SP1/SP2 using search-mailbox. But, keep in mind that, these steps suggest permanent deletion, which removes emails from dumpster as well. So only option to recover is go back to backup.</p>
<ol>
<li>In Exchange 2010, if you want to Import and Export mailbox content and delete unwanted email from the mailbox then, you need to have <strong>Mailbox Import Export management role</strong> assigned.</li>
<li>Below Powershell cmdlet, New-ManagmentRoleAssignment helps us to assign the right management role &#8220;<strong>mailbox Import Export</strong>&#8221; to a particular user.</li>
</ol>
<p><pre class="brush: powershell;">
New-managementRoleAssignment –Role “Mailbox Import Export” –User administrator
</pre></p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/clip_image0021.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image002" src="http://smtpport25.files.wordpress.com/2012/01/clip_image002_thumb1.jpg?w=518&#038;h=163" alt="clip_image002" width="518" height="163" border="0" /></a></p>
<p>Figure 1.  Assigning a new Management role for a user Administrator</p>
<p>3. Similarly if you want to have the permission assigned to a group of users, then you can use the below cmdlet. Make sure you assign the permission to the universal security group.</p>
<p><pre class="brush: powershell;">
New-ManagementRoleAssignment -Name &quot;Import-Export Admins&quot; -SecurityGroup &quot;Security group name&quot; -Role &quot;Mailbox Import Export&quot;
</pre></p>
<p>4. Once you have the necessary permission to run the search-mailbox then, we are good to start. Lets start with search and on logging mode, so that we have the search result logged in the target mailbox</p>
<p>5.  Below is the Powershell cmdlet search-mailbox, which goes through each mailbox in distribution group OrgVIP, in log only mode. It will generate the report on the log, in the Target mailbox temp, under the folder the Search result. Figure 2. shows the details of the execution.</p>
<p><pre class="brush: powershell;">
get-DistributiongroupMember Orgvip | Search-Mailbox -SearchQuery subject:&quot;Organization Financial Report&quot; -TargetMailbox Temp -TargetFolder SearchResult -LogLevel Full
</pre></p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/clip_image0041.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image004" src="http://smtpport25.files.wordpress.com/2012/01/clip_image004_thumb1.jpg?w=530&#038;h=129" alt="clip_image004" width="530" height="129" border="0" /></a></p>
<p>Figure 2. Execution details of the Search-mailbox cmdlet with logonly mode</p>
<p>6. With loglevel Full option the cmdlet will generate the CSV in the target mailbox. Figure 3. shows the details of the CSV result file.</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/clip_image0061.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image006" src="http://smtpport25.files.wordpress.com/2012/01/clip_image006_thumb1.jpg?w=530&#038;h=285" alt="clip_image006" width="530" height="285" border="0" /></a></p>
<p>Figure 3. Details after execution of search-mailbox in log only mode.</p>
<p>6. It’s always recommended to have a copy of these emails, which are being searched for, as a back-up reference. To get a copy of all the reference email, just remove the -logonly option</p>
<p><pre class="brush: powershell;">
get-DistributiongroupMember Orgvip | Search-Mailbox -SearchQuery subject:&quot;Organization Financial Report&quot; -TargetMailbox Temp -TargetFolder SearchResult -LogLevel Full
</pre></p>
<p>7. Figure 4. Shows the details of the searched emails in the target mailbox. It has the copy of the emails with the detail location. If an email is deleted/moved, it will show the current location folder, and if it is moved to the dumpster, then the result would also show the dumpster folder details.</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/clip_image0081.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image008" src="http://smtpport25.files.wordpress.com/2012/01/clip_image008_thumb1.jpg?w=530&#038;h=244" alt="clip_image008" width="530" height="244" border="0" /></a></p>
<p>Figure 4. Copy the searched email to the target mailbox.</p>
<p>8. Finally we have the copy of the emails. Now, It is time to delete the emails. Below is the Powershell cmdlet, which searches each mailbox from the DL and deletes the contents. To delete the content we need to use the option Deletecontent. You really don’t have to provide the target mailbox parameter for deleting the emails.</p>
<p><pre class="brush: powershell;">get-DistributiongroupMember Orgvip | Search-Mailbox -SearchQuery subject:&quot;Organization Financial Report&quot; -DeleteContent
</pre></p>
<p>9. The search query is the important attribute of the cmdlet. It can be passed with various options, to get more accurate search results. <a href="http://technet.microsoft.com/en-us/library/bb232132.aspx">TechNet Reference</a></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="95">Property</td>
<td valign="top" width="188">Example</td>
</tr>
<tr>
<td valign="top" width="95">Attachments</td>
<td valign="top" width="188">attachment:annualreport.pptx</td>
</tr>
<tr>
<td valign="top" width="95">Cc</td>
<td valign="top" width="188">cc:paul shencc:paulscc:pauls@contoso.com</td>
</tr>
<tr>
<td valign="top" width="95">From</td>
<td valign="top" width="188">from:bharat sunejafrom:bsunejafrom:bsuneja@contoso.com</td>
</tr>
<tr>
<td valign="top" width="95">Sent</td>
<td valign="top" width="188">sent:yesterday</td>
</tr>
<tr>
<td valign="top" width="95">Subject</td>
<td valign="top" width="188">Subject:&#8221;patent filing&#8221;</td>
</tr>
<tr>
<td valign="top" width="95">To</td>
<td valign="top" width="188">to:&#8221;ben smith&#8221;to:bsmithto:besmith@contoso.com</td>
</tr>
<tr>
<td valign="top" width="95">Body</td>
<td valign="top" width="188">Financial Report</td>
</tr>
</tbody>
</table>
<p>10. Couples of various situation to use search-mailbox with delete content</p>
<p>A. Searching and deleting email containing attachment spam.csv in all the mailbox in the organization</p>
<p>
get-mailbox -resultsize unlimited | Search-Mailbox -SearchQuery attachment:&quot;spam.csv&quot; -DeleteContent
</p>
<p>D. Searching and deleting emails containing attachment spam.csv and subject is hi against all the mailbox in the organization</p>
<p><pre class="brush: powershell;">
get-mailbox -resultsize unlimited | Search-Mailbox -SearchQuery 'attachment:&quot;spam.csv&quot; and subject:Hi' -DeleteContent
</pre></p>
<p>C. If you wanted to display the details of the search result on the shell then you need to use the option Estimateresultonly</p>
<p><pre class="brush: powershell;">
get-mailbox -server &amp;quot;Servername | Search-Mailbox -SearchQuery 'attachment:&quot;spam.csv&quot; and subject:Hi' -Estimateresultonly
</pre></p>
<p>D. Delete all the email from all the mailbox of a before the specific date. In the below example I am deleting all the email before the date 18th Sep 2011(&#8220;dd/mm/yyy&#8217;)</p>
<p><pre class="brush: powershell;">
get-mailbox -database &lt;Databasename&gt; -resultsize unlimited | Search-Mailbox -SearchQuery Received:&lt;$(&quot;09/18/201&quot;) -deletecontent
</pre></p>
<p>E. Delete all the email from all the mailbox of a database between the specific dates. In the below example I am deleting all the email before the date 18th Sep 2011(&#8220;dd/mm/yyy&#8217;) &#8211; 1st Jan 2012</p>
<p><pre class="brush: powershell;">
get-mailbox -database &quot;database name&quot; -resultsize unlimited | Search-Mailbox -SearchQuery Received:&lt;$(&quot;09/18/2011&quot;) –deletecontent
</pre></p>
<p>F. Delete all the email from the mailbox between the specific date</p>
<p><pre class="brush: powershell;">
Search-Mailbox -Identity &lt;mailbox Name&gt; -SearchQuery 'Received:&gt;$(&quot;09/18/2011&quot;) and Received:&lt;$(&quot;01/27/2012&quot;)` -deletecontent
</pre></p>
<p>G. Delete all the email from yesterday against the member of the distribution group.</p>
<p><pre class="brush: powershell;">
get-DistributiongroupMember Orgvip | Search-Mailbox -SearchQuery Received:today -deletecontent -confirm:false   </pre></p>
<p>H. Delete all the email on a specific date from a specific mailbox.</p>
<p><pre class="brush: powershell;">
Search-Mailbox &lt;user mailbox&gt; -SearchQuery Received:01/27/2012 -deletecontent
</pre></p>
<p>Search-mailbox is a cool and nice cmdlet with some good options to get the required result. I think this is make life of the exchange administrator easier on a tough situations. Hope this helps you to face a real time scenarios <img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style:none;" src="http://smtpport25.files.wordpress.com/2012/01/wlemoticon-winkingsmile1.png" alt="Winking smile" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1751/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1751/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1751/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1751/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1751/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1751/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1751/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1751/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1751/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1751/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1751/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1751/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1751/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1751/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1751&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2012/01/27/exchange-2010-sp1sp2-deleting-email-sent-to-wrong-dl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/clip_image002_thumb1.jpg" medium="image">
			<media:title type="html">clip_image002</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/clip_image004_thumb1.jpg" medium="image">
			<media:title type="html">clip_image004</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/clip_image006_thumb1.jpg" medium="image">
			<media:title type="html">clip_image006</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/clip_image008_thumb1.jpg" medium="image">
			<media:title type="html">clip_image008</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/wlemoticon-winkingsmile1.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring Exchange 2010 clients Outlook and Outlook Web App as Lync 2010 end points(IM and presence Integration with Exchange 2010 clients) using PowerShell</title>
		<link>http://smtpport25.wordpress.com/2012/01/04/configuring-exchange-2010-clients-outlook-and-outlook-web-app-as-lync-2010-end-pointsim-and-presence-integration-with-exchange-2010-clients-using-powershell/</link>
		<comments>http://smtpport25.wordpress.com/2012/01/04/configuring-exchange-2010-clients-outlook-and-outlook-web-app-as-lync-2010-end-pointsim-and-presence-integration-with-exchange-2010-clients-using-powershell/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 04:27:00 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Lync 2010]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[lync 2010]]></category>
		<category><![CDATA[OWA]]></category>
		<category><![CDATA[presence]]></category>

		<guid isPermaLink="false">https://smtpport25.wordpress.com/?p=1694</guid>
		<description><![CDATA[One of the main purposes of Lync is IM and presence in the organization. The main idea is to initiate IM conversation on whichever the client you are and also to know the presence status if user is available for chat and kick the chat conversation. The main and cool idea of Microsoft is to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1694&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the main purposes of Lync is IM and presence in the organization. The main idea is to initiate IM conversation on whichever the client you are and also to know the presence status if user is available for chat and kick the chat conversation. The main and cool idea of Microsoft is to integrate all its application and that’s been one of the key successes with Lync and Exchange.</p>
<p><strong>Lync 2010 IM and Presence Integration with Outlook</strong></p>
<p><strong>Prerequisites:</strong></p>
<blockquote><p>1. Deployed Microsoft Exchange Server 2010 and Lync Server 2010.<br />
2. Lync Frontend pool where user is located and client Access server can connect<br />
3. Lync and mailbox enabled users</p></blockquote>
<p>Lync 2010 IM and presence integration with outlook is automatically performed when you install Lync client on the work satiation. Lync client installs all the necessary add-ins for the outlook to pick up the presence details and also allows to chat directly from the outlook. This feature is only available in outlook 2007 and outlook 2010 clients. Below Figure 1 is reference snap.</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb.png?w=464&#038;h=224" alt="image" width="464" height="224" border="0" /></a></p>
<p>Figure 1. Lync user presence on outlook client</p>
<p>You can configure the bunch of settings on the Lync client to integrate with Microsoft Exchange or Microsoft Outlook. Some of the settings like below Figure 2.</p>
<p>1. Update the presence based on my calendar information.<br />
2. Save instance message conversations in my email conversations history folder etc..</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb1.png?w=460&#038;h=412" alt="image" width="460" height="412" border="0" /></a></p>
<p>Figure 2. Lync client integration with Microsoft Exchange and Microsoft outlook</p>
<p><strong>Lync 2010 IM and Presence Integration with Outlook Web App</strong></p>
<p>Lync 2010 IM and presence with outlook Web App is not automatically integrated. Specific configuration has to be performed.</p>
<p><strong>Prerequisites:</strong></p>
<blockquote><p>1. Deployed Microsoft Exchange Server 2010 and Lync Server 2010.<br />
2. Lync Frontend pool where user is located and client Access server can connect<br />
3. Lync and mailbox enabled users<br />
4. Exchange Certificate to be configured with Lync for integration (Make sure CA is trusted by both Exchange 2010 and Lync 2010)</p></blockquote>
<p><strong>Preparing the CAS servers for the integration</strong></p>
<p>1. Download CWAOWASSPMain.msi from <a href="http://go.microsoft.com/fwlink/?LinkId=199440">Microsoft Office Communications Server 2010 R2 Web Service Provider</a> and extract the file  “c:\Web Service provider Installer Package” and it will extract below mentioned files. Execute and install “CWAOWAASSP.msi”</p>
<blockquote><p>1. CWAOWAASSP.msi<br />
2. Donnetfx35setup.exe<br />
3. UcamRedist.msi<br />
4. Vcredist_x64.exe</p></blockquote>
<p>2. Download and Install the hotfix for OCS 2007 R2 web service provider from <a href="http://go.microsoft.com/fwlink/?linkid=199437">OCS 2007 R2 Web Service Provider Hotfix</a></p>
<p>3. Update Unified Communications Managed API 2.0 Redist (64 Bit) from <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=1F565A42-71D2-4FBD-8AE0-4B179E8F02AB">Hotfix KB 2282949</a></p>
<p><strong>Configuring Exchange 2010</strong></p>
<p>1. Get the exchange certificate using the below PowerShell command</p>
<blockquote><p>$Excert = (Get-ExchangeCertificate | Where {$_.Services -like &#8220;*IIS*&#8221;}).Thumbprint<br />
$Excert</p></blockquote>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image2.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb2.png?w=516&#038;h=95" alt="image" width="516" height="95" border="0" /></a></p>
<p>2. Using the above exchange certificate configure the OWA virtual directory.  Need to make sure to provide appropriate parameter “Instantmessagingservername” with front end pool name. In the below example I have given as lynccst.abc.com which is the front end pool name in my lab.</p>
<blockquote><p>Get-ExchangeServer | Get-OWAVirtualDirectory | Set-OWAVirtualDirectory -InstantMessagingType OCS -InstantMessagingEnabled:$true -InstantMessagingCertificateThumbprint $Excert -InstantMessagingServerName lyncst.abc.com</p></blockquote>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image3.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb3.png?w=524&#038;h=95" alt="image" width="524" height="95" border="0" /></a></p>
<p><strong>Configure the Lync 2010</strong></p>
<p>1. Access Lync Server management shell and execute the PowerShell cmdlet Get-Cssite to get the Site ID. In our lab the site ID is 1. Below is reference snap</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image4.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb4.png?w=519&#038;h=203" alt="image" width="519" height="203" border="0" /></a></p>
<p>2. Next we need to configure the Trusted application pool and Add ExchangeOutlookWebAccess as Trusted application</p>
<p>3. To configure Trusted application pool use the below mentioned PowerShell command on Lync management shell with the below parameter. You can ignore the warning message as its refering to the computer object which does not exists in the AD</p>
<ul>
<li>Identity = CAS server or CAS Server Arrayname or any SAN name defined in the certificate</li>
<li>Registrar = Lync Frontend pool</li>
<li>SiteID = site id which we picked above</li>
<li>RequiresReplication = $false</li>
</ul>
<blockquote><p>New-CsTrustedApplicationPool -Identity mail.abc.com -Registrar lyncst.abc.com -Site 1 -RequiresReplication $false</p></blockquote>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image5.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb5.png?w=525&#038;h=499" alt="image" width="525" height="499" border="0" /></a></p>
<p>4. Add Exchangeoutlookwebapp to the Trusted application using the PowerShell cmdlet and parameter as defined below</p>
<ul>
<li>ApplicationId = ExchangeOutlookWebApp</li>
<li>TrustedApplicationPoolFqdn = CAS server or CAS Server Array name or any SAN name defined in the certificate</li>
<li>pool = Any free port (You can check the unused port using netstat -a | findstr 5060)</li>
</ul>
<p>New-CsTrustedApplication -ApplicationId ExchangeOutlookWebApp -TrustedApplicationPoolFqdn mail.abc.com -Port 5060</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image6.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb6.png?w=530&#038;h=242" alt="image" width="530" height="242" border="0" /></a></p>
<p>5. Finally its time to publish the topology using the PowerShell cmdlet Enable-CStopology</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image7.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb7.png?w=530&#038;h=156" alt="image" width="530" height="156" border="0" /></a></p>
<p>6. login to the OWA and you should be able to view the status of the users.</p>
<p><a href="http://smtpport25.files.wordpress.com/2012/01/image8.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="image" src="http://smtpport25.files.wordpress.com/2012/01/image_thumb8.png?w=530&#038;h=161" alt="image" width="530" height="161" border="0" /></a></p>
<p>I think every organization should use this feature to integrate between Lync 2010 and Exchange 2010. This makes life easier where users can initiate chat from any client they are in. In the above example I have defined only the integration with one front end pool from a specific CAS server. If you have multiple front end pool then the connected pool will proxy the request to the other pool. In a bigger organization where you have multiple AD site and frontend pool for each site then you may follow the same progress and configure the CAS server and the frontend pool on the specific site. Its also a best practice to configure in this fashion but there is definitely a additional load on the CAS server.</p>
<p>Reference link : <a href="http://technet.microsoft.com/en-us/library/gg420962.aspx" target="_blank">Microsoft TechNet</a></p>
<p>I hope you can use this in your organization as well <img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style:none;" src="http://smtpport25.files.wordpress.com/2012/01/wlemoticon-winkingsmile.png" alt="Winking smile" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1694/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1694&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2012/01/04/configuring-exchange-2010-clients-outlook-and-outlook-web-app-as-lync-2010-end-pointsim-and-presence-integration-with-exchange-2010-clients-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2012/01/wlemoticon-winkingsmile.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Director role in Lync 2010</title>
		<link>http://smtpport25.wordpress.com/2011/12/29/director-role-in-lync-2010/</link>
		<comments>http://smtpport25.wordpress.com/2011/12/29/director-role-in-lync-2010/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 17:46:00 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Lync 2010]]></category>
		<category><![CDATA[director]]></category>
		<category><![CDATA[lync 2010]]></category>
		<category><![CDATA[pool]]></category>
		<category><![CDATA[role]]></category>

		<guid isPermaLink="false">https://smtpport25.wordpress.com/?p=1679</guid>
		<description><![CDATA[Microsoft has introduced a new dedicated role in Lync 2010 and its known as Directory role. In OCS 2007 and R2 this role existed but was not a explicit role. it was just a frontend server with out any users homed on it. It’s server which is generally placed before the front end pool. Its [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1679&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Microsoft has introduced a new dedicated role in Lync 2010 and its known as Directory role. In OCS 2007 and R2 this role existed but was not a explicit role. it was just a frontend server with out any users homed on it.</p>
<p>It’s server which is generally placed before the front end pool. Its purely a optional server and it can be a single Directory role server or pool of servers behind a hardware load balancer or DNS load balancing. It can disadvantage if you have a single directory role server when it goes down. So its recommended to have multiple servers into the directory pool to avoid single point of failure. One more way of avoiding single point of failure is add multiple SRV records. One SRV record for Directory pool and other one for the Front end pool with different preference.</p>
<p>This role can only be deployed on the sever running Lync server2010 Enterprise edition and it cannot clubbed with any other role.</p>
<p><img style="margin:5px;" src="http://i.technet.microsoft.com/gg398228.86d47125-974d-4a4e-a9d7-9e87d29721d0(en-us,OCS.14).jpg" alt="Director Pool Topology diagram" width="376" height="244" /></p>
<p><strong>figure 1. Directory server/pool placement.</strong></p>
<p>Director role acts has a mediator between Lync 2010 client and front end pool. Lync 2010 client can be coming form the Internal or Internet and service offered by the director server varies depending on the client source(Internal or Internet)</p>
<p><strong>Director role service for Internal client</strong></p>
<p>During deployment SRV record should be pointing to the director pool. So when the client issues a request on the SRV _sipinternaltls._tcp.&lt;domain&gt;.com record , then the service is handled by the director pool and it determine the front end pool where the users are located from its local database and and redirect to the correct pool. Its one more useful when you have a multiple front end pool.</p>
<p>Once the client determines its front end pool then director role server will not be communicated any more.</p>
<p><strong>Director role service for Internet client</strong></p>
<p>The main purpose of director role is for the users/client coming from the internet. Though its optional, its recommended to implement for security reasons and it allows and authenticates  clients are connecting from Internet. When users from the internet tries to connect the Lync server, it talks to the edge server and it will be forwards to director for the authentication. Once client is authenticated then it proxies the client request to the appropriate front end pool. It also maintains the communication path between the client and the user&#8217;s home pool as well as the Edge Server.</p>
<p><a href="http://blogs.technet.com/b/drrez/archive/2010/08/09/why-deploy-a-director.aspx">Refence link from DR Rez</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1679/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1679&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/12/29/director-role-in-lync-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://i.technet.microsoft.com/gg398228.86d47125-974d-4a4e-a9d7-9e87d29721d0(en-us,OCS.14).jpg" medium="image">
			<media:title type="html">Director Pool Topology diagram</media:title>
		</media:content>
	</item>
		<item>
		<title>DNS Requirement for Remote Access and local access of Lync 2010 client users</title>
		<link>http://smtpport25.wordpress.com/2011/12/29/dns-requirement-for-remote-access-and-local-access-of-lync-2010-client-users/</link>
		<comments>http://smtpport25.wordpress.com/2011/12/29/dns-requirement-for-remote-access-and-local-access-of-lync-2010-client-users/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 15:26:00 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Lync 2010]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[lync 2010]]></category>
		<category><![CDATA[remote access]]></category>

		<guid isPermaLink="false">https://smtpport25.wordpress.com/?p=1674</guid>
		<description><![CDATA[DNS configuration varies depending the current DNS settings in the organization. You need get check if the current DNS is configured with DNS split brain syndrome or not. DNS split brain syndrome  is a beautiful concept as such and its very useful in a organization where you have same domain name space is followed in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1674&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DNS configuration varies depending the current DNS settings in the organization. You need get check if the current DNS is configured with DNS split brain syndrome or not. DNS split brain syndrome  is a beautiful concept as such and its very useful in a organization where you have same domain name space is followed in internal and external DNS.</p>
<p>Eg.</p>
<p>Internal DNS name space : abc.com<br />
External DNS name space : abc.com</p>
<p>DNS with out split brain syndrome is where internal and external name space is different.</p>
<p>Eg.</p>
<p>Internal DNS name space : abc.local<br />
External DNS name space : abc.com</p>
<p>Most organization follow this for security reasons.</p>
<p>Lets understand how the Lync Client 2010 will connect when you have two different name space. Before we get into this, lets understand what lync 2010 client needs to connect to its frontend server</p>
<p>When user enters the email address Eg. Krishna@abc.com in the lync client and click on connect then the client will take the user email domain eg abc.com and try to locate the sip server  using srv record in the DNS. SRV record will be in this format eg. “_sipinternaltls._tcp.abc.com” where abc.com is the domain name. With this SRV record lync client connects and access the front-end pool on port 5061.</p>
<p>lync client tries to query the SRV record in the following order and connects using the best available SRV record</p>
<p>_sipinternaltls._tcp.abc.com<br />
_sipinternal._tcp.abc.com<br />
_sip._tls.abc.com</p>
<p>With this information lets focus on the configuration required for the internal access of lync 2010 clients</p>
<p>Create a zone in the internal DNS that matches the external DNS zone (for example, abc.com) and create DNS A records corresponding to the Lync Server 2010 pool used for automatic configuration. For example, if a user is homed on pool01.abc.local but signs into Lync as user@abc.com, create an internal DNS zone called abc.com and inside it, create a DNS A record for pool01.abc.com or you can create a pin point zone which matching the external DNS zone. pin point zone can only be created using dnscmd.exe. below is the example to create pin point zone in the internal dns for the domain abc.com and front-end pool name pool01.abc.com</p>
<p>dnscmd . /zoneadd _sipinternaltls._tcp.abc.com. /dsprimary<br />
dnscmd . /recordadd _sipinternaltls._tcp.abc.com. @ SRV 0 0 5061 pool01.abc.com.<br />
dnscmd . /zoneadd pool01.abc.com. /dsprimary<br />
dnscmd . /recordadd pool01.contoso.com. @ A 192.168.1.10<br />
dnscmd . /recordadd pool01.contoso.com. @ A 192.168.1.11</p>
<p>We are good from the internal, similar configuration needs to be done from the Internet DNS as well.</p>
<p>Create a SRV record in Internet DNS &#8220;_sip._tls.abc.com&#8221; where abc.com is the domain name</p>
<p>Eg.<br />
dnscmd . /recordadd _sip._tls.abc.com. @ SRV 0 0 443</p>
<p>As discussed earlier, lync client uses specific order to query the SRV records. When the lync client is accessing from the internet then the first two SRV request will fail as its not available in the Internet DNS zone and it would connect using the last SRV record “_sip._tls.abc.com” which is defined in the DNS zone</p>
<p>I hope this information helps you to have better understanding the DNS requirement<img class="wlEmoticon wlEmoticon-smile" style="border-style:none;" src="http://smtpport25.files.wordpress.com/2011/12/wlemoticon-smile.png" alt="Smile" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1674/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1674&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/12/29/dns-requirement-for-remote-access-and-local-access-of-lync-2010-client-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/12/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating and Configuring Custom Offline Address book with Web-Based Distribution in Exchange 2010 using PowerShell</title>
		<link>http://smtpport25.wordpress.com/2011/10/30/creating-and-configuring-custom-offline-address-book-with-web-based-distribution-in-exchange-2010-using-powershell/</link>
		<comments>http://smtpport25.wordpress.com/2011/10/30/creating-and-configuring-custom-offline-address-book-with-web-based-distribution-in-exchange-2010-using-powershell/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 15:01:00 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[exchagne 2010]]></category>
		<category><![CDATA[oab]]></category>
		<category><![CDATA[offline address book]]></category>
		<category><![CDATA[web distribution point]]></category>

		<guid isPermaLink="false">https://smtpport25.wordpress.com/2011/10/30/creating-and-configuring-custom-offline-address-book-with-web-based-distribution-in-exchange-2010-using-powershell/</guid>
		<description><![CDATA[What is offline address book? Its a copy of address book that allow us to download via outlook client. The main use of offline address book is to allow access address book when the users are disconnected from the network or when they are working offline/cached mode. OAB has evolved thought various versions like OAB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1671&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What is offline address book? Its a copy of address book that allow us to download via outlook client. The main use of offline address book is to allow access address book when the users are disconnected from the network or when they are working offline/cached mode.</p>
<p>OAB has evolved thought various versions like OAB Version2, OAB Version 3 and now its OAB Version4. OAB Version 4 was introduced in Exchange 2003 sp2 and same is still continued in Exchange 2007 and Exchange 2010.</p>
<p>Microsoft Introduced the concept of Web-based distribution point from Exchange 2007, it has various advantages over legacy public folder distribution, thought its still supported. Web-based distribution is the most effective and stable way to create, configure and download OAB. Web-based distribution supports more clients, consumes less bandwidth. The OAB is virtual directory in the client access server. This virtual directory is created on default website in IIS and configured for Internal Access.</p>
<p>Before we configure Multiple OAB lets try to understand how OAB generation and web-distribution works together and how outlook downloads the OAB to its client machine.</p>
<p>1. First Mailbox Server in the Organization is identified as OAB Generation Server. (generally moved to different server later point)</p>
<p>2. OABGen service running on the mailbox server helps to generate, creates and updates OAB files. OABGen service is part of the System Attendant Service. All OAB Generated file by default will be located at path “\Program Files\Microsoft\Exchange Server\V14\ExchangeOAB”.</p>
<p>3. OABGen communicates with the active directory and generates the address book for all the mailboxes, contacts and other exchange resources in the Exchange organization.</p>
<p>4. OAB files in the mailbox server are compressed file with the extension .LZX format.</p>
<p>5. OAB files are generated in Exchange 2010 Mailbox servers and outlook do not connect directory to the mailbox servers. The solution approach is to use Client Access Server role with web based distribution.</p>
<p>6. On every Client Access Role server, a virtual directory called OAB runs within the default web site. This virtual directory helps in distributing the OAB</p>
<p>7. Do you think we got the complete answer ? No. How does the OAB virtual directory gets the OAB data files from the mailbox server.</p>
<p>8. The answer is, Microsoft Exchange File Distribution Service running on the Client access Server.</p>
<p>9. Microsoft Exchange File Distribution Servers polls the OABGen Server and copies the OAB data from the mailbox servers to CAS server.  Once the complete OAB data is copied then if there is any update then only that data is synchronized with CAS server. The synchronization or poll frequency is 8 hours by default and you can change it if required using PowerShell cmdlets or Exchange console</p>
<p>10. Outlook clients uses the web https URL of the web distribution point and it downloads the OAB into the local computer.</p>
<p>Lets create and configure a new OAB for Particular region and the same configuration steps can be replicated in various region based on the requirement(to create multiple OAB). The main idea is to avoid having mutiple CAS (Multiple web-distribution point) servers in each region pinting to one OAB generating server. Each of the web-distribution server from different region will have to contact the centralized OAB generation server to get the updates. <strong>To avoid this scenario we can create additional OAB generating server in each region and configure web-distribution servers pointing to OAB generating server in the local region. </strong></p>
<p>In the below configuration we have a AD site &#8220;<strong>India</strong>&#8221; and will be creating a new OAB and will point all the web distribution points to it</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="43">Sl.</td>
<td valign="top" width="193">Server name</td>
<td valign="top" width="176">Role</td>
<td valign="top" width="135">AD site</td>
</tr>
<tr>
<td valign="top" width="43">1.</td>
<td valign="top" width="193">KEXCHDC</td>
<td valign="top" width="176">Domain Controller</td>
<td valign="top" width="135">India</td>
</tr>
<tr>
<td valign="top" width="43">2.</td>
<td valign="top" width="193">KEXCHHC</td>
<td valign="top" width="176">Hub transport server and Client access server</td>
<td valign="top" width="135">India</td>
</tr>
<tr>
<td valign="top" width="43">3.</td>
<td valign="top" width="193">KEXCHMHC01</td>
<td valign="top" width="176">Mailbox Server</td>
<td valign="top" width="135">India</td>
</tr>
</tbody>
</table>
<p>Below is the following activities we will be performing</p>
<p>1. Creating new Offline Address book and configuring web distribution point</p>
<p>2. Updating the address book</p>
<p>3. Configuring mailbox Databases with new OAB</p>
<p>4. Downloading OAB and verification from outlook client</p>
<p><strong>1. Creating Address book and configuring web distribution point</strong></p>
<p>&nbsp;</p>
<p>We can create and manage offline address book (OAB) using PowerShell cmdlets. To create a new Offline address book , use the cmdlet New-offlineaddressbook. Below cmdlet creates a new OAB &#8220;India &#8211; OAB&#8221; on a Mailbox server &#8220;KEXCHMHC01&#8243; and it also adds default global address list into the OAB. Figure 1. show the execution result of new-offlineaddresbook cmdlet. Its throws the warning &#8220;OAB needs further configuration and users will not be able to download offline address book&#8221;. At the moment OAB not configured for web distribution or public folder distribution, this can be ignored at the moment.</p>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="570">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><em><strong>New-offlineAddressbook -name &#8220;India-OAB&#8221; -addresslist &#8220;\default global address list&#8221; -server &#8220;KEXCHMHC01&#8243;</strong></em></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image002.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image002" src="http://smtpport25.files.wordpress.com/2011/10/clip_image002_thumb.jpg?w=506&#038;h=140" alt="clip_image002" width="506" height="140" border="0" /></a></p>
<p><strong>Figure 1.</strong> Create new OAB &#8220;India &#8211; OAB</p>
<p>We created new OAB &#8220;India &#8211; OAB&#8221; and now lets configure it with web-distribution points. Before we configure it we need to get the list of all web distribution servers for India region. Below cmdlet queries all the Client Access(web distribution servers) in the India AD site and assigns to the variable $IndiaCasServers. Figure 2 has the execution summary of the same</p>
<p>&nbsp;</p>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="606">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><em><strong>$IndiaCasservers = Get-Exchangeserver | ?{($_.admindisplayversion -like &#8220;*14*&#8221;) -and ($_.site -like &#8220;*India&#8221;) -and ($_.serverrole -like &#8220;*clientaccess*&#8221;)} | %{$_.name}</strong></em></p>
<p><em><strong>$IndiaCasservers</strong></em></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image004.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image004" src="http://smtpport25.files.wordpress.com/2011/10/clip_image004_thumb.jpg?w=530&#038;h=151" alt="clip_image004" width="530" height="151" border="0" /></a></p>
<p><strong>Figure 2.</strong> Get the list of all the Web distribution servers in India AD site</p>
<p>Now we create the list of OAB virtual directory from the CAS server list <strong>$IndiaCasservers</strong> into the array <strong>$result</strong></p>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="594">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong><em>$default = &#8220;\OAB (Default web site)&#8221;</em></strong></p>
<p><strong><em>$result = @()</em></strong></p>
<p><strong><em>foreach($server in $IndiaCasservers)</em></strong></p>
<p><strong><em>{</em></strong></p>
<p><strong><em>      $value = $server + $default</em></strong></p>
<p><strong><em>      $result = $result + $value</em></strong></p>
<p><strong><em>}</em></strong></td>
</tr>
<tr>
<td> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image006.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image006" src="http://smtpport25.files.wordpress.com/2011/10/clip_image006_thumb.jpg?w=529&#038;h=136" alt="clip_image006" width="529" height="136" border="0" /></a></p>
<p><strong>Figure 3.</strong> Get the list of OAB Virtual directory for all the CAS Servers</p>
<p>Its time to configure CAS server OAB Virtual directories with the Offline address book. This will also enable to OAB for web distribution. Below is the reference cmdlet and Figure 4 show the execution result.</p>
<p>&nbsp;</p>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="570">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><em><strong>Set-offlineAddressbook -Identity &#8220;India-OAB&#8221; -Virtualdirectories $result</strong></em></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image008.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image008" src="http://smtpport25.files.wordpress.com/2011/10/clip_image008_thumb.jpg?w=530&#038;h=126" alt="clip_image008" width="530" height="126" border="0" /></a></p>
<p><strong>Figure 4.</strong> Configures offline address book with the CAS OAB virtual directories</p>
<p>Lets check out the properties of the new offline address book and you should be able to see WebdistributionEnabled is set to True and Virtualdirectories is also configured with the CAS server OAB virtual directories. Figure 5. Marked with red shows the same.</p>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image010.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image010" src="http://smtpport25.files.wordpress.com/2011/10/clip_image010_thumb.jpg?w=524&#038;h=277" alt="clip_image010" width="524" height="277" border="0" /></a></p>
<p><strong>Figure 5.</strong> OAB &#8220;India-OAB&#8221; Properties details</p>
<p><strong>2. Updating the address book</strong></p>
<p>Updating offline address book is the process to force update the offline address book immediately. As we just create a new OAB, it has to be updated with all the recipients in the organization. Update process communicates with the Active directory and get all the recipient like mailbox, contacts etc. and updates itself. Its normally scheduled to run once a day and you can change the schedule depending on the size of the OAB and organization requirement.</p>
<p>Below is the PowerShell cmdlet to update &#8220;India &#8211; OAB&#8221; immediately and figure 6. shows the execution details of the same.</p>
<p>&nbsp;</p>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="570">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong><em>Update-OfflineAddressbook -Identity &#8220;India-OAB&#8221;</em></strong></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image012.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image012" src="http://smtpport25.files.wordpress.com/2011/10/clip_image012_thumb.jpg?w=521&#038;h=131" alt="clip_image012" width="521" height="131" border="0" /></a></p>
<p><strong>Figure 6.</strong> Updating offline address book</p>
<p>The new OAB &#8220;India-OAB&#8221; has updated itself with the latest information and this information has to be replicated to all the CAS Server. To force update of the CAS server we need to use the below cmdlet which executes update-file distribution service on all the CAS server in the India region and figure 7. shows the execution result of the same.</p>
<p>&nbsp;</p>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="570">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong><em>Get-ExchangeServer | ?{$_.admindisplayversion -like &#8220;*14*&#8221;) -and ($_.Serverrole -like &#8220;*Client*&#8221;) -and ($_.site -like &#8220;*India*&#8221;)} | %{</em></strong></p>
<p><strong><em>Update-FileDistributionService $_</em></strong></p>
<p><strong><em>}</em></strong></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image014.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image014" src="http://smtpport25.files.wordpress.com/2011/10/clip_image014_thumb.jpg?w=521&#038;h=157" alt="clip_image014" width="521" height="157" border="0" /></a></p>
<p><strong>Figure 7.</strong> updating File distribution service</p>
<p>3. <strong>Configure mailbox Database with new OAB</strong></p>
<p>As we have successfully created, configured and updated the new OAB. Its time to configure the mailbox databases with the new OAB. With the below cmdlet we get all the Exchange database in the India region and configure with the new OAB &#8220;India &#8211; OAB&#8221; and figure 8. shows the execution summary</p>
<p>&nbsp;</p>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="570">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><em><strong>Get-Exchangeserver | ?{($_.serverrole -like &#8220;*Mailbox*&#8221;) -and ($_.site -like &#8220;*India*&#8221;)} | get-mailboxdatabase | set-mailboxdatabase -offlineaddressbook &#8220;India &#8211; OAB&#8221;</strong></em></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image016.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image016" src="http://smtpport25.files.wordpress.com/2011/10/clip_image016_thumb.jpg?w=520&#038;h=130" alt="clip_image016" width="520" height="130" border="0" /></a></p>
<p><strong>Figure 8.</strong> Updating Exchange database with new mailbox database.</p>
<p><strong>4. Downloading OAB and verification </strong></p>
<p>&nbsp;</p>
<p>Lets verify using outlook to see if we can download the new OAB and we can also verify the OAB Distribution point URL</p>
<p>Access user mailbox using outlook and click on send/receive from the menu and click on Download Address book. Make sure you are accessing mailbox which is located in the database which are configured with OAB(above). Figure 9. shows the snap of the same.</p>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image018.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image018" src="http://smtpport25.files.wordpress.com/2011/10/clip_image018_thumb.jpg?w=530&#038;h=244" alt="clip_image018" width="530" height="244" border="0" /></a></p>
<p><strong>Figure 9.</strong> Process to download OAB using Outlook</p>
<p>You should be able to see outlook downloading the OAB into the local computer.</p>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image020.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image020" src="http://smtpport25.files.wordpress.com/2011/10/clip_image020_thumb.jpg?w=524&#038;h=261" alt="clip_image020" width="524" height="261" border="0" /></a></p>
<p><strong>Figure 10.</strong> Downloading OAB files into local computer</p>
<p>Outlook OAB file are stored in the default location <strong>&#8220;\Users\&lt;username&gt;\AppData\Local\Microsoft\Outlook\Offline Address Books&#8221; </strong>with the extension .oab<strong>. </strong></p>
<p>&nbsp;</p>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image022.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image022" src="http://smtpport25.files.wordpress.com/2011/10/clip_image022_thumb.jpg?w=523&#038;h=192" alt="clip_image022" width="523" height="192" border="0" /></a></p>
<p><strong>Figure 11.</strong> OAB file in the user computer</p>
<p> We can always find outlook connecting CAS and OAB URL path. Right-click the <strong>Outlook icon</strong> in the <strong>System Tray</strong> and select <strong>Test E-mail AutoConfiguration and </strong>then click on<strong> &#8220;Test&#8221; </strong>button on the Test E-mail Auto Configuration as shown in the figure 12. OAB URL is the path OAB distribution point details.<strong> </strong></p>
<p><a href="http://smtpport25.files.wordpress.com/2011/10/clip_image024.gif"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="clip_image024" src="http://smtpport25.files.wordpress.com/2011/10/clip_image024_thumb.gif?w=530&#038;h=335" alt="clip_image024" width="530" height="335" border="0" /></a></p>
<p><strong>Figure 12.</strong> Test E-mail Auto configuration execution result</p>
<p>With this we have successfully created and configured new OAB for a particular region. If you need for multiple region then the same configuration can be replicated. Some times OAB may trouble you some times and it may not update itself. Some of the basic troubleshooting step is rerun the update-offlineaddressbook powershell cmdlet, restart file distribution service and may try force the AD replication. I hope you like to article and you can use this in a real time scenarios</p>
<p><img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style:none;" src="http://smtpport25.files.wordpress.com/2011/10/wlemoticon-winkingsmile.png" alt="Winking smile" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1671/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1671&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/10/30/creating-and-configuring-custom-offline-address-book-with-web-based-distribution-in-exchange-2010-using-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image002_thumb.jpg" medium="image">
			<media:title type="html">clip_image002</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image004_thumb.jpg" medium="image">
			<media:title type="html">clip_image004</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image006_thumb.jpg" medium="image">
			<media:title type="html">clip_image006</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image008_thumb.jpg" medium="image">
			<media:title type="html">clip_image008</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image010_thumb.jpg" medium="image">
			<media:title type="html">clip_image010</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image012_thumb.jpg" medium="image">
			<media:title type="html">clip_image012</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image014_thumb.jpg" medium="image">
			<media:title type="html">clip_image014</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image016_thumb.jpg" medium="image">
			<media:title type="html">clip_image016</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image018_thumb.jpg" medium="image">
			<media:title type="html">clip_image018</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image020_thumb.jpg" medium="image">
			<media:title type="html">clip_image020</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image022_thumb.jpg" medium="image">
			<media:title type="html">clip_image022</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/clip_image024_thumb.gif" medium="image">
			<media:title type="html">clip_image024</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/10/wlemoticon-winkingsmile.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Exchange 2010 &#8211; Reseeding failed Database with multithreading</title>
		<link>http://smtpport25.wordpress.com/2011/09/23/exchange-2010-reseeding-failed-database-with-multithreading/</link>
		<comments>http://smtpport25.wordpress.com/2011/09/23/exchange-2010-reseeding-failed-database-with-multithreading/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 18:46:37 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[multi site]]></category>
		<category><![CDATA[Multithread]]></category>
		<category><![CDATA[reseeding]]></category>

		<guid isPermaLink="false">http://smtpport25.wordpress.com/?p=1630</guid>
		<description><![CDATA[Reseeding is a process of fixing the failed passive copy of the database which basically mean is, the passive database copy is out of sync with active database. Passive copies can be a failed database or failed Index. When Database goes in failed state or failed and suspended state or database Index goes in to failed state then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1630&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Reseeding is a process of fixing the failed passive copy of the database which basically mean is, the passive database copy is out of sync with active database. Passive copies can be a failed database or failed Index. When Database goes in <strong>failed</strong> state or <strong>failed and suspended</strong> state or database Index goes in to <strong>failed</strong> state then it needs administrator intervension and force the database reseed.  </p>
<p>There can be various reason for database to fail. Replication service running on the host machine is responsible for keeping the database in healthy state. It tries to take corrective action if the database goes out of sync else administrator may have to fix failed database manually.</p>
<p>Below is the nice piece of code which will request you to enter the DAG Name and it will determine the list of failed database and perform full reseed on each of the failed database. In the normal process, reseeding happends on the single database at a time and you can&#8217;t limit how many database you can reseed at a time. Eg</p>
<p>Get-MailboxDatabaseCopyStatus $strResponse  |?{$_.status -like &#8220;Failed*&#8221;} | update-mailboxdatabasecopystatus -deleteexistingfiles -confirm:$false</p>
<p>In the above example cmdlet will get all the failed database and it pipes to update-mailboxdatabase cmdlet. Update-Mailboxdatabasecopy performs the full reseed of the failed database <strong>one by one</strong> and brings the database into healthy state. If we have very bigger database like 100 GB and it has to update to different site then you know how long it may take. With this senarion you dont want to fix one failed database at a time.</p>
<p>Below script helps you to address the above defined issue. It can reseed the failed database up to max of 10 database in 10 different window at a time and if one database reseeding completes then new failed database will reseed if there is any. This count can be reduced or increased based on the performance of the local server and the network available.</p>
<p><pre class="brush: powershell;">
function Createfolders()
{
 remove-item -path &quot;C:\DBs\bt&quot; -force  -Recurse -confirm:$false -ErrorAction SilentlyContinue | out-null
 remove-item -path &quot;C:\DBs\ps&quot; -force  -Recurse -confirm:$false -ErrorAction SilentlyContinue| out-null
 remove-item -path &quot;C:\DBs&quot; -force  -Recurse -confirm:$false -ErrorAction SilentlyContinue| out-null

 new-item -path &quot;C:\DBs&quot; -ItemType Directory -force | out-null
 new-item -path &quot;C:\DBs\bt&quot; -ItemType Directory -force | out-null
 new-item -path &quot;C:\DBs\ps&quot; -ItemType Directory -force | out-null
}
$strResponse = Read-Host  &quot;`nPlease enter DAG Name to reseed the failed Databases&quot;

write-host -f Magenta &quot;Checking for Failed Database copies in the DAG : $strResponse&quot;

$databases = Get-MailboxDatabaseCopyStatus $strResponse  |?{$_.status -like &quot;Failed*&quot;}
if($databases -ne $null)
{
 write-host -f red &quot;Following Databases are in failed state&quot;
 $databases
 Write-host &quot;`n&quot;
 foreach($database in $databases)
 {
 $filename = $database.name
 $dbname = $database.name

 $filename = $filename.Replace(&quot;\&quot;, &quot;_&quot;)
 $DBcopyReport1 = &quot;C:\DBs\bt\$filename.bat&quot;
 $DBcopyReport2 = &quot;C:\DBs\ps\$filename.ps1&quot;
 New-item -ItemType file -path $DBcopyReport1 -force | out-null
 New-item -ItemType file -path $DBcopyReport2 -force | out-null

 &quot;Powershell.exe `&quot;C:\DBs\bt\$filename.ps1`&quot;&quot; |  Out-File -filepath $DBcopyReport1 -encoding ASCII -append
 &quot;Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction SilentlyContinue&quot;| Out-file $DBcopyReport2 -encoding ASCII -append
 &quot;Suspend-MailboxDatabaseCopy -Identity `&quot;$dbname`&quot; -confirm:&quot; + &quot;$&quot; + &quot;false&quot;| Out-file $DBcopyReport2 -encoding ASCII -append
 &quot;Update-MailboxDatabaseCopy -Identity `&quot;$dbname`&quot;  -DeleteExistingFiles -confirm:&quot; + &quot;$&quot; + &quot;false -ErrorAction:Stop -WarningAction:SilentlyContinue&quot; | Out-file $DBcopyReport2 -encoding ASCII -append

&amp;nbsp;

 $files = [IO.Directory]::GetFiles(&quot;C:\DBs\bt\&quot;)
 $cmdprocess = @()
 Write-host -f yellow &quot;`nReseeding the following databases&quot;
 for ($i=0; $i -lt $files.count; $i++)
 {
  $DBDName = $files[$i]
  $DBDName =$DBDName.split(&quot;\&quot;)[3]
  $DBDName =$DBDName.split(&quot;.&quot;)[0]
  $DBDName = $DBDName.Replace(&quot;_&quot;,&quot;\&quot;)
  Write-host -f yellow &quot;$DBDName&quot;
  $cmdprocess =$cmdprocess+ [diagnostics.process]::Start($files[$i])
  do
  { 
   $cmdp = @()
   $continue = 0
   foreach($cmdproces in $cmdprocess)
   {
    $cmdp = $cmdp + $cmdproces.id
   }
   $processid = Get-Process | %{$_.id}
   foreach($cmd in $cmdp)
   {
    if($processid -contains $cmd)
    {  
     $continue = $continue + 1
    }
   }
   start-sleep(10)
 
  }until($continue -lt 10)

 }
 do
 {
  $processid = Get-Process | %{$_.id}
  $Loopexit = 0
  foreach($cmd in $cmdp)
  { 
   if($processid -contains $cmd)
   {
   $Loopexit = 1
   start-sleep(10)
   }
  }
 }
 until($Loopexit -eq 0)

 Write-host -f Green &quot;`nReseeding of Failed DB's has been completed&quot;
}
Else
{
 Write-host -f Green &quot;All the mailbox Database copy are in Healthy state&quot;
}

Createfolders
Write-host -f Magenta &quot;`nChecking for failed Catalog or Content Index in the DAG :$strResponse&quot;
$databases = Get-MailboxDatabaseCopyStatus $strResponse  |?{$_.ContentIndexState -match &quot;Fail&quot; }
if($databases -ne $null)
{
write-host -f red &quot;Following Databases are in failed state&quot;
 $databases
 Write-host &quot;`n&quot;
 foreach($database in $databases)
 {
 $filename = $database.name
 $dbname = $database.name

 $filename = $filename.Replace(&quot;\&quot;, &quot;_&quot;)
 $DBcopyReport1 = &quot;C:\DBs\bt\$filename.bat&quot;
 $DBcopyReport2 = &quot;C:\DBs\ps\$filename.ps1&quot;
 New-item -ItemType file -path $DBcopyReport1 -force | out-null
 New-item -ItemType file -path $DBcopyReport2 -force | out-null

 &quot;Powershell.exe `&quot;C:\DBs\bt\$filename.ps1`&quot;&quot; |  Out-File -filepath $DBcopyReport1 -encoding ASCII -append
 &quot;Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction SilentlyContinue&quot;| Out-file $DBcopyReport2 -encoding ASCII -append
 &quot;Suspend-MailboxDatabaseCopy -Identity `&quot;$dbname`&quot; -confirm:&quot; + &quot;$&quot; + &quot;false&quot;| Out-file $DBcopyReport2 -encoding ASCII -append
 &quot;Update-MailboxDatabaseCopy -Identity `&quot;$dbname`&quot;  -DeleteExistingFiles -confirm:&quot; + &quot;$&quot; + &quot;false -ErrorAction:Stop -WarningAction:SilentlyContinue&quot; | Out-file $DBcopyReport2 -encoding ASCII -append

&amp;nbsp;

 $files = [IO.Directory]::GetFiles(&quot;C:\DBs\bt\&quot;)
 $cmdprocess = @()
 Write-host -f yellow &quot;`nReseeding the following databases&quot;
 for ($i=0; $i -lt $files.count; $i++)
 {
  $DBDName = $files[$i]
  $DBDName =$DBDName.split(&quot;\&quot;)[3]
  $DBDName =$DBDName.split(&quot;.&quot;)[0]
  $DBDName = $DBDName.Replace(&quot;_&quot;,&quot;\&quot;)
  Write-host -f yellow &quot;$DBDName&quot;
  $cmdprocess =$cmdprocess+ [diagnostics.process]::Start($files[$i])
  do
  { 
   $cmdp = @()
   $continue = 0
   foreach($cmdproces in $cmdprocess)
   {
    $cmdp = $cmdp + $cmdproces.id
   }
   $processid = Get-Process | %{$_.id}
   foreach($cmd in $cmdp)
   {
    if($processid -contains $cmd)
    {  
     $continue = $continue + 1
    }
   }
   start-sleep(10)
 
  }until($continue -lt 10)

 }
 do
 {
  $processid = Get-Process | %{$_.id}
  $Loopexit = 0
  foreach($cmd in $cmdp)
  { 
   if($processid -contains $cmd)
   {
   $Loopexit = 1
   start-sleep(10)
   }
  }
 }
 until($Loopexit -eq 0)

 Write-host -f Green &quot;`nReseeding of Failed DB's has been completed&quot;
}
Else
{
 Write-host -f Green &quot;All the mailbox Database copy Index are in Healthy state&quot;
}
</pre></p>
<p>Below is the snap of the execution window and we can see how DB reseed is been executed on multiple window. This will save you lot of time and effors in fixing the database. I hope this article will be helpful to you <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://smtpport25.files.wordpress.com/2011/09/reseeding-multi-window.jpg"><img class="alignleft size-full wp-image-1633" title="Reseeding Multi Window" src="http://smtpport25.files.wordpress.com/2011/09/reseeding-multi-window.jpg" alt="" width="985" height="224" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1630/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1630&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/09/23/exchange-2010-reseeding-failed-database-with-multithreading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/09/reseeding-multi-window.jpg" medium="image">
			<media:title type="html">Reseeding Multi Window</media:title>
		</media:content>
	</item>
		<item>
		<title>Powershell Script to generate report on update rollup installed on all the Exchange Server 2010 Servers</title>
		<link>http://smtpport25.wordpress.com/2011/09/08/powershell-script-to-generate-report-on-update-rollup-installed-on-all-the-exchange-server-2010-servers/</link>
		<comments>http://smtpport25.wordpress.com/2011/09/08/powershell-script-to-generate-report-on-update-rollup-installed-on-all-the-exchange-server-2010-servers/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 16:51:01 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[update rollup]]></category>
		<category><![CDATA[version number]]></category>

		<guid isPermaLink="false">http://smtpport25.wordpress.com/?p=1622</guid>
		<description><![CDATA[Latest RU available at this point of time is RU5. When you start updating it’s hard to keep track which server is updated and which server is not unless you make note off. If you wanted to query all the exchange 2010 to find what the rollup version is installed then it’s not easy to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1622&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Latest RU available at this point of time is RU5. When you start updating it’s hard to keep track which server is updated and which server is not unless you make note off. If you wanted to query all the exchange 2010 to find what the rollup version is installed then it’s not easy to find one. Exchange management shell and console will not show the version number of the RU, it only show the major version and service pack version. Exchange console and shell gets updated when ever we install server pack. So one of the best ways to find the latest RUs installed is by checking the version number of Exsetup.exe which is available in the Bin director on the Exchange installed servers.</p>
<p>Below is the script which queries all the Exchange 2010 serves for the file version of Exsetup.exe and write to the text file result.txt. It has the data in the format servername, version number and role installed and each is divided by “|” so its easy to format using excel<br />
<pre class="brush: powershell;">
$installpath = &quot;c$\Program Files\Microsoft\Exchange Server\V14\Bin\ExSetup.exe&quot;
Get-ExchangeServer  | ?{$_.admindisplayversion -like  &quot;*14*&quot;} | %{
$Servername = $_.Name
$role = $_.serverrole
$Path = &quot;\\&quot; + $Servername + &quot;\&quot; + $installpath
$fileversion = (Get-Command $Path).FileVersionInfo |ForEach {$_.FileVersion}
$result = $Servername + &quot;|&quot; +  $fileversion + &quot;|&quot; + $role
$result
$result &gt;&gt; result.txt
}
</pre></p>
<p>I hope this helps you some day to pull this report for your team and manager real quick <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1622/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1622&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/09/08/powershell-script-to-generate-report-on-update-rollup-installed-on-all-the-exchange-server-2010-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable and Disabling Circular logging on Exchange 2010 DAG Database on a fly.</title>
		<link>http://smtpport25.wordpress.com/2011/09/01/enable-and-disabling-circular-logging-on-exchange-2010-dag-database-on-a-fly/</link>
		<comments>http://smtpport25.wordpress.com/2011/09/01/enable-and-disabling-circular-logging-on-exchange-2010-dag-database-on-a-fly/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 19:16:41 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[circular logging]]></category>
		<category><![CDATA[Disable]]></category>
		<category><![CDATA[Enable]]></category>
		<category><![CDATA[replication service]]></category>

		<guid isPermaLink="false">http://smtpport25.wordpress.com/?p=1617</guid>
		<description><![CDATA[In Exchange 2007 and earlier version of Exchange if you wanted to enable or disable circular logging then you should dismount and mount the database to bring this into effect. In Exchange 2010 if you enable or disable circular logging then this chance will come into effect with in 30 seconds. This is done with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1617&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Exchange 2007 and earlier version of Exchange if you wanted to enable or disable circular logging then you should dismount and mount the database to bring this into effect. In Exchange 2010 if you enable or disable circular logging then this chance will come into effect with in 30 seconds. This is done with the help of replication service and you dont have to dismount and mount the active database to get this changes applied. I think this is cool. You can make the changes on the fly without disrupting the mailbox live users.<br />
<pre class="brush: powershell;">
Enable circular logging on a Particular database

Get-mailboxdatabase -Identity DBname | set-mailboxdatabase -CircularloggingEnabled $true

Disable circular logging on a Particular database

Get-mailboxdatabase -Identity DBname | set-mailboxdatabase -CircularloggingEnabled $false

Enable Circular logging on all the Database in a perticular DAG

Get-mailboxdatabase -identity DAGname* | set-mailboxdatabase -CircularloggingEnabled $true

Disable Circular logging on all the database in a perticular DAG

Get-mailboxdatabase -identity DAGname* | set-mailboxdatabase -CircularloggingEnabled $false
</pre></p>
<p>Feeling nice to blog after a long time on a auspecious day <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1617/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1617&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/09/01/enable-and-disabling-circular-logging-on-exchange-2010-dag-database-on-a-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>
	</item>
		<item>
		<title>Exchange 2010 &#8211; Client Access Server &#8211; HA and DR</title>
		<link>http://smtpport25.wordpress.com/2011/03/01/exchange-2010-client-access-server-ha-and-dr/</link>
		<comments>http://smtpport25.wordpress.com/2011/03/01/exchange-2010-client-access-server-ha-and-dr/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 12:53:37 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[CAS]]></category>
		<category><![CDATA[CAS Array]]></category>
		<category><![CDATA[Client Acces]]></category>
		<category><![CDATA[DR]]></category>
		<category><![CDATA[HA]]></category>

		<guid isPermaLink="false">http://smtpport25.wordpress.com/?p=1597</guid>
		<description><![CDATA[Exchange 2010 has come up with lots of interesting and advanced features and one of the most important features is HA. Being exchange one of the most mission critical application of any organization, it’s important that we must have a strong HA solution for any kind of issues. It can be either server failure or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1597&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Exchange 2010 has come up with lots of interesting and advanced features and one of the most important features is HA. Being exchange one of the most mission critical application of any organization, it’s important that we must have a strong HA solution for any kind of issues. It can be either server failure or a complete Site Failure</p>
<p>Most of your would have gone through the DAG features which provides us with the HA flexibility with in the same site and across the site for the MAILBOX role servers. There are other important server’s roles which mailbox server depends and it’s very important that we plan HA for them as well and they are CAS role and HUB role server. HUB role are designed with HA by default using active directory. If any server HUB server fails in a site then other HUB servers are used and during the site failure all the email will be routed to the new HUB servers in the DR site and if there are multiple HUB servers they are load balanced in round robin fashion.</p>
<p>Let’s talk about the CAS servers with HA and DR flexibility. Exchange 2010 has come up with the new HA for CAS server and it is called as CAS Array. Outlook uses this CAS Array to configure the outlook. You may already know that outlook uses CAS server for the MAPI connection. CAS Array allows you to add all the CAS servers into the array with behind the load balancer and expose the Virtual IP (VIP) for the user connection. Load balancer poles all the CAS servers in the array and if there is any server down then user connection will not directed to the failed CAS server until it comes up. In this fashion we have HA flexibility within the site when we have one or more CAS server failure.</p>
<p>Highlight of this article is to find how CAS Array works when there is a site failure in a DR Scenario which we don’t find much information around.</p>
<p> Let’s consider a scenario, we have 2 AD site. First is the primary site with the name SiteA and second is the DR site with the name SiteB. Below Table 1 shows the details of the CAS Array with their site specific names and there corresponding IP address</p>
<p><a href="http://smtpport25.files.wordpress.com/2011/03/casarrayip1.jpg"><img class="alignleft size-full wp-image-1602" title="CASArrayIP1" src="http://smtpport25.files.wordpress.com/2011/03/casarrayip1.jpg" alt="" width="450" height="107" /></a></p>
<p>If there is failure of siteA then with the help of DAG we mount all the database on the server in the SiteB(DR Site) with this user will not have the outlook connected. They will still be in disconnected state, because all the users’ outlook is configured with <strong>PrimaryCASArray.domain.com </strong>and it is down because of the site failure.</p>
<p>Now it’s not feasible configure the entire database in SiteB (DR site) with the new CAS Array <strong>DRCASArray.domain.com</strong> and reconfigure the entire user’s outlook with new CAS array name. This is not a solution any company would require for DR and it doesn’t look good even from the design prospective. Ideal and simple solution is to change the DNS IP address of PrimaryCASArray.Doamin.com with the SiteB IP address 172.168.1.100. May need to wait for some time for the replication and soon you should find user outlook coming online. Table 2 shows the new IP address on PrimaryCASArray.domain.com during DR. Once you wanted to failback to the primary site (SiteA) then we have again revert the CAS array IP address to the old state as defined in the Table 1.</p>
<p><a href="http://smtpport25.files.wordpress.com/2011/03/casarrayip2.jpg"><img class="alignleft size-full wp-image-1604" title="CASArrayIP2" src="http://smtpport25.files.wordpress.com/2011/03/casarrayip2.jpg" alt="" width="450" height="107" /></a></p>
<p>I am sure many would have had this query in your mind as I had and hope this article helps you in design a solution depending on your requirement.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1597/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1597&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/03/01/exchange-2010-client-access-server-ha-and-dr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/03/casarrayip1.jpg" medium="image">
			<media:title type="html">CASArrayIP1</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/03/casarrayip2.jpg" medium="image">
			<media:title type="html">CASArrayIP2</media:title>
		</media:content>
	</item>
		<item>
		<title>Offline Address book(OAB) Generation in Exchange and Outlook 2010</title>
		<link>http://smtpport25.wordpress.com/2011/02/13/offline-address-bookoab-generation-in-exchange-and-outlook-2010/</link>
		<comments>http://smtpport25.wordpress.com/2011/02/13/offline-address-bookoab-generation-in-exchange-and-outlook-2010/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 18:01:23 +0000</pubDate>
		<dc:creator>Krishna - MVP</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>

		<guid isPermaLink="false">https://smtpport25.wordpress.com/2011/02/13/offline-address-bookoab-generation-in-exchange-and-outlook-2010/</guid>
		<description><![CDATA[&#160; Offline Address book allows user to download the address book offline into the local machine. It helps to query the address book when you are not connect to the network. It’s a complete copy of the global Address book. lets understand how the OAB is generated, synchronized and available for distribution for the outlook [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1595&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Offline Address book allows user to download the address book offline into the local machine. It helps to query the address book when you are not connect to the network. It’s a complete copy of the global Address book. </p>
<p>lets understand how the OAB is generated, synchronized and available for distribution for the outlook users.</p>
<p>1. One Mailbox Server in the Organization is identified as OAB Generation Server. This is first mailbox server in the organization or any mailbox server assigned with the OAB generation role during the later stage. </p>
<p>2.&#160; OABGen service running on the mailbox server helps to generate ,creates and updates OAB files. OABGen service is part of the System Attendant Service. All OAB Generated file by default will be located at path “\Program Files\Microsoft\Exchange Server\V14\ExchangeOAB”. </p>
<p>3. OABGen communicates with the active directory and generates the address book for all the mailbox, contact and other exchange resources in the Exchange organization.</p>
<p>4. OAB files in the mailbox server are compressed file with the extension .LZX format. </p>
<p>5. Till now we have learnt how the OAB files are generated and how is created. Now lets learn how OAB is distributed to the clients ?</p>
<p>6. There are two ways for Distribution in Exchange 2010. They are through web based distributions and through public folder distribution.</p>
<p>7. Web based distribution is only supported with outlook 2007 clients and higher. OAB distribution through public folder is supported by any version outlook.</p>
<p>8. Lets only talk about the web based distribution as we&#160; don’t want to use public folder any more and most of the clients are outlook 2007 or outlook 2010. </p>
<p>9. OAB files are generated in Exchange 2010 Mailbox servers and outlook do not connect directory to the mailbox servers. The solution approach is to use Client Access Server role with web based distribution.</p>
<p>10. On the Client Access Role server, a virtual directory called OAB runs with in the default web site. This virtual helps in distributing the OAB</p>
<p>11. Do you think we got the complete answer ? No. How does the OAB virtual directory gets the OAB data files from the mailbox server ?</p>
<p>12. Answer to this is Microsoft Exchange File Distribution Service running on the Client access Server</p>
<p>13. Microsoft Exchange File Distribution Servers polls the OABGen Server and copies the OAB data from the mailbox servers to CAS server.&#160; Once the complete OAB data is copied then if there is any update then only that data is synchronized with CAS server. The synchronization or pol frequency is 8 hrs by default and you can change it if required using PowerShell cmdlets.</p>
<p>13. You may curiously wanted to know how the Web based distribution looks like. hold CTRL key and right click on outlook Icon system tray and Select “Email auto configuration” option from the menu. </p>
<p>14. Enter the User email address and password and click on Test. On the result tab you should be able to see what the OAB URL your outlook is connected to download the OAB from Exchange. </p>
<p>This is the quick info on how the OAB work in Exchange 2010.&#160; I hope this article helps you all <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://smtpport25.files.wordpress.com/2011/02/wlemoticon-smile.png" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smtpport25.wordpress.com/1595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smtpport25.wordpress.com/1595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smtpport25.wordpress.com/1595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smtpport25.wordpress.com/1595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smtpport25.wordpress.com/1595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smtpport25.wordpress.com/1595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smtpport25.wordpress.com/1595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smtpport25.wordpress.com/1595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smtpport25.wordpress.com/1595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smtpport25.wordpress.com/1595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smtpport25.wordpress.com/1595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smtpport25.wordpress.com/1595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smtpport25.wordpress.com/1595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smtpport25.wordpress.com/1595/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smtpport25.wordpress.com&amp;blog=6489355&amp;post=1595&amp;subd=smtpport25&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smtpport25.wordpress.com/2011/02/13/offline-address-bookoab-generation-in-exchange-and-outlook-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38895e9ac4d54aceab379f586bb362d8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">krishna</media:title>
		</media:content>

		<media:content url="http://smtpport25.files.wordpress.com/2011/02/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>
	</item>
	</channel>
</rss>
