<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>kapteina</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/akapteina/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/akapteina/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:27:29 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Setting targetaddress with vbscript for Exchange 2003</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/setting-targetaddress-with-vbscript-for-exchange-2003</link>
      <pubDate>Mon, 02 Jun 2014 00:17:54 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2014/06/02/setting-targetaddress-with-vbscript-for-exchange-2003/</guid>
      <description><![CDATA[This blog describes how to set the target address attribut via a vb script in an Exchange 2003...]]></description>
      <content:encoded><![CDATA[<p>This blog describes how to set the target address attribut via a vb script in an Exchange 2003 organization.</p>
<p>First of all an Input file is needed to read the userlist. <strong>Targetaddress.csv</strong> is the file name used in the script below. The following two entries are the only attributes which are used.</p>
<p><strong>LegacyExchangeDN,mail</strong>.. From the mail attribut value everything is stripped of after the <strong>@</strong> and replaced with <strong>ex2010.de</strong> then this string is put into targetaddress with the <strong>SMTP:name@ex2010.de</strong>.</p>
<p>A log file is also created in the directory where the script is called. The filename of the log file is <strong>logging_set_targetaddress.txt</strong></p>
<p><strong>First the script reads the Input file targetaddress.csv. Then it tries to find the user with the E-Mail address of the value &quot;mail&quot;. </strong></p>
<p><strong>In case the result is not equal 1 the script will do nothing and will write an error in the log file.<br /></strong></p>
<p><strong><span style="font-family:Calibri;font-size:medium;">--------------------------------------------------------------------------------------------------------</span></strong></p>
<p><strong><span style="font-family:Calibri;font-size:medium;">Please note that this script is just an example script and needs to be adapted<br /></span></strong></p>
<p><strong><span style="font-family:Calibri;font-size:medium;"><span style="font-family:Calibri;font-size:medium;"><strong>-------------------&nbsp;------------------------------------------------------------------------------------</strong></span></span></strong></p>
<p><span lang="EN-US" style="line-height:107%;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;;font-size:11pt;">&nbsp;------------------- Start of script ----------------------------------------------------------------------</span></p>
<p>Option Explicit<br />Const ForWriting = 2, ForAppending = 8, ForReading = 1<br />Const CreateIfNotExist = True<br />Const DoNotCreate = False</p>
<p>Dim FSO, file, Benutzer<br />Dim TextZeile, data<br />Dim rootDSE<br />Dim conn, Email, LDAPStr, Mystring, vpathfichout, strDomain, objCommand<br />Dim oPerson, domainname, objRoot, username, cn, cmd, rs, strXSMTPContainer, strX500Container, strAddrPrefix, strSMTPPrefix, pre, dummy,dummy1</p>
<p>vpathfichout = &quot;logging_set_targetaddress.txt&quot;</p>
<p>WritetoFile vpathfichout, &quot; Skript gestartet am: &quot; &amp; Date() &amp; &quot; &quot; &amp; Time()</p>
<p>Set FSO=CreateObject(&quot;Scripting.FileSystemObject&quot;)<br />Set file = FSO.OpenTextFile(&quot;targetaddress.csv&quot;, ForReading, False)</p>
<p><br />strSMTPPrefix =&quot;SMTP:&quot;</p>
<p><br />if domainname = &quot;&quot; then<br />&nbsp;set objRoot = getobject(&quot;LDAP://RootDSE&quot;)<br />&nbsp;domainname = objRoot.get(&quot;defaultNamingContext&quot;)<br />end if</p>
<p>TextZeile=file.Readline()&nbsp; &#39; Einlesen der Headerzeile</p>
<p>while not file.AtEndOfStream<br />&nbsp;&nbsp;TextZeile=file.Readline()<br />&nbsp;&nbsp;If IsNull(TextZeile) Then <br />&nbsp;&nbsp;&nbsp;WScript.Quit <br />&nbsp;&nbsp;End If <br />&nbsp;&nbsp;&nbsp; &nbsp;Benutzer=Split(TextZeile,&quot;,&quot;)<br />&nbsp;&nbsp;&nbsp; &nbsp;&#39;wscript.echo Benutzer(0) &amp; &quot;;&quot; &amp; Benutzer(1)<br />&nbsp;&nbsp;&nbsp; &nbsp;username = Benutzer(1)<br />&nbsp;&nbsp;&nbsp; &nbsp;If username &lt;&gt; &quot;&quot; then<br />&nbsp;&nbsp;&nbsp;wscript.echo finduser (username,domainname)<br />&nbsp;End if<br />wend<br />file.Close<br />WritetoFile vpathfichout, &quot; Skript beendet am: &quot; &amp; Date() &amp; &quot; &quot; &amp; Time()</p>
<p>Function FindUser(Byval UserName, Byval Domain)&nbsp;</p>
<p>&nbsp;set cn = createobject(&quot;ADODB.Connection&quot;)<br />&nbsp;set cmd = createobject(&quot;ADODB.Command&quot;)<br />&nbsp;set rs = createobject(&quot;ADODB.Recordset&quot;)</p>
<p>&nbsp;cn.open &quot;Provider=ADsDSOObject;&quot;<br />&nbsp;<br />&nbsp;cmd.activeconnection=cn<br />&nbsp;cmd.commandtext=&quot;SELECT ADsPath FROM &#39;LDAP://&quot; &amp; Domain &amp; _<br />&nbsp;&nbsp;&nbsp; &quot;&#39; WHERE mail = &#39;&quot; &amp; UserName &amp; &quot;&#39;&quot;<br />&nbsp;<br />&nbsp;set rs = cmd.execute</p>
<p>&nbsp;if err&lt;&gt;0 then<br />&nbsp;&nbsp;FindUser=&quot;Error connecting to Active Directory Database:&quot; &amp; err.Description<br />&nbsp;&nbsp;WritetoFile vpathfichout, &quot;Error connecting to Active Directory Database:&quot; &amp; err.Description<br />&nbsp;else<br />&nbsp;&nbsp;if not rs.BOF and not rs.EOF then<br />&nbsp;&nbsp;&nbsp;Set oPerson = GetObject(rs.Fields(0).Value)<br />&nbsp;&nbsp;&nbsp;strXSMTPContainer= Benutzer(1)<br />&nbsp;&nbsp;&nbsp;dummy1= Split(strXSMTPContainer,&quot;@&quot;,-1,1)</p>
<p>&nbsp;&nbsp;&nbsp;dummy = dummy1(0) &amp; &quot;@ex2010.de&quot;<br />&nbsp;&nbsp;&nbsp;wscript.echo &quot;Routingadresse: &quot; &amp; dummy</p>
<p>&nbsp;&nbsp;&nbsp;oPerson.PutEx 3, &quot;targetAddress&quot;, Array(strSMTPPrefix &amp; dummy)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;oPerson.SetInfo<br />&nbsp;&nbsp;&nbsp;wscript.echo err.number &amp; err.description</p>
<p>&nbsp;&nbsp;&nbsp;&#39;wscript.echo &quot;Hinzuf&uuml;gen von targetaddress : &quot; &amp; strSMTPPrefix&nbsp; &amp; strXSMTPContainer<br />&nbsp;&nbsp;&nbsp;WritetoFile vpathfichout, &quot;Hinzuf&uuml;gen von &quot; &amp; strSMTPPrefix&nbsp; &amp; &quot; &quot; &amp; strXSMTPContainer<br />&nbsp;&nbsp;&nbsp;strXSMTPContainer =&quot;&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;rs.MoveFirst<br />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;FindUser = rs(0)<br />&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;FindUser = Benutzer(1) &amp; &quot; Nicht gefunden&quot;<br />&nbsp;&nbsp;&nbsp;WritetoFile vpathfichout, Benutzer(1) &amp; &quot; Nicht gefunden&quot; <br />&nbsp;&nbsp;end if<br />&nbsp;end if<br />&nbsp;cn.close<br />end Function</p>
<p>Sub WritetoFile (FilePathName, Data)<br />Dim Log<br />Dim fs<br />&nbsp;Set fs = CreateObject(&quot;Scripting.FileSystemObject&quot;)<br />&nbsp;Set Log = fs.OpenTextFile(FilePathName, ForAppending, CreateIfNotExist) <br />&nbsp;Log.Writeline data<br />&nbsp;Log.Close<br />end Sub</p>
<p><span lang="EN-US" style="line-height:107%;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;;font-size:11pt;">&nbsp;-------------------&nbsp;End of script ----------------------------------------------------------------------</span></p>
<p><span lang="EN-US" style="line-height:107%;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;;font-size:11pt;">Save the script example as yourfilename.vbs<br /></span></p>
<p><span lang="EN-US" style="line-height:107%;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;;font-size:11pt;">Start the script with the following command: cscript yourfilename.vbs<br /></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Writing Mailboxstatistics into SQL Server</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/writing-mailboxstatistics-into-sql-server</link>
      <pubDate>Tue, 04 Dec 2012 06:22:00 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2012/12/04/writing-mailboxstatistics-into-sql-server/</guid>
      <description><![CDATA[Very often there is a need to keep statistical data longer than expected. The Exchange Cmd-Let...]]></description>
      <content:encoded><![CDATA[<p>Very often there is a need to keep statistical data longer than expected. The Exchange Cmd-Let Get-mailboxStatistics provides all the data which is for statistics good to know.</p>
<p>But if you want to have data over a longer period of time you have to write the&nbsp;Output data from the Cmd-Let e.g. to a SQL database.</p>
<p>&nbsp;</p>
<p>First have a look&nbsp;what the cmd-let will do.&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/3652.Untitled.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/3652.Untitled.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/3652.Untitled.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x300/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/3652.Untitled.jpg" alt="" border="0" /></a></p>
<p>The following definition is located on SQL Server</p>
<p>Databasename: <strong>MailOperation</strong></p>
<p>Servername: <strong>WIN81\SQLExpress</strong></p>
<p>The&nbsp;following columns are definied under tbl.MailboxStatistics:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0456.Untitled2.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0456.Untitled2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0456.Untitled2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0456.Untitled2.jpg" alt="" border="0" /></a>&nbsp;</p>
<p>The Output of the Cmd-let get-Mailboxstatistics&nbsp;must be converted to&nbsp;the&nbsp;right format for&nbsp;the SQL database MailOperation as shown above.</p>
<p><strong>$MailboxServerStatistics = Get-MailboxStatistics -server $MailboxServer.identity</strong></p>
<p>Once this is all done via the preferred method I want to show in this post how to connect and write to SQL Server instance from powershell.</p>
<p>First establish a Connection to the database:</p>
<p><strong>&nbsp;$SQLConnection = New-Object System.Data.SqlClient.SqlConnection</strong><br /><strong>&nbsp;$SQLConnection.ConnectionString = "Data Source=$SQLServer;Integrated Security=true;Initial Catalog=$SQLDatabase;"</strong><br /><strong>&nbsp;$SQLConnection.Open()</strong><br /><strong>&nbsp;if($?) {</strong><br /><strong>&nbsp;&nbsp;Write-Host ("SQL Connection established.")</strong></p>
<p><strong>&nbsp;&nbsp;Write-Log ("SQL Connection established.")</strong><br /><strong>&nbsp;&nbsp;Write-Log ("")</strong><br /><strong>&nbsp;} else {</strong><br /><strong>&nbsp;&nbsp;Write-Host ("!!! No SQL Connection established. ") -foregroundcolor "yellow" -backgroundcolor "black"</strong><br /><strong>&nbsp;}</strong></p>
<p><strong>&nbsp;# Create Command object for sub sequent commands</strong><br /><strong>&nbsp;$SQLCommand = $SQLConnection.CreateCommand()</strong></p>
<p>&nbsp;<strong>&nbsp;&nbsp;&nbsp;$SQLCommandText = "INSERT INTO tblMailboxStatistic (</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AssociatedItemCount,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DatabaseName,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DeletedItemCount,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DisconnectDate,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DisconnectReason,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DisplayName,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ItemCount,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LastLoggedOnUserAccount,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LastLogoffTime,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LegacyDN,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MailboxGuid,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ObjectClass,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StorageLimitStatus,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TotalDeletedItemSize,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TotalItemSize,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MailboxTableIdentifier,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerName,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StorageGroupName,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MoveHistory,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsQuarantined,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsArchiveMailbox,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsValid,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MapiIdentity,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OriginatingServer,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UsrObjectGuid,</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UsrObjectSid) `n "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += "VALUES (`n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.AssociatedItemCount + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.DatabaseName + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.DeletedItemCount + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.DisconnectDate + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.DisconnectReason + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.DisplayName + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.ItemCount + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.LastLoggedOnUserAccount + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.LastLogoffTime + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.LegacyDN + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.MailboxGuid + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.ObjectClass + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.StorageLimitStatus + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.TotalDeletedItemSize + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.TotalItemSize + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.MailboxTableIdentifier + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.ServerName + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.StorageGroupName + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.MoveHistory + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.IsQuarantined + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.IsArchiveMailbox + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.IsValid + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.MapiIdentity + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.OriginatingServer + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.UsrObjectGuid + ", `n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += $MailboxInfoSql.UsrObjectSid + "`n&nbsp;&nbsp;&nbsp; "</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommandText += ")"</strong><br /><strong>&nbsp;&nbsp;&nbsp;Write-Debug ("&nbsp; SQL Command: " + $SQLCommandText)</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommand.CommandText = $SQLCommandText</strong><br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SQLCommand.ExecuteNonQuery()&nbsp;</strong>&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<p><strong>if (!$SQLConnection -eq $null) {</strong><br /><strong>&nbsp;$SQLConnection.Close()</strong><br /><strong>}</strong></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Address book policies - Two different GALs based on department attribute</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/address-book-policies-two-different-gals-based-on-department-attribute</link>
      <pubDate>Thu, 12 Jul 2012 03:11:00 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2012/07/12/address-book-policies-two-different-gals-based-on-department-attribute/</guid>
      <description><![CDATA[The address book policy is a new feature of Exchange 2010 Service Pack 2
This blog will show how...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: medium;"><b>The address book policy is a new feature of Exchange 2010 Service Pack 2</b></span></p>
<p style="text-align: justify;">This blog will show how this new feature can be used. Imagine your organization has the requirement to not show all Exchange<br />users the whole global address list. For example you have two different departments which should only see Exchange users from their own department.</p>
<p>The first step is two create two different new global address lists. In this example these are called department1 and department2.</p>
<p><span style="font-size: medium;"><b>Creating two new global address lists</b></span></p>
<p>To separate the two departments it is necessary to create to global address lists for them.<br />This can be done via the Exchange Management shell:</p>
<p><b>New-GlobalAddresslist "Department1"&nbsp;-ConditionalDepartment "Department1" -IncludedRecipients "AllRecipients"</b></p>
<p><b>New-GlobalAddresslist "Department2"&nbsp; -ConditionalDepartment "Department2" -IncludedRecipients "AllRecipients"</b></p>
<p><b><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7444.Untitled.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7444.Untitled.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7444.Untitled.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7444.Untitled.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5582.Untitled.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5582.Untitled.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5126.Untitled.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5126.Untitled.jpg"></a></b></p>
<p><span style="font-size: medium;"><b>Creating two different address lists for the two departments</b></span></p>
<p>Create two new address lists via the Exchange Management console for department1 and department2:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5621.Untitled.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5621.Untitled.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5621.Untitled.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5621.Untitled.jpg" /></a></p>
<p>Enter the name and display name in the first dialog box.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5086.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5086.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5086.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5086.Untitled.png" /></a></p>
<p>Choose the recipient container for the new address list and select &ldquo;<b>Users with Exchange mailboxes</b>&rdquo;. In this example the whole domain is selected.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4621.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4621.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4621.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4621.Untitled.png" /></a></p>
<p>Mark &ldquo;<b>Recipient is in a department</b>&rdquo; and under Step2 enter the value for the attribute department.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7266.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7266.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7266.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7266.Untitled.png" /></a><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0876.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0876.Untitled.png"></a></p>
<p>Choose under Schedule &ldquo;<b>Immediately</b>&rdquo;.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5824.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5824.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5824.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5824.Untitled.png" /></a></p>
<p>Under configuration summary verify the settings and create the address list by clicking on the &ldquo;<b>New</b>&rdquo; button.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1524.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1524.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1524.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1524.Untitled.png" /></a></p>
<p>The address list is created.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6038.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/6038.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6038.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/6038.Untitled.png" /></a></p>
<p>Now create an address list for the department1 in the organization in the same way as for department2. In the Exchange Management console under Address<br />Lists there are now four new address lists. Two GALs and two addresslists.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0624.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0624.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0624.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0624.Untitled.png" /></a></p>
<p><span style="font-size: medium;"><b>Creating two offline address books for the two different departments</b></span></p>
<p>Two different&nbsp;offline address books for these two departments are needed. These offline address books are created via the Exchange Management console:</p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0334.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0334.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0334.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0334.Untitled.png" /></a></p>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><b>Creating two address book policies for the two departments</b></span></p>
<p>After the creation of two new address lists, global address lists and offline address books the creation of two different address book policies for the two departments <b>department1</b> and <b>department2</b> will be done via the Exchange Management console:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4645.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4645.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4645.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4645.Untitled.png" /></a></p>
<p>In case there is a requirements for different room lists for the two departments this can also be achieved in the same way.</p>
<p><span style="font-size: medium;"><b>Assigning the address book policy to an Exchange user</b></span></p>
<p>Joe Contoso is a member of department1 so his mailbox will be assigned to&nbsp;the &ldquo;Department1&rdquo; address book policy.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8463.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8463.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8463.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8463.Untitled.png" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1222.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1222.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1222.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1222.Untitled.png" /></a></p>
<p>&nbsp;John Smith is a member of department2 so his mailbox will be assigned to the &ldquo;Department2&rdquo; address book policy..</p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5466.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5466.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5466.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5466.Untitled.png" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0247.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0247.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0247.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0247.Untitled.png" /></a></p>
<p><br />The configuration is finished. Now verify the settings via Outlook.</p>
<p><span style="font-size: medium;"><b>Verify the settings</b></span></p>
<p>John Smith is logging on and calls the address book.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7635.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7635.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7635.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7635.Untitled.png" /></a></p>
<p>Joe Contoso is logging on and calls the address book.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8484.Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8484.Untitled.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8484.Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8484.Untitled.png" /></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Solution for migration scenario with Quest QMM for Exchange and Autodiscover Exchange 2007/2010</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/solution-for-migration-scenario-with-quest-qmm-for-exchange-and-autodiscover-exchange-20072010</link>
      <pubDate>Tue, 22 Nov 2011 11:05:00 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2011/11/22/solution-for-migration-scenario-with-quest-qmm-for-exchange-and-autodiscover-exchange-20072010/</guid>
      <description><![CDATA[In every Exchange interorg migration project where the Quest Migration Manager is used, there are...]]></description>
      <content:encoded><![CDATA[<p>In every Exchange interorg migration project where the Quest Migration Manager is used, there are different migration scenarios available. One requirement during a (Exchange 2007 to Exchange 2010) interorg migration project was that the source mailboxenabled account must still be able to use the autodiscover functionality of Exchange 2007/2010 after the mailbox is switched from the source Exchange 2007 organization to the target Exchange 2010 environment. However after the mailbox is switched to the target environment the account is still active in the source forest for a while and thus will get via the autodiscover functionality the source Exchange autodiscover settings. This means that the user will get an Outlook profile which points to the already switched mailbox in the source Exchange organization and therefor the user will not receive any E-mails at all.</p>
<p>Because the customer requirement for this scenario to work correctly was high, the project team decided to make the following configuration steps in order to bring the correct autodiscover functionality to mailbox switched users with an active account in the source forest.</p>
<p>The Exchange cmd-let &ldquo;Export-AutodiscoverConfig&rdquo; is available to export the autodiscover settings from an Exchange organization to a different forest, e.g. user forest. Via the following Exchange Management commands the settings from the target Exchange forest will be exported to the source forest. Once you have entered the credentials, please note the user for the target forest must be a member of the Enterprise Admins group. First step is to enter the target credentials:</p>
<p><b>$targetcredentials = get-credential</b></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5444.q1.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5444.q1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/5444.q1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/5444.q1.jpg" /></a></p>
<p></p>
<p></p>
<p>The following command will do the export of the autodiscover settings:</p>
<p></p>
<p><b>Export-AutoDiscoverConfig -TargetForestDomainController DomainController -MultipleExchangeDeployments $true -TargetForestCredential $targetcredentials </b></p>
<p><b><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7026.q2.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7026.q2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7026.q2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/7026.q2.jpg" /></a></b></p>
<p>No message is returned. However we can look in ADSIEdit into the configuration naming context of the source forest to verify the exported SCP object. In ADSIEdit go to the configuration naming context. Open the properties of &ldquo;CN=Microsoft Exchange Autodiscover&rdquo; and choose properties.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6153.q3.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/6153.q3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6153.q3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/6153.q3.jpg" /></a></p>
<p>The autodiscover information is exported to the source forest where Exchange 2007 is installed.</p>
<p>When we look at the security settings of the imported SCP object you can see the following security settings.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4848.q4.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4848.q4.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4848.q4.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4848.q4.jpg" /></a></p>
<p>With the original security settings all users not only the mailbox switched users would receive the SCP configuration from the target Exchange organization. This is not wanted and therefore we have to remove the &ldquo;Authenticated Users&rdquo; setting and replace it with an already created security group named &ldquo;Migrated".</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0714.q5.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0714.q5.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0714.q5.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0714.q5.jpg" /></a></p>
<p>Now the exported SCP object can only be read from the security group &ldquo;Migrated&rdquo;. This means all mailbox switched users must be a member of the security group &ldquo;Migrated&rdquo;. This can be easily achieved by querying the Quest database through a scheduled script.</p>
<p><b>Scenario computer is a member of target forest</b>: In case the computer account is already a member of the target forest and the mailbox switched user is still active in the source forest, the user will get the SCP settings from the target forest which is fine in this scenario. But this means that a user who is not already mailbox switched using a computer which is joined to the target forest will also get the wrong autodiscover settings (here the user will get the target information). This can be solved in a similar way. Just export the autodiscover settings from source to target, remove the authenticated users from the SCP object as before and add a (domain local) security group with read permissions to the exported SCP object. Add all users from the source forest to this group which are not yet mailbox switched. Now every user from the source forest which is not yet mailbox switched but using a computer which is already migrated to the target forest will receive the autodiscover settings from the source Exchange organization.</p>
<p><strong>Please note</strong> that the original SCP configuration will never be deleted or overwritten by the described process.&nbsp;The original SCP configuration can be found under the following location:</p>
<p>CN=&lt;Exchange Server&gt;,CN=Autodiscover,CN=Protocols,CN=&lt;Exchange Server&gt;,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=&lt;Exchange Organisation&gt;,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Root-Domain&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p></p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>
<p><b></b>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Upgrade von Distribution Groups von Exchange 2003 auf Exchange 2010 SP1</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/upgrade-von-distribution-groups-von-exchange-2003-auf-exchange-2010-sp1</link>
      <pubDate>Sun, 25 Sep 2011 05:14:00 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2011/09/25/upgrade-von-distribution-groups-von-exchange-2003-auf-exchange-2010-sp1/</guid>
      <description><![CDATA[Werden Exchange 2003 mailenabled Gruppen auf Exchange 2010 hochgestuft, so kann dies entweder...]]></description>
      <content:encoded><![CDATA[<p>Werden Exchange 2003 mailenabled Gruppen auf Exchange 2010 hochgestuft, so kann dies entweder &uuml;ber die Exchange Management Console durchgef&uuml;hrt werden oder nat&uuml;rlich auch &uuml;ber die Exchange Management Shell. Innerhalb der Exchange Console braucht man nur die Gruppe anzufassen. Klickt man anschlie&szlig;end auf "Apply" so erscheint folgender Hinweis:</p>
<p><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1121.1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1121.1.jpg" width="573" height="328" /></p>
<p>Ist f&uuml;r die Verteilerliste ein Owner eingetragen, so kann dieser auch nachdem die Verteilerliste hochgestuft worden ist &uuml;ber den Outlook Client die Verteilerliste bearbeiten.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8255.2.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8255.2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8255.2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8255.2.jpg" width="313" height="305" /></a></p>
<p>Ein Problem entsteht allerdings wenn weitere Benutzer Rechte in Exchange 2003 bekommen haben die Verteilerliste in Outlook zu bearbeiten und dies nicht &uuml;ber eine Security Gruppe im "Managed by" Attribut durchgefuehrt worden ist.&nbsp;Um weitere Benutzer zum Bearbeiten der Mitgliederschaft in Exchange 2003 freizuschalten wird dies &uuml;ber die Security-Seite durchgef&uuml;hrt.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1423.3.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1423.3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1423.3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1423.3.jpg" width="335" height="356" /></a></p>
<p>Diese beschriebene Vorgehensweise bei der Administration findet man recht haeufg.&nbsp;Unabhaengig ob die Verteilerliste bereits hochgestuft wurde,&nbsp;kann der Owner (ManagedBy) und alle Benutzer die obiges "WriteMembers" Recht gesetzt haben in Outlook die Verteilerliste bearbeiten, solange die Benutzer sich noch auf einem Exchange 2003 Server befinden. Wird nun die Verteilerliste auf Exchange 2010 hochgestuft, so wird der Owner &uuml;bernommen und kann die Verteilerliste wie gewohnt bearbeiten. Auch sind die Benutzer, die &uuml;ber das "WriteMembers" Recht berechtigt worden sind weiterhin&nbsp;in der Lage die Verteilerliste zu bearbeiten.</p>
<p>Wird allerdings ein Benutzer, der &uuml;ber das "WriteMembers" Recht berechtigt worden ist auf Exchange 2010 verschoben, so erscheint auf einmal folgende Fehlermeldung innerhalb von Outlook.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8468.Untitled.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8468.Untitled.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8468.Untitled.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8468.Untitled.jpg" /></a></p>
<p>Schaut man sich die Eigenschaften der hochgestuften Verteilerliste in der Exchange Management Console an, so sieht man lediglich, dass unter "Managed by" der Besitzer eingetragen ist, allerdings fehlt ein Eintrag f&uuml;r den Benutzer2, der zuvor innerhalb von Exchange 2003 &uuml;ber das "WriteMembers" Recht berechtigt worden ist.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1727.5.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1727.5.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1727.5.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1727.5.jpg" /></a></p>
<p>Sind mehr als nur ein paar Verteilerlisten auf die beschriebene Art berechtigt worden, so hat man als Administrator mehr und mehr Probleme, je mehr Verteilerlisten und Benutzer nach Exchange 2010 verschoben werden. Um dieses Problem zu l&ouml;sen kann man folgendermassen vorgehen:</p>
<p>1. Auslesen des "WriteMembers" Recht aller Verteilerlisten.</p>
<p>2. Hochstufen der Verteilerlisten auf Exchange 2010.</p>
<p>3. Nachtr&auml;gliches hinzuf&uuml;gen aller Benutzer die "WriteMembers" gesetzt haben unter dem Owner Attribut der Verteilerliste.</p>
<p>&nbsp;&Uuml;ber die folgende Query kann man das Recht "WriteMembers" innerhalb der Exchange Management Shell auslesen:</p>
<p><strong>get-distributiongroup * | get-adpermission | Where-object {($_.AccessRights -eq 'WriteProperty' -and $_.Properties -like '*Member*' -and $_.User -like 'ACME\*' -and $_.User -notlike 'ACME\Exchange Wi*')}|fl user,id*</strong></p>
<p>Der Dom&auml;nenname muss angepasst werden und gegebenenfalls m&uuml;ssen diverse nicht interessante Gruppen wie die Exchange Windows Permissions ausgeblendet werden.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4846.6.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4846.6.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4846.6.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/4846.6.jpg" /></a></p>
<p><br />Um nun alle erw&auml;hnten Probleme zu l&ouml;sen, kann man &uuml;ber ein kleines Exchange Management&nbsp; Shell Skript die Verteilerlisten auf Exchange 2010 hochstufen und alle Benutzer, die nur &uuml;ber das "WriteMembers" Recht berechtigt worden sind unter dem "Managed by" Feld eintragen.</p>
<p><strong>$user = get-distributiongroup verteiler1| get-adpermission | Where-object {($_.AccessRights -eq 'WriteProperty' -and $_.Properties -like '*Member*' -and $_.User -like 'ACME\*' -and $_.User -notlike 'ACME\Exchange Wi*')}|select user</strong><br /><strong>del datei.txt</strong><br /><strong>$User &gt; datei.txt</strong><br /><strong>$file = get-content datei.txt</strong></p>
<p><strong>$index=0</strong></p>
<p><strong>$user1=$file[$index]</strong></p>
<p><strong>While(1)</strong><br /><strong>{</strong><br /><strong>&nbsp;if ($user1 -eq $null)</strong><br /><strong>&nbsp;{</strong><br /><strong>&nbsp;&nbsp;break</strong><br /><strong>&nbsp;}</strong><br /><strong>&nbsp;if ($user1 -like "ACME*")</strong><br /><strong>&nbsp;{</strong></p>
<p><strong>$t = get-user $user1.Replace(" ","")</strong></p>
<p><strong>set-distributiongroup -id Verteiler1 -BypassSecurityGroupManagerCheck&nbsp; &ndash;Confirm:$false&nbsp; -ManagedBy ((get-distributiongroup Verteiler1).Managedby + $t.DistinguishedName)</strong></p>
<p><strong>&nbsp;}</strong><br /><strong>&nbsp;write-output $user1</strong><br /><strong>&nbsp;$index=$index+1</strong><br /><strong>&nbsp;$user1=$file[$index]</strong><br /><strong>}</strong></p>
<p>Das Skript soll lediglich zeigen wie die Vorgehensweise funktionieren kann. Will man das Skript f&uuml;r alle Verteilerlisten verwenden, muss es entsprechend angepasst werden.</p>
<p>Bei dem ersten Aufruf des Skripts sieht man, dass der Benutzer1 als bereits schon existierend einen Fehler produziert. Wird das Skript ein zweites mal aufgerufen, sieht man nun die gleiche Fehlermeldung f&uuml;r den Benutzer2 , der ja nur &uuml;ber das "WriteMembers" Recht in Exchange 2003 berechtigt gewesen ist.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/2388.7.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/2388.7.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/2388.7.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/2388.7.jpg" /></a></p>
<p>&nbsp;&Uuml;berpr&uuml;ft man die Eintr&auml;ge in der Exchange Management Console, so sieht man nun zwei Eintr&auml;ge unter dem "Managed by" Attribut.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8306.9.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8306.9.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8306.9.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/8306.9.jpg" width="325" height="315" /></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Lotus Notes Connector 2003 Aktualisierung auf Directory Connector CMN 3.x Coexistence Manager von Quest</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/lotus-notes-connector-2003-aktualisierung-auf-directory-connector-cmn-3-x-coexistence-manager-von-quest</link>
      <pubDate>Tue, 24 May 2011 09:55:00 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2011/05/24/lotus-notes-connector-2003-aktualisierung-auf-directory-connector-cmn-3-x-coexistence-manager-von-quest/</guid>
      <description><![CDATA[Dieser Blogbeitrag bezieht sich auf den Ende Dezember 2010 von Quest bereitgestellten Directory...]]></description>
      <content:encoded><![CDATA[<p>Dieser Blogbeitrag bezieht sich auf den Ende Dezember 2010 von Quest bereitgestellten Directory Connector&nbsp; <a href="https://www.quest.com/">www.quest.com</a>&nbsp;. </p>
<p>Der Directory Connector ist Bestandteil der CMN 3.x Coexistence Manager Suite von Quest. Der Connector synchronisiert die Verzeichnisse zwischen Exchange&nbsp;2010 und Lotus Notes Domino. In der Vergangenheit konnte f&uuml;r diesen Verzeichnisabgleich auch der&nbsp;Microsoft Exchange "Lotus Notes 2003 Connector for Messaging and Directory Synchronization" verwendet werden.&nbsp;Mit Exchange 2007 wurde von Microsoft die Microsoft Transporter Suite f&uuml;r Exchange 2007 bereitgestellt. Die Microsoft Transporter Suite wird allerdings nur f&uuml;r Exchange 2007 unterst&uuml;tzt.</p>
<p>Beide Tools von Microsoft haben das Message Routing entweder &uuml;ber das Lotus Notes Routing oder &uuml;ber SMTP realisiert. Da der alte&nbsp;&nbsp;"Lotus Notes 2003 Connector for Messaging and Directory Synchronization" immer noch im Einsatz sein kann, kommt man m&ouml;glicherweise nicht darum, sich Gedanken zu machen, wie man diesen alten Connector abl&ouml;sen kann. Denkt man &uuml;ber die Verwendung des Directory Connectors von Quest CMN 3.x Coexistence Manager nach, stellt sich die Frage wie man die alten Kontakte im Active Directory so aktualisieren kann, das der Directory Connector von Quest diese &uuml;bernehmen kann, ohne die alten Kontakte zu l&ouml;schen und durch den Directory Connector von Quest neu anlegen zu lassen.</p>
<p>Will man den Directory Connector von Quest einsetzen sind einige Schritte zu testen und umzusetzen, damit eine Neuerstellung der Kontakte im Active Directory verhindert werden kann.</p>
<p>Der Quest Directory Connector legt eine OU mit dem Namen CMN an. Alle Notes User w&uuml;rden innerhalb dieser OU neu angelegt werden. In der Abbildung sieht man die OU, sowie ein paar alte Kontaktobjekte, die durch den Exchange 2003 Lotus Notes Connector angelegt worden sind. </p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1185.CMN1.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1185.CMN1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1185.CMN1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/1185.CMN1.jpg" border="0" /></a></p>
<p>Die alten Kontakte haben im TargetAddress Attribut eine Lotus Notes Proxy Adresse. Nur unter dem Attribut ProxyAddresses findet man auch die SMTP Adresse, die zu dem Notes Kontakt geh&ouml;rt.</p>
<p>Wird nun der Directory Connector von Quest gestartet legt dieser keine Kontakte in der OU CMN an, da die SMTP Adressen bereits auf den alten Kontaktobjekten vorhanden sind. Allerdings werden die alten Kontaktobjekte auch nicht &uuml;bernommen. Um dies zu realisieren muss in einem ersten Schritt die Notes Adresse unter dem Attribut TargetAddress auf die SMTP Adresse des Notes Users umgestellt werden.</p>
<p>&nbsp;Die folgende Abbildung zeigt dies f&uuml;r ein Objekt beispielhaft:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/3581.CMN2.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/3581.CMN2.jpg"><img height="413" width="413" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/3581.CMN2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/3581.CMN2.jpg" border="0" /></a></p>
<p><span style="font-size: small;"><strong>Verschieben des modifizierten Kontaktobjekts in die OU CMN</strong></span></p>
<p>Das &Auml;ndern des Attributes TargetAddress auf dem alten Kontaktobjekt alleine reicht nicht aus, damit der Directory Connector von Quest diesen &uuml;bernimmt. Damit dies funktioniert muss das Kontaktobjekt in die OU von Quest also <strong>CMN</strong> verschoben werden. Die n&auml;chste Abbildung zeigt das Kontaktobjekt in der CMN OU bevor der Connector von Quest gestartet worden ist.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6253.CMN3.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/6253.CMN3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6253.CMN3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/6253.CMN3.jpg" border="0" /></a></p>
<p><span style="font-size: small;"><strong>Eine Sychronisation mit dem Directory Connector von Quest Notes-&gt;Exchange starten:</strong></span></p>
<p>Nachdem das TargetAddress Attribut auf die SMTP Adresse ge&auml;ndert worden ist und das Objekt in die CMN OU verschoben worden ist, wird der Connector von Quest in Richtung Notes-&gt;Exchange einmal gestartet. Das Ergebnis sieht dann wie in der folgenden Abbildung aus:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0830.CMN4.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0830.CMN4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0830.CMN4.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-88-25/0830.CMN4.jpg" border="0" /></a></p>
<p>Jetzt hat der Directory Connector von Quest das Kontaktobjekt erkannt und auch entsprechend aktualisiert. Bei einer gr&ouml;&szlig;eren Menge von Kontaktobjekten ist es am besten den gesamten Vorgang zu skripten anstatt die &Auml;nderungen manuell vorzunehmen. </p>]]></content:encoded>
    </item>
    <item>
      <title>Erstellen einer neuen Default Role Assignment Policy</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/erstellen-einer-neuen-default-role-assignment-policy</link>
      <pubDate>Thu, 14 Apr 2011 05:54:00 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2011/04/14/erstellen-einer-neuen-default-role-assignment-policy/</guid>
      <description><![CDATA[Exchange&nbsp;2010 besitzt eine Default Role Assignment Policy welche auf jede Exchange 2010...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1"><span style="font-family: arial,helvetica,sans-serif;"><span style="color: black;"><span style="font-size: small;"><span style="color: #333333; font-size: large;">
<div class="WordSection1"><span style="font-family: arial,helvetica,sans-serif;"><span style="color: black;"><span style="font-size: small;">Exchange&nbsp;2010 besitzt eine Default Role Assignment Policy welche auf jede Exchange 2010 Mailbox angewendet wird. Die Default Role Assignment Policy kann nicht ge&auml;ndert werden. Um &Auml;nderungen durchzuf&uuml;hren muss eine neue&nbsp;Role Assignment Policy erstellt werden und als Default gekennzeichnet werden. Bestehende Berechtigungen k&ouml;nnen bei einer neu erstellen Role Assignment Policy angepasst werden. Es k&ouml;nnen einzelne Rollen entfernt bzw. angepasst werden. Jede Mailbox, die nach Exchange 2010 verschoben wird bekommt automatisch die Default Role Assisgnment Policy zugewiesen.</span></span></span></div>
<div class="WordSection1"><span style="font-family: arial,helvetica,sans-serif;"><span style="color: black;"><span style="font-size: small;"></span></span></span></div>
<div class="WordSection1"><span style="font-family: arial,helvetica,sans-serif;"><span style="color: black;"><span style="font-size: small;"></span></span></span></div>
</span></span></span></span></div>
<div class="WordSection1"><span style="font-family: arial,helvetica,sans-serif;"><span style="color: black;"><span style="font-size: small;"><strong><span style="color: #333333; font-size: large;">Default Role Assignment Policy</span></strong></span></span></span></div>
<div class="WordSection1"><span style="font-family: arial,helvetica,sans-serif;"><span style="color: black;"><span style="font-size: small;"></span></span></span></div>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Folgende Liste beinhaltet alle Rollen, die in der Default Role Assignment Policy enthalten sind:</span></span></p>
<ul type="disc">
<li class="MsoNormal" style="line-height: 135%; margin: 6pt 0cm 3pt 36pt; mso-list: l6 level1 lfo2; tab-stops: list 36.0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span lang="EN-GB" style="line-height: 135%; font-size: 9pt; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">MyBaseOptions <o:p></o:p></span></span></span></li>
<li class="MsoNormal" style="line-height: 135%; margin: 6pt 0cm 3pt 36pt; mso-list: l6 level1 lfo2; tab-stops: list 36.0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span lang="EN-GB" style="line-height: 135%; font-size: 9pt; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">MyContactInformation <o:p></o:p></span></span></span></li>
<li class="MsoNormal" style="line-height: 135%; margin: 6pt 0cm 3pt 36pt; mso-list: l6 level1 lfo2; tab-stops: list 36.0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span lang="EN-GB" style="line-height: 135%; font-size: 9pt; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">MyVoiceMail <o:p></o:p></span></span></span></li>
<li class="MsoNormal" style="line-height: 135%; margin: 6pt 0cm 3pt 36pt; mso-list: l6 level1 lfo2; tab-stops: list 36.0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span lang="EN-GB" style="line-height: 135%; font-size: 9pt; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">MyTextMessaging <o:p></o:p></span></span></span></li>
<li class="MsoNormal" style="line-height: 135%; margin: 6pt 0cm 3pt 36pt; mso-list: l6 level1 lfo2; tab-stops: list 36.0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span lang="EN-GB" style="line-height: 135%; font-size: 9pt; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">MyDistributionGroupMembership&nbsp;</span></span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><o:p><span style="font-size: x-small;">&nbsp;</span></o:p></span></span></span></li>
</ul>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><o:p><span style="font-size: x-small;">
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><o:p>&Uuml;ber die Shell sieht man welche Rollen dazugeh&ouml;ren</o:p></span></span></span></p>
</span></o:p></span></span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><o:p><span style="font-size: x-small;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/7571.dr1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/7571.dr1.jpg" border="0" /></span></o:p></span></span></span></p>
<p class="NumHeading2"><span style="color: #333333;"><strong><span style="font-size: large;">Anpassen der&nbsp;Default Role Assignment Policy</span></strong></span></p>
<p class="NumHeading2"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Unterschiedliche Organisationen haben unterschiedliche Anforderungen, welche Einstellungen ge&auml;ndert werden d&uuml;rfen bzw. welche Einstellungen &uuml;berhaupt sichtbar seien sollen.</span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Die vorhandene Default Role Assignment Policy erlaubt es dem Benutzer &uuml;ber den Exchange Control Panel ECP die Attribute wie z.B. street, city, zip, region und office selber zu &auml;ndern. Auch k&ouml;nnen die Attribute f&uuml;r die Telefonnummern eigenst&auml;ndig hier&uuml;ber durch den jeweiligen Benutzer ge&auml;ndert werden.</span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4606.dr3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/4606.dr3.jpg" border="0" /></span></span></p>
<p class="MsoNormal"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;">Unter den Optionen ist es auch m&ouml;glich Einstellungen f&uuml;r Gruppen, Mobile Ger&auml;te und SMS vorzunehmen.</span></span></p>
<p class="MsoNormal"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/2677.dr2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/2677.dr2.jpg" border="0" /></span></span></p>
<p class="MsoNormal"><span style="font-size: medium;"><span style="color: #333333;"><o:p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um eine neue Assignment Policy zu erstellen &ouml;ffnet man eine Exchange 2010 Management Shell. Der Benutzer muss Mitglied der Gruppe "<strong>Organization Management</strong>" sein.</span></span></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size: medium;"><span style="color: #333333;"><o:p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um bei Forests, die mehr als nur eine Dom&auml;ne haben die Cmd-Lets erfolgreich &uuml;ber die Exchange Management Shell&nbsp;absetzen zu k&ouml;nnen empfiehlt es sich den View f&uuml;r die Shell auf den kompletten Forest zu setzen.</span></span></span></span></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Set-ADServerSettings &ndash;ViewEntireForest $true<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Nun wird eine Management Rolle erstellt und von der MyBaseOptions Rolle abgeleitet:</span></span></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">New-ManagementRole &ldquo;MyCustomBaseOptions&rdquo; &ndash;Parent MyBaseOptions</span></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0486.dr4.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/0486.dr4.jpg" border="0" /></span></b></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um die Einstellungen f&uuml;r Mobile Ger&auml;te zu entfernen gibt man folgende Befehle in der Shell nacheinander ein:</span></span></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Get-ManagementRoleEntry &ldquo;MyCustomBaseOptions\Get-ActiveSyncDevice&rdquo; | Remove-ManagementRoleEntry<o:p></o:p></span></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Get-ManagementRoleEntry &ldquo;MyCustomBaseOptions\Get-ActiveSyncDeviceStatistics&rdquo; | Remove-ManagementRoleEntry<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US; mso-no-proof: yes;"></span><o:p></o:p></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><o:p><span style="font-size: x-small;"></span></o:p></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Get-ManagementRoleEntry &ldquo;MyCustomBaseOptions\Clear-ActiveSyncDevice&rdquo; | Remove-ManagementRoleEntry<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Jetzt kann die neue Management Role Policy&nbsp;erstellt werden. </span></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"></span><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">New-RoleAssignmentPolicy &ndash;name &ldquo;NewPolicy&rdquo; &ndash;Roles MyCustomBaseOptions</span></b></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um die neue Role Assignment Policy als default zu kennzeichnen wird folgender Befehlt in der Shell abgesetzt:</span></span></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Set-RoleAssignmentPolicy &ldquo;NewPolicy&rdquo; &ndash;isdefault:$True<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="mso-fareast-language: EN-US; mso-no-proof: yes;"></span><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Jetzt bekommt jede neu erstellte Exchange 2010 Mailbox die Policy "<strong>NewPolicy</strong>" zugewiesen. Um die neue Policy bereits existierenden Benutzern zuzuweisen gibt es entweder die M&ouml;glichkeit dies &uuml;ber die Exchange Management Console durchzuf&uuml;hren oder &uuml;ber die Exchange Management Shell:</span></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/0576.dr5.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/0576.dr5.jpg" border="0" /></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Wie sehen die Optionen jetzt f&uuml;r den Benutzer aus?</span></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/4718.dr6.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/4718.dr6.jpg" border="0" /></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Auch sind keine Attribute editierbar, die zuvor ge&auml;ndert werden konnten:</span></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6237.dr7.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/6237.dr7.jpg" border="0" /></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="mso-fareast-language: EN-US; mso-no-proof: yes;"></span><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um die Einstellungen f&uuml;r Mobile Ger&auml;te wieder zu aktivieren, muss man lediglich die zuvor entfernten RoleEntries wieder hinzuf&uuml;gen:</span></span></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Add-ManagementRoleEntry &ndash;identity &ldquo;MyCustomBaseOptions\Clear-ActiveSyncDevice&rdquo; &ndash;confirm:$false<o:p></o:p></span></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Add-ManagementRoleEntry &ndash;identity &ldquo;MyCustomBaseOptions\Get-ActiveSyncDeviceStatistics&rdquo; &ndash;confirm:$false<o:p></o:p></span></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: x-small;">Add-ManagementRoleEntry &ndash;Identity &ldquo;MyCustomBaseOptions\Get-ActiveSyncDevicve&rdquo; &ndash;confirm:$false<o:p></o:p></span></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="mso-fareast-language: EN-US; mso-no-proof: yes;"></span><o:p></o:p></span></span></b></p>
<p class="MsoNormal"><o:p><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></span></o:p></p>
<p><span style="font-size: x-small;">
<p class="MsoNormal"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Wie sehen die Optionen jetzt f&uuml;r den Benutzer aus?</span></span></span></p>
</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US; mso-no-proof: yes;"></span><o:p><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/2376.dr8.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/2376.dr8.jpg" border="0" /></o:p></p>
<p class="MsoNormal"><o:p><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Wie man sieht sind die M&ouml;glichkeiten sehr variabel. Es k&ouml;nnen unterschiedliche Role Assignment Policies f&uuml;r unterschiedliche Benutzergruppen erstellt werden, um den jeweiligen Anforderungen gerecht zu werden.</span></span></span></o:p></p>]]></content:encoded>
    </item>
    <item>
      <title>Importieren von PST Dateien und Versenden von Status-Emails</title>
      <link>https://docs.microsoft.com/archive/blogs/akapteina/importieren-von-pst-dateien-und-versenden-von-status-emails</link>
      <pubDate>Thu, 14 Apr 2011 03:37:00 GMT</pubDate>
      <dc:creator><![CDATA[Kapteina Andreas]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/akapteina/2011/04/14/importieren-von-pst-dateien-und-versenden-von-status-emails/</guid>
      <description><![CDATA[Hier wird die Vorgehensweise f&uuml;r das Importieren von bereitgestellten PST-Dateien in eine...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;">
<p class="MsoNormal"><span lang="DE" style="line-height: 110%; font-size: 10pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: JA; mso-bidi-language: AR-SA;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Hier wird die Vorgehensweise f&uuml;r das Importieren von bereitgestellten PST-Dateien in eine Exchange 2010 Mailbox bzw. Archiv beschrieben. </span></span></span></p>
<p class="MsoNormal"><span lang="DE" style="line-height: 110%; font-size: 10pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: JA; mso-bidi-language: AR-SA;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>Ben&ouml;tigte Berechtigungen:</strong></span></span></span></p>
<p class="MsoNormal"><span lang="DE" style="line-height: 110%; font-size: 10pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: JA; mso-bidi-language: AR-SA;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></span></p>
<p class="MsoNormal"><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;"><span lang="DE" style="line-height: 110%; font-size: 10pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: JA; mso-bidi-language: AR-SA;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></span></span></span></p>
<p class="MsoNormal"><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;"><span lang="DE" style="line-height: 110%; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: JA; mso-bidi-language: AR-SA;"></span></span></span><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;">
<p class="MsoNormal"><span lang="DE" style="line-height: 110%; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: JA; mso-bidi-language: AR-SA;"><o:p></o:p></span></p>
</span></span>
<p><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></span></span></p>
<p><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;">
<p class="MsoNormal"><span lang="DE" style="color: black; mso-ansi-language: DE;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Damit &uuml;ber die Exchange Management Shell ein Import von PST-Dateien vorgenommen werden kann, ist es notwendig zuvor eine entsprechende Sicherheitsgruppe im Active Directory anzulegen. Dies kann &uuml;ber den Exchange Control Panel ECP durchgef&uuml;hrt werden. Alternativ geht dies nat&uuml;rlich auch &uuml;ber die Exchange Management Shell. Selbst Mitglieder der h&ouml;chsten Exchange Gruppe &bdquo;<strong>Ogranization Management</strong>&ldquo; k&ouml;nnen per default keinen Import oder Export anstossen.</span></span></span></p>
<p><span lang="DE" style="color: black; mso-ansi-language: DE;">
<p class="MsoNormal"><span lang="DE" style="color: black; mso-ansi-language: DE;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um diese neue Grupppe anzulegen meldet man sich an&nbsp;Outlook WebApp an mit einem Account, der das Echange Recht hat RBAC Gruppen zu administrieren. Nun wechselt man in die Optionen zu dem Punkt &bdquo;<strong>Meine Organization verwalten</strong>&ldquo;. Hier&nbsp;geht man auf&nbsp;die Einstellungen f&uuml;r &bdquo;<b style="mso-bidi-font-weight: normal;">Rollen und &Uuml;berwachung</b>&ldquo;. </span></span></span></p>
</span>
<p><span lang="DE" style="color: black; mso-ansi-language: DE;">
<p class="MsoListParagraph"><span lang="DE" style="font-family: Symbol; color: black; mso-ansi-language: DE; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">&middot;<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"> </span></span></span></span></span><span lang="DE" style="color: black; mso-ansi-language: DE;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Erstellen einer neuen Rollengruppe z.B. &bdquo;<b style="mso-bidi-font-weight: normal;">ImportExport-PST</b>&ldquo;.</span></span></span></p>
</span>
<p class="MsoListParagraph"><span lang="DE" style="color: black; mso-ansi-language: DE;"><o:p><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/1537.ecp.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/1537.ecp.jpg" border="0" /></o:p></span></p>
<span lang="DE" style="color: black; mso-ansi-language: DE;">
<p><o:p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></o:p></p>
</span></p>
</p>
</span></span></p>
</p>
</span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span lang="DE" style="mso-ansi-language: DE;">Die folgende Abbildung zeigt die Gruppe und deren Rollen, die f&uuml;r das Importieren bzw. Exportieren notwendig sind. Nun muss nur noch der&nbsp;</span><span lang="DE" style="mso-ansi-language: DE;">Account hinzugef&uuml;gt werden, der die PST-Dateien in die Mailboxen/Archive importieren soll. In diesem Beispiel ist es der Administrator.</span></span></span></p>
<p class="MsoNormal"><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;"><o:p><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/3527.ecp1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/3527.ecp1.jpg" border="0" /></o:p></span></span></p>
<p><span lang="DE" style="mso-ansi-language: DE;"><span style="font-size: x-small;"><o:p>
<p class="MsoNormal"><span lang="DE" style="mso-ansi-language: DE;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Damit eine geplanter Import erfolgreich verlaufen kann, muss die Exchange Mailbox bereits existieren bzw. ein Archiv muss angelegt sein, falls die Migration direkt in das Exchange Archiv geschehen soll.</span></span></span></p>
</o:p></span></span></p>
<p><span lang="DE" style="mso-ansi-language: DE;">
<p class="MsoNormal"><span lang="DE" style="mso-ansi-language: DE;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um eine Migration zu starten, wird eine Exchange Management Shell auf einem Exchange Mailbox Server ge&ouml;ffnet. Dies muss nicht der Mailbox Server sein auf dem sich die Archive befinden. Es muss auch kein Outlook auf dem Exchange Server installiert sein. Nur das Service Pack 1 f&uuml;r Exchange 2010 wird ben&ouml;tigt.</span></span></span></p>
</span></p>
<p><o:p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">&Uuml;ber das Exchange Management Cmd-Let <strong>New-MailboximportRequest</strong> wird der Import einer PST-Datei vorgenommen. Wird der Parameter <strong>-isarchive</strong> verwendet, werden die Daten in das Archiv der Mailbox importiert, ohne Angabe dieses Parameters wird der Inhalt in die Exchange Mailbox importiert. Der Parameter <strong>-FilePath</strong> gibt den Speicherort der PST-Datei an. Dies kann zum Beispiel wie folgt aussehen: </span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>\\Server\FileShare\Dateiname.pst</strong></span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">. Der Parameter <strong>-Mailbox</strong> beinhaltet den Exchange Alias der Zielmailbox. &Uuml;ber den Parameter <strong>-TargetRootfolder</strong> wird bei Bedarf ein bestimmter Ordner angelegt unter dem alle Daten aus der PST inklusive der Ordnerstruktur angelegt werden.</span></span></o:p></p>
<p><o:p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><img height="169" width="574" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/6114.import3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/6114.import3.jpg" alt="Via Exchange Management Shell importieren einer PST-Datei" title="New-MailboxImportRequest" style="float: left; border: 0px;" /></span></span></o:p></p>
<p><o:p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></o:p></p>
<p><o:p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></o:p></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;"></span></p>
<p><span style="font-size: small;">Wie man hier sieht, wird der Import nicht direkt gestartet, sondern gequeued. &Uuml;ber das Exchange Cmd-Let <strong>Get-MailboxImportRequest</strong> k&ouml;nnen alle Requests und der jeweilige Status abgerufen werden.</span></p>
<p><span style="font-size: small;"></span></p>
<p><img height="162" width="575" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/88/25/8105.import4.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-88-25/8105.import4.jpg" border="0" /></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">&Uuml;ber das Exchange Cmd-Let <strong>Remove-MailboxImportRequest</strong> k&ouml;nnen die bereits durchgef&uuml;hrten ImportRequests bei Bedarf gel&ouml;scht werden.</span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Um diesen Prozess zu automatisieren, muss lediglich eine Input-Datei erstellt werden, in der alle PST-Dateien und der jeweilige Exchange Alias pro Zeile aufgelistet sind. Am einfachsten ist es, wenn alle PST-Dateien im gleichen Verzeichnis/Share zur Verf&uuml;gung gestellt werden.</span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Beispiel Inputdatei:</span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: x-small;"><strong>a.kapteina,kapteina.pst</strong></span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: x-small;"><strong>user2,user2.pst</strong></span></span></span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: x-small;"><strong>user3,user3.pst</strong></span></span></span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Wie kann via Skript daf&uuml;r gesorgt werden, dass der jeweilige Benutzer &uuml;ber den Verlauf der Importierung bzw. &uuml;ber den Abschlu&szlig; informiert wird?</span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">&Uuml;ber das Cmd-Let <strong>Send-MailMessage</strong>:</span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">--------------------------------- Beispielcode ----------------------------------------------------------------------------------</span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="line-height: 115%; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"><strong>$data = get-content inputfile.txt</strong></span></span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">
<p class="MsoNormal"><span style="mso-ansi-language: EN-US;"><strong>$emailbody<span style="mso-spacerun: yes;">&nbsp; </span>= get-content emailbody.txt | out-string<o:p></o:p></strong></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong><span style="mso-ansi-language: EN-US;">$utf8 = New-Object System.Text.utf8encoding</span></strong></span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong><span style="mso-ansi-language: EN-US;">$user=$data[$index].split(",")</span></strong></span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong><span style="mso-ansi-language: EN-US;">$MailboxUser = get-mailbox $user[0]</span></strong></span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong><span style="mso-ansi-language: EN-US;">$YourFilePath = "\\Server\C$\Share\" + $User[1]</span></strong></span></span></p>
<p class="MsoNormal"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong><span style="mso-ansi-language: EN-US;">New-MailboxImportRequest -isarchive -FilePath $YourFilePath -Mailbox $user[0] -TargetRootfolder Import</span></strong></span></span></p>
</span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"></span></span></span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span lang="DE" style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>Send-MailMessage -From </strong></span></span></span></span><a href="mailto:administrator@acme.com"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>administrator@acme.com</strong></span></span></span></span></span></a><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong> -To <span lang="DE" style="line-height: 115%; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';">$MailboxUser.<span lang="DE" style="line-height: 115%; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';">PrimarySmtpAddress</span></span> -encoding $utf8 -SUBJECT "Ihre PST-Datei wurde in Ihr Exchange Archiv importiert" -body $emailbody<span style="mso-spacerun: yes;">&nbsp; </span>-smtpserver SMTPServer</strong></span></span></span></span></span></span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span lang="DE" style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">------------------------------ Beispielcode Ende --------------------------------------------------------------------------------</span></span></span></span></span></span></span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span lang="DE" style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ansi-language: DE; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Damit der Emailversand auch erfolgreich funktionieren kann, muss ein Receive Connector auf dem Server <strong>SMTPServer</strong> angelegt werden, der anonymen Zugriff f&uuml;r eine ausgew&auml;hlte IP Adresse gestattet. Der Absender wird gegen&uuml;ber der GAL aufgel&ouml;st, wenn der Receive Connector auf "<strong>Externally secured</strong>" eingestellt wird.</span></span></span></span></span></span></span></span></p>]]></content:encoded>
    </item>
  </channel>
</rss>