<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">SUKUM: Exchange Knowledge Sharing</title><subtitle type="html" /><id>http://blogs.technet.com/b/sukum/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/sukum/" /><link rel="self" type="application/atom+xml" href="http://blogs.technet.com/b/sukum/atom.aspx" /><generator uri="http://telligent.com" version="5.6.50428.7875">Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><updated>2013-01-23T09:29:00Z</updated><entry><title>Send Welcome Email to New Mailbox / New Users.</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/sukum/archive/2013/04/03/send-welcome-email-to-new-mailbox-users.aspx" /><link rel="enclosure" type="application/zip" length="5678" href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-03-56-30-18/WelcomeMSG.zip" /><id>http://blogs.technet.com/b/sukum/archive/2013/04/03/send-welcome-email-to-new-mailbox-users.aspx</id><published>2013-04-03T11:43:00Z</published><updated>2013-04-03T11:43:00Z</updated><content type="html">&lt;p style="text-align: justify;"&gt;&lt;span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Take Away:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: small;"&gt;- There are many ways to send welcome emails in Exchange 2010/2013.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;- Using Cmdlet Extension is one of the ways to send welcome email.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;- The blog explains how to setup Welcome email thru Cmdlet Extension.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Let&amp;rsquo;s understand how to configure Exchange Server to send welcome email:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;What is Cmdlet Extension Agents?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Cmdlet extension agents are components in Microsoft Exchange Server 2013/Exchange Server 2010 invoked by Exchange 2013/2010 cmdlets when the cmdlets run. Every time an Exchange cmdlet is run, the cmdlet calls the Scripting Agent cmdlet extension agent. When this agent is called, the cmdlet checks whether any scripts are configured to be called by the cmdlet. If a script should be run for a cmdlet, the cmdlet tries to call any APIs defined in the script. Cmdlet extension agents are available on any server role.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;For more information on this please refer the link : &lt;a href="http://technet.microsoft.com/en-us/library/dd335054.aspx"&gt;&lt;span style="color: #0563c1;"&gt;http://technet.microsoft.com/en-us/library/dd335054.aspx&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table border="0" cellpadding="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Caution&lt;/strong&gt;&lt;strong&gt;: &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;When you enable the Scripting Agent cmdlet extension agent, the agent is called every time a cmdlet is run on a server running Exchange 2010. This includes not only cmdlets run directly by you in the Exchange Management Shell, but also cmdlets run by Exchange services, the Exchange Management Console (EMC), and the Exchange Control Panel (ECP). We strongly recommend that you test your scripts and any changes you make to the configuration file, before you copy your updated configuration file to your Exchange 2010 servers and enable the Scripting Agent cmdlet extension agent.&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Implementation: &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;As you got an idea on the Cmdlet Extension Agent, I will go ahead and explain how we can use the feature to generate welcome email for the new mailboxes that we create.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;When we create new mailbox in Exchange 2010/2012, &amp;nbsp;new-mailbox command is used (whether it is Exchange Management Shell or Exchange Management Console). You can enhance the behavior of the command by using Cmdlet Extension. It is like triggering a script whenever new-mailbox command is used.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;In order to use the feature, we need to,&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deploy XML file on all the exchange servers.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Enable &amp;ldquo;Scripting Agent&amp;rdquo;.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;How&amp;nbsp;to&amp;nbsp;deploy XML files?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;On all the exchange servers, the exchange setup copies the file "ScriptingAgentConfig.xml.sample" to&amp;nbsp;&lt;span&gt;&amp;lt;installation path&amp;gt;\Bin\CmdletExtensionAgents\&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;. &amp;nbsp;The file is a kind of sample/template. We can modify the file to meet our requirement or we can make our own XML file. I have detailed the steps to modify the sample file to send welcome email.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Step #1:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Create a welcome email template in html format that will be sent as welcome email or use the exiting template attached to the blog to suit your requirement. Easiest way to create welcome email template would be, open new message in Outlook, compose the email and save it as HTML.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Step #2:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Make a copy of the existing XML file and rename it to ScriptingAgentConfig.xml. Keep the file in &lt;span&gt;&amp;lt;installation path&amp;gt;\Bin\CmdletExtensionAgents\&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Step #3:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Copy and paste the below script into appropriate location inside the XML file and Save it. It can be inserted between &amp;lt;/feature&amp;gt; &amp;hellip;. &amp;nbsp;&amp;lt;Feature Name &amp;hellip;.&amp;gt; or at the beginning of the XML file (after &amp;lt;Configuration Version=&amp;rdquo;1.0&amp;rdquo;&amp;gt;).&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;# Script to send new email starts here&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;lt;Feature Name="Welcome Email" Cmdlets="new-mailbox"&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp; &amp;lt;ApiCall Name="OnComplete"&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp; if($succeeded)&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Using UserSpecifiedParameters to get new user email ID.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $USRdname= $provisioningHandler.UserSpecifiedParameters["Name"]&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $USRalias = $provisioningHandler.UserSpecifiedParameters["Alias"]&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $USRemail= $USRalias + "&lt;span style="background-color: #ffff00;"&gt;@e2k10.com&lt;/span&gt;"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# Locating welcome email template file and replacing place holder with new mailbox display name.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$tempmsg= [string] (get-content ("&lt;span style="background-color: #ffff00;"&gt;c:\welcome\WelcomeMSG.htm&lt;/span&gt;"))&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $tempmsg = $tempmsg -replace "NewUser00",$USRdname&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;# Using HUB IP to process new mail request. Give your HUB server IP.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $HUBServer="&lt;span style="background-color: #ffff00;"&gt;10.1.1.2&lt;/span&gt;"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $WelcomeEMail = new-object net.mail.mailmessage&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $HUBTask = new-object net.mail.smtpclient($HUBServer)&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Email&amp;nbsp;to be sent from the address given in the following line.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $WelcomeEMail.From="&lt;span style="background-color: #ffff00;"&gt;administrator@e2k10.com&lt;/span&gt;"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $WelcomeEMail.To.add($USRemail)&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Email Subject and Body details are specified in following lines.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $WelcomeEMail.Subject="&lt;span style="background-color: #ffff00;"&gt;Welcome to Contoso IT !!!&lt;/span&gt;"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $WelcomeEMail.Body= $tempmsg&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $WelcomeEmail.IsBodyHtml = $true&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $HUBTask.send($WelcomeEMail)&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp; &amp;lt;/ApiCall&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;lt;/Feature&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;# Script to send new email ends here&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Step #4:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Make the necessary changes in the script to suite your&amp;nbsp;environment.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;**** Change SMTP domain *****&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;$USRemail= $USRalias + &lt;span style="background-color: #ffff00;"&gt;"@e2k10.com&lt;/span&gt;" &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;**** Give the path of the template file you created in Step #1. ****&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;$tempmsg= [string] (get-content ("&lt;span style="background-color: #ffff00;"&gt;c:\welcome\WelcomeMSG.htm&lt;/span&gt;"))&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;**** Give your HUB server IP address and Make sure that the HUB server accept connection ****&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;$HUBServer="&lt;span style="background-color: #ffff00;"&gt;10.1.1.2&lt;/span&gt;"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;**** Give email address from which you want to send welcome message ****&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;$WelcomeEMail.From=&lt;span style="background-color: #ffff00;"&gt;&lt;a href="mailto:administrator@e2k10.com"&gt;&lt;span style="color: #0563c1; background-color: #ffff00;"&gt;administrator@e2k10.com&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;**** Change the subject of the welcome message, if you wish ****&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;$WelcomeEMail.Subject="&lt;span style="background-color: #ffff00;"&gt;Welcome to Contoso IT !!!&lt;/span&gt;"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;What the script does?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;When a new mailbox is created, on its successful completion, the script will be called. The script works along with email template available in "c:\welcome\WelcomeMSG.htm". It can be modified to meet your requirement.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;To start with,&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;It stores the new mailbox user display name &amp;amp; alias in the variables, $USRdname, $USRalias respectively. Later it constructs email ID by concatenating alias + SMTP domain ($USRalias +&amp;ldquo;e2k10.com&amp;rdquo;). I opted for alias as it is commonly used email format. If email policy uses different format, you can change it.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Then it reads the content of template "c:\welcome\WelcomeMSG.htm" and stores in the variable $tempmsg. As the template is set with place holder "NewUser00", the script uses &amp;ldquo;-replace&amp;rdquo; to update the place holder &amp;ldquo;NewUser00&amp;rdquo; with the display name.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Later we create new message object and SMTP client object to send out email. Before we send the email, we compose the email with From address, To address, Subject and Body.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: small; color: #3366ff;"&gt;&lt;strong&gt;Welcome Email Template with Place Holder:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;I have created template as shown in the &lt;strong&gt;Picture #1&lt;/strong&gt;. The template is with place holder &amp;ldquo;NewUser00&amp;rdquo;. This will be replaced with display name when the email is sent (as shown in &lt;strong&gt;Picture #2&lt;/strong&gt;).&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/7610.Picture1.jpg"&gt;&lt;img style="margin-right: auto; margin-left: auto; display: block;" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/7610.Picture1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: center;" align="center"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Picture 1&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: small; color: #3366ff;"&gt;&lt;strong&gt;Welcome Email after place holder replacement:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4532.Picture2.jpg"&gt;&lt;img style="margin-right: auto; margin-left: auto; display: block;" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4532.Picture2.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: center;" align="center"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;Picture 2&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;strong&gt;How to manage/enable Cmdlet Extension Agent?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;After the XML file updated with script, you need to enable the agent to call the XML file and the script whenever new-mailbox used. You can view the agent status by running the command: Get-CmdletExtensionAgent | FT Name,Enabled&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/5635.Picture3.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/5635.Picture3.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;By default,&amp;ldquo;Scripting Agent&amp;rdquo; is disabled. You can enable it using the command,&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Enable-CmdletExtensionAgent "Scripting Agent"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/6663.Picture4.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/6663.Picture4.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;When you wanted to disable the &amp;ldquo;Scripting Agent&amp;rdquo; , run the command ,&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Disable-CmdletExtensionAgent "Scripting Agent"&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/5751.Picture5.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/5751.Picture5.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Enabling or disabling CmdletExtension does not require restart of the server or exchange services in a normal scenario. It is a global command and applicable to all the exchange servers in the organization. So you have to update the XML file on all the exchange servers. If the XML files is not updated on any of the exchange server and you run any&amp;nbsp;&lt;span&gt;non-Get cmdlets&lt;/span&gt;, the cmdlet will fail.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: small;"&gt;For More Information on managing Cmdlet Extension, please refer the link : &lt;/span&gt;&lt;a style="font-family: arial, helvetica, sans-serif; font-size: small;" href="http://technet.microsoft.com/en-us/library/dd298143.aspx"&gt;&lt;span style="color: #0563c1;"&gt;http://technet.microsoft.com/en-us/library/dd298143.aspx&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: small; color: #3366ff;"&gt;&lt;strong&gt;Test:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;As both script and agent are in place, you can create new mailbox using EMC or EMS and check how it works. You may notice that the mailbox creation is taking little bit longer than it used to. That&amp;rsquo;s because the additional activities are done along with new-mailbox.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: small; color: #3366ff;"&gt;&lt;strong&gt;Related articles :&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;a href="http://technet.microsoft.com/en-in/library/dd297951(v=exchg.141).aspx"&gt;&lt;span style="color: #0563c1;"&gt;http://technet.microsoft.com/en-in/library/dd297951(v=exchg.141).aspx&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;a href="http://technet.microsoft.com/en-in/library/dd335067(v=exchg.141).aspx"&gt;&lt;span style="color: #0563c1;"&gt;http://technet.microsoft.com/en-in/library/dd335067(v=exchg.141).aspx&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;a href="http://technet.microsoft.com/en-us/library/dd298143(v=exchg.141).aspx"&gt;&lt;span style="color: #0563c1;"&gt;http://technet.microsoft.com/en-us/library/dd298143(v=exchg.141).aspx&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3563018" width="1" height="1"&gt;</content><author><name>SUKUM - MSFT</name><uri>http://blogs.technet.com/cts_2D00_sukum_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Exchange" scheme="http://blogs.technet.com/b/sukum/archive/tags/Exchange/" /><category term="Send Welcome Email" scheme="http://blogs.technet.com/b/sukum/archive/tags/Send+Welcome+Email/" /><category term="Send Welcome Email to New Mailbox Users." scheme="http://blogs.technet.com/b/sukum/archive/tags/Send+Welcome+Email+to+New+Mailbox+Users_2E00_/" /><category term="cmdlet extension" scheme="http://blogs.technet.com/b/sukum/archive/tags/cmdlet+extension/" /><category term="welcome email" scheme="http://blogs.technet.com/b/sukum/archive/tags/welcome+email/" /></entry><entry><title>Exchange DSAccess / ADAccess and AD site Link</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/sukum/archive/2013/02/08/ds-access-ad-access-and-ad-sites-link.aspx" /><id>http://blogs.technet.com/b/sukum/archive/2013/02/08/ds-access-ad-access-and-ad-sites-link.aspx</id><published>2013-02-08T10:46:00Z</published><updated>2013-02-08T10:46:00Z</updated><content type="html">&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;By writing the article, I hope that you will be able to understand the criteria considered by DS Access to list GCs in Event ID 2080. The article will allow you to ensure continuity in case of a server failure.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;I will start by listing how DS Access/AD Access identifies the topology by using the following steps for the benefit of Exchange administrators:&lt;/span&gt;&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;The system attendant process, mad.exe, instantiates and initializes DSAccess.dll during startup.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;From the local domain, DSAccess opens an LDAP connection to a randomly chosen Domain Controller (DC). This DC is referred to as the bootstrap server.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;DSAccess reads the local registry to determine if the topology is hard coded. If the topology is hard coded, the discovery process stops. If no hard coding is detected, DSAccess continues the discovery process.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;DSAccess queries the bootstrap server to identify local DCs and Global Catalog servers (GCs). DSAccess then determines server suitability and assigns server roles.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;DSAccess queries the bootstrap server to determine if one or more secondary sites are connected to the local site. If secondary sites exist, DSAccess sorts the siteLink objects for each site from lowest cost to highest cost. DSAccess places the lowest cost sites in a secondary topology list.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;DSAccess queries the bootstrap server to identify the DCs and GCs that are located in the secondary topology sites.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;DSAccess identifies the full topology and compiles a list of working domain controllers and a list of working GCs.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;There are situations when Exchange DS Access/AD Access does not show the GCs from other AD Sites in Event ID 2080. As an Exchange administrator, you may be wondering why the event 2080 does not list all GCs in the domain even though the GCs are healthy. To save you a lot of production downtime and effort, I will discuss the following aspects.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Exchange DS Access/AD Access uses AD Site Link details while listing GCs in Out-Of-Site in Event ID 2080. If there is no direct site link between AD site where Exchange exists and other AD sites, the AD sites' GCs&amp;nbsp;will not be considered to be listed in Event ID 2080.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;I thought that giving an explanation on &lt;strong&gt;AD site link criteria used by DS Access/AD Access&lt;/strong&gt; will help you to manage the GC resource efficiently for better Exchange functionality.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Since a picture is worth a thousand words, I will explain the topic in question using examples and diagrams.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Let&amp;rsquo;s say we have the following lab setup:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Four AD sites named Site A, Site B, Site C, and Site D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;All sites belong to a domain &amp;ndash; CONTOSO.COM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Each site has two GCs&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;The Site A is installed with Exchange server&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;There are direct AD Site links between Site A and Site B, Site A and Site C, Site A and Site D&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p align="center"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/8228.Pciture1.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/8228.Pciture1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 1&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Scenario 1:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;The Site A, the Exchange site, has direct AD site link with other AD sites. All site links have the same site Link Cost i.e. 100. So, the Event ID 2080 on Exchange will appear like in the following snapshot, &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 1A&lt;/span&gt;&lt;/strong&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/3146.Picture1A.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/3146.Picture1A.jpg" alt="" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 1A&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Scenario 2:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;If I change my AD site Link Cost as shown in &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 2&lt;/span&gt;&lt;/strong&gt;, then Exchange will pick the GCs from the Site with lowest cost to list under Out-Of-Site in Event ID 2080 and will ignore other AD Site GCs.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/7433.Picture2.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/7433.Picture2.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 2: &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Exchange will consider only the Site Link with lowest cost for the Out-Of-Site GCs. So, the Event ID 2080 will look like Picture 2A.&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/1682.Picture2A.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/1682.Picture2A.jpg" alt="" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 2A&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Other GCs in Site B and Site C will not be listed in Event ID 2080. Therefore, Exchange will not use the other GCs i.e. GC5, GC6, GC7 and GC8 in sites B and C.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Scenario 3:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;If I change my AD site Link as shown in &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 3&lt;/span&gt;&lt;/strong&gt; then Exchange will pick the GCs from the Site C to list under Out-Of-Site in Event ID 2080, and it will ignore other AD Site GCs i.e. GC3, GC4, GC7 and GC8.&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/0456.Pciture3.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/0456.Pciture3.jpg" alt="" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 3&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4721.Picture3A.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4721.Picture3A.jpg" alt="" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 3A&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;Scenario 4:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;This scenario may be a little odd and may not usually happen as there is no AD with multiple AD sites but no site link. Still, I wanted to talk about this scenario so that the logic can be clearly understood. If there are no site links for any site as in &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 4&lt;/span&gt;&lt;/strong&gt;, sites are not considered. It will only use local site DC/GC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4786.Picture4.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4786.Picture4.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 4&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4606.Picture4A.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/4606.Picture4A.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 4A&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Now that you&amp;rsquo;ve gone over various scenarios, you may ask, what if I hardcode the GCs that are:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;In-Site but do not have a direct site link with Site A, the Exchange Site, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;there is no site link with Site A, the Exchange site,&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Will exchange use the GCs?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;The answer is yes. It will use GCs, because if you hard code the directory servers, DSAccess bypasses the discovery process and checks only for server suitability.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Let&amp;lsquo;s say, I run the following command, the exchange will get updated and will log the Event ID 2080 as in &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 5&lt;/span&gt;&lt;/strong&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Get-ExchangeServer MSX | Set-Exchangeserver &amp;ndash;identity MSX &amp;ndash; StaticDomainControllers GC3.CONTOSO.COM, GC5.CONTOSO.COM, GC7.CONTOSO.COM &amp;ndash; StaticGlobalCatalogs GC3.CONTOSO.COM, GC5.CONTOSO.COM, GC7.CONTOSO.COM &amp;ndash; StaticConfigDomainController GC3.CONTOSO.COM&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/1538.Picture5.jpg"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/1538.Picture5.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Picture 5&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;In conclusion, you can ensure service continuity and minimize service downtime by setting a proper AD site link.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h5&gt;&lt;span style="font-family: verdana,geneva; font-size: small;"&gt;Applies to&lt;/span&gt;&lt;/h5&gt;
&lt;p&gt;Microsoft Exchange Server 2010&lt;/p&gt;
&lt;p&gt;Microsoft Exchange Server 2007&lt;/p&gt;
&lt;p&gt;Microsoft Exchange Server 2003&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3551214" width="1" height="1"&gt;</content><author><name>SUKUM - MSFT</name><uri>http://blogs.technet.com/cts_2D00_sukum_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="Exchange" scheme="http://blogs.technet.com/b/sukum/archive/tags/Exchange/" /><category term="DSAccess" scheme="http://blogs.technet.com/b/sukum/archive/tags/DSAccess/" /><category term="ADAccess" scheme="http://blogs.technet.com/b/sukum/archive/tags/ADAccess/" /><category term="AD Access" scheme="http://blogs.technet.com/b/sukum/archive/tags/AD+Access/" /><category term="Global Catalog. Event 2080" scheme="http://blogs.technet.com/b/sukum/archive/tags/Global+Catalog-+Event+2080/" /><category term="DS Access" scheme="http://blogs.technet.com/b/sukum/archive/tags/DS+Access/" /><category term="AD sites" scheme="http://blogs.technet.com/b/sukum/archive/tags/AD+sites/" /></entry><entry><title>The Tool, Office 365 Delegates is here.</title><link rel="alternate" type="text/html" href="http://blogs.technet.com/b/sukum/archive/2013/01/23/coming-soon-office-365-delegates-tool.aspx" /><link rel="enclosure" type="application/octet-stream" length="393216" href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-03-54-77-16/O365DelegatesHelp.pdf" /><id>http://blogs.technet.com/b/sukum/archive/2013/01/23/coming-soon-office-365-delegates-tool.aspx</id><published>2013-01-23T03:59:00Z</published><updated>2013-01-23T03:59:00Z</updated><content type="html">&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/8666.O365MainPage.png"&gt;&lt;img style="margin-right: auto; margin-left: auto; display: block;" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-97-49/8666.O365MainPage.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A new Office 365 tool developed and available to use. The tool named as O365 Delegates.&amp;nbsp; Let me explain , why the tool&amp;nbsp;developed and what the tool does.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: medium;"&gt;Why the tool, O365 Delegates Developed ?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;During the course of Office 365 Exchange related troubleshooting, You need to generate various PowerShell command to collect various data.&lt;/li&gt;
&lt;li&gt;At times, You may feel using Powershell is not very&amp;nbsp;comfortable to collect the data.&lt;/li&gt;
&lt;li&gt;I had heard from&amp;nbsp;friends that if they have a tool to perform their day to day activities in managing the mailboxes rather using remote PowerShell, it will be very useful.&lt;/li&gt;
&lt;li&gt;Also when I was checking various Microsoft Developers forums, I could see a huge demand for a sample tool to help the Office 365 tool developers.&lt;/li&gt;
&lt;li&gt;In Order to help,&amp;nbsp;Office 365 Exchange Administrators, Office 365 Tool Developers,&amp;nbsp;&amp;nbsp;&amp;nbsp;The O365 Delegates tool developed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size: medium;"&gt;What the tool does ?&lt;/span&gt;&lt;/p&gt;
&lt;p class="Default"&gt;The tool can be used to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Allow others to manage your mailbox and calendar by giving delegate permission.&lt;/li&gt;
&lt;li&gt;Find existing distribution list members.&lt;/li&gt;
&lt;li&gt;List delegate permission.&lt;/li&gt;
&lt;li&gt;Remove delegate permission.&lt;/li&gt;
&lt;li&gt;Modify delegate permission level.&lt;/li&gt;
&lt;li&gt;Grant &amp;amp; Revoke &amp;ldquo;Full Mailbox&amp;rdquo; and &amp;ldquo;Send As&amp;rdquo; Permission.&lt;/li&gt;
&lt;li&gt;Run various Office 365 PowerShell commands to retrieve user/mailbox details.&lt;/li&gt;
&lt;li&gt;It is provisioned to get LDP dump of the on-premise user through PowerShell.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;As the tool can be used to perform the task that can be done with other application and thru manual PowerShell, but with less effort, it is named as Office 365 Delegates.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: medium;"&gt;What is next for the tool ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O365 Delegates to include the followings in Version 2.0,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Customizable PowerShell commands to generate various advance reports .&lt;/li&gt;
&lt;li&gt;Run the command for multiple users.&lt;/li&gt;
&lt;li&gt;Perform various Set commands to manage O365 mailboxes and the list goes on.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please feel free to contact &lt;a href="mailto:sukum@microsoft.com?subject=O365%20Delegates%20Development%20Team"&gt;O365 Delegates Development Team&lt;/a&gt; to share your suggestions and feedbacks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: medium;"&gt;The Tool&amp;rsquo;s Availability:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you are a developer and looking for sample, you can download the complete tool from the link :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://code.msdn.microsoft.com/vstudio/Retrieve-office-365-user-63e054ad"&gt;http://code.msdn.microsoft.com/vstudio/Retrieve-office-365-user-63e054ad&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have also attached O365 Delegates tool's help documentation to get complete detail on the tool.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I hope the tool is helpful.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3547716" width="1" height="1"&gt;</content><author><name>SUKUM - MSFT</name><uri>http://blogs.technet.com/cts_2D00_sukum_4000_live.in/ProfileUrlRedirect.ashx</uri></author><category term="O365 Delegates" scheme="http://blogs.technet.com/b/sukum/archive/tags/O365+Delegates/" /><category term="Office 365 Delegates" scheme="http://blogs.technet.com/b/sukum/archive/tags/Office+365+Delegates/" /><category term="O365Delegates" scheme="http://blogs.technet.com/b/sukum/archive/tags/O365Delegates/" /></entry></feed>