Problems to mail-enable user in Exchange2007Hi,<br/><br/>I have a strange problem:<br/>We use ILM 2007 FP1 to create mailboxes in Exchange 2007.<br/>The mailboxes are created using ExchangeUtils.CreateMailbox.<br/><br/>This works perfect, both in our staging and production enviroment.<br/><br/>The problem we have is to mail-enable exisning users.<br/>In the staging we simply flow some attributes to the AD (homeMDB etc.), this works perfect.<br/>In the production enviroment this fails, we get mail-contacts instad. I can't figure out why. Could i be some configuration in Exchange? Any ideas?<br/><br/>I have read some tutorials with rather complex ways to handle exisning users (like fireing powershell scripts in MA:s), is this neccesary? It works in the staging enviroment without extra handling, but am I missing something? Perhaps there is a hidden problem there anyway?<br/><br/>Thanks,<br/>/ Jon© 2009 Microsoft Corporation. All rights reserved.Tue, 14 Apr 2009 05:29:35 Z4b230cd3-1a74-49c8-ac68-92fe1446e890http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#4b230cd3-1a74-49c8-ac68-92fe1446e890http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#4b230cd3-1a74-49c8-ac68-92fe1446e890Jon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007Hi,<br/><br/>I have a strange problem:<br/>We use ILM 2007 FP1 to create mailboxes in Exchange 2007.<br/>The mailboxes are created using ExchangeUtils.CreateMailbox.<br/><br/>This works perfect, both in our staging and production enviroment.<br/><br/>The problem we have is to mail-enable exisning users.<br/>In the staging we simply flow some attributes to the AD (homeMDB etc.), this works perfect.<br/>In the production enviroment this fails, we get mail-contacts instad. I can't figure out why. Could i be some configuration in Exchange? Any ideas?<br/><br/>I have read some tutorials with rather complex ways to handle exisning users (like fireing powershell scripts in MA:s), is this neccesary? It works in the staging enviroment without extra handling, but am I missing something? Perhaps there is a hidden problem there anyway?<br/><br/>Thanks,<br/>/ JonTue, 31 Mar 2009 09:21:00 Z2009-03-31T09:22:24Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#347fa80e-8b84-40fd-9d55-f8f5591c5753http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#347fa80e-8b84-40fd-9d55-f8f5591c5753Michael DAngelohttp://social.technet.microsoft.com/Profile/en-US/?user=Michael%20DAngeloProblems to mail-enable user in Exchange2007<p>I had the same problem, the only way I was able to reliably mail-enable existing Exchange 2007 users without using PowerShell scripts was to write to *every* attribute that is normally updated by doing it through PowerShell.  Otherwise, accounts would not get created correctly intermittently.  I had several different problems, all of which went away after I started writing every attribute.<br/><br/>This is the list of attributes I am writing to:<br/>msExchPoliciesExcluded<br/>msExchPoliciesIncluded<br/>proxyAddresse (e-mail addresses are handled outside of Exchange)<br/>mailNickname<br/>textEncodedORAddress<br/>msExchMailboxSecurityDescriptor<br/>homeMDB<br/>homeMTA<br/>legacyExchangeDN<br/>mDBUseDefaults<br/>msExchHomeServerName<br/>msExchMailboxGuid<br/>msExchRecipientDisplayType<br/>msExchRecipientTypeDetails<br/>msExchUserAccountControl<br/>msExchVersion</p>Tue, 31 Mar 2009 14:23:50 Z2009-03-31T14:23:50Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#52c3c3a8-37cc-42a5-99d1-133a180bd07fhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#52c3c3a8-37cc-42a5-99d1-133a180bd07fJon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007Thanks for the answer I will try writing to the attributes. I am not entierly sure what values to flow in all of them though.<br/><br/>Did you find out/calculate all the correct values or could I flow null into them just touching them?<br/><br/>Thanks<br/>/ JonWed, 01 Apr 2009 06:03:11 Z2009-04-01T06:03:11Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#61d84ca0-19d9-4cea-bc21-75b7d6b8fd47http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#61d84ca0-19d9-4cea-bc21-75b7d6b8fd47Michael DAngelohttp://social.technet.microsoft.com/Profile/en-US/?user=Michael%20DAngeloProblems to mail-enable user in Exchange2007For disabling the e-mail address policy, you write &quot;{26491cfc-9e50-4857-861b-0cb8df22b5d7}&quot; to msExchPoliciesExcluded, and null to msExchPoliciesIncluded, then populate proxyAddresses, and if you have an X.400 address, textEncodedORAddress<br/><br/>homeMDB, homeMTA,and msExchHomeServerName should be self-explanatory<br/><br/>mailNickname normally matches the person's username<br/>legacyExchangeDN is formatted as &quot;/o={ExchangeOrgName}/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn={mailNickname}&quot;<br/><br/>For msExchMailboxSecurityDescriptor:<br/> <pre lang="x-c#">string SECURITY_DESCRIPTOR_SELF = &quot;O:S-1-3-0G:S-1-3-1D:(A;CI;CCDCRC;;;PS)&quot;; if (!csentry[&quot;msExchMailboxSecurityDescriptor&quot;].IsPresent) { csentry[&quot;msExchMailboxSecurityDescriptor&quot;].BinaryValue = Utils.ConvertStringToSecurityDescriptor(SECURITY_DESCRIPTOR_SELF); }</pre> <br/>msExchMailboxGuid I import into the metaverse as a binary value, and use this code for export.  When re-enabling a mailbox that has been disconnected, you must assign the same homeMDB, homeMTA, msExchHomeServerName and msExchMailboxGuid values in order for the original disconnected mailbox to be reconnected.  See this page for a discussion of reconnecting mailboxes: <a href="http://technet.microsoft.com/en-us/library/aa996437(EXCHG.65).aspx">http://technet.microsoft.com/en-us/library/aa996437(EXCHG.65).aspx</a><br/> <pre lang="x-c#">if (!csentry[&quot;msExchMailboxGuid&quot;].IsPresent) { if (mventry[&quot;msExchMailboxGuid&quot;].IsPresent) { csentry[&quot;msExchMailboxGuid&quot;].BinaryValue = mventry[&quot;msExchMailboxGuid&quot;].BinaryValue; } else { Guid g = Guid.NewGuid(); csentry[&quot;msExchMailboxGuid&quot;].BinaryValue = g.ToByteArray(); } }</pre> <br/>For the rest, these are the values you need to set, but you should only set them if the account needs to be mail-enabled, and the attributes have not yet been populated.<br/>csentry[&quot;mDBUseDefaults&quot;].BooleanValue = true;<br/>csentry[&quot;msExchVersion&quot;].IntegerValue = 4535486012416;<br/>csentry[&quot;msExchRecipientDisplayType&quot;].IntegerValue = 1073741824;<br/>csentry[&quot;msExchRecipientTypeDetails&quot;].IntegerValue = 1;<br/>csentry[&quot;msExchUserAccountControl&quot;].IntegerValue = 0;Wed, 01 Apr 2009 14:30:39 Z2009-04-01T14:30:39Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#64f6648d-e3e3-4935-b241-e64435f2f09bhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#64f6648d-e3e3-4935-b241-e64435f2f09bJon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007Thank you for a very informative answer.<br/><br/>I'll try this.<br/><br/>If we decide to go down the powershell - route, are there any good guides for that scenario out there?Thu, 02 Apr 2009 13:02:43 Z2009-04-02T13:02:43Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#1864b1c3-b4d0-4fd3-b4b3-a600d3ea55f1http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#1864b1c3-b4d0-4fd3-b4b3-a600d3ea55f1CarolWhttp://social.technet.microsoft.com/Profile/en-US/?user=CarolWProblems to mail-enable user in Exchange2007Here's my powershell method: <a href="http://www.wapshere.com/missmiis/?p=236">http://www.wapshere.com/missmiis/?p=236</a><br/><br/>Like the look of Michael's approach though, as it saves on the extra MA.<br/><br/><br/>Carol<br/><hr class="sig">http://www.wapshere.com/missmiisThu, 02 Apr 2009 18:46:43 Z2009-04-02T18:46:43Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#209e20e0-4984-471d-8593-1a7434a58148http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#209e20e0-4984-471d-8593-1a7434a58148Neil Koorlandhttp://social.technet.microsoft.com/Profile/en-US/?user=Neil%20KoorlandProblems to mail-enable user in Exchange2007You should not have to resort to either workaround (flowing attributes or seperate MA to invoke powershell). ILM 2007 FP1 is supposed to work for what you're trying to do. And as you indicate, it is working OK for you in your test environment.<br/><br/>Based on your description I think you are hitting the problem described in <a href="http://support.microsoft.com/kb/949858">this KB 949858 article</a> (or something with the same symptom) which was fixed in <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=8B492ED2-EA92-412F-A852-3AA1C58D9499&amp;displaylang=en">Update Rollup 4 for Exchange Server 2007 Service Pack 1</a> so if you don't already have the rollup patch then you should give that a try before resorting to other workarounds.<br/><br/>BTW, this assumes you have the &quot;Enable Exchange 2007 provisioning&quot; checkbox enabled on the ILM's AD MA as well as calling ExchangeUtils.CreateMailbox in your provisioning code at the point where it needs to mailbox-enable the user.<br/><br/>Neil Fri, 03 Apr 2009 07:12:42 Z2009-04-03T07:12:42Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#5a4a973b-868b-4fd4-a59c-174c31f100aahttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#5a4a973b-868b-4fd4-a59c-174c31f100aaJon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007Ok<br/><br/>All servers have rollup 6 or 7 installed.<br/>&quot;Enable Exchange 2007 provisioning&quot; checkboxis  enabled<br/>I call ExchangeUtils.CreateMailbox during provisioning and this works well, the problem occurs when I try to mail enable the user later.<br/>I do not call ExchangeUtils.CreateMailbox for users without mailbox, to mail enable them later I just flow homeMDB, smtpAdresses etc.<br/><br/>Thanks for all the input this far, I'll keep on trying to get it working as it is supposed to do.<br/>Fri, 03 Apr 2009 07:27:59 Z2009-04-03T07:27:59Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#0db0d78a-8f4e-46b6-940c-46e067b0c15ahttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#0db0d78a-8f4e-46b6-940c-46e067b0c15aNeil Koorlandhttp://social.technet.microsoft.com/Profile/en-US/?user=Neil%20KoorlandProblems to mail-enable user in Exchange2007<p>Then I think that your problem might be due to not calling ExchangeUtils.CreateMailbox because that's the method that sets a bunch of the required attributes, although I don't know why it works in your test environment. Remember that your provisioning code gets called whenever the MV object changes, so you have an opportunity to call it after the initial provisioning of the (non-mailbox enabled) user objects i.e. when you flow the homeMDB and other CreateMailbox arguments (the &quot;Enable Provisioning Rules Extension&quot; checkbox must be set for it to fire).<br/><br/>The other thing you can do is try run the &quot;Update-Recipient&quot; cmdlet manually from the exchange powershell to see if it correctly mailbox-enables the user object. if it does then it must be something that is preventing ILM from invoking it correctly. </p> <p>Neil  </p>Fri, 03 Apr 2009 08:01:40 Z2009-04-03T08:01:40Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#44952388-903f-4b6b-88a9-4de15b8be72fhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#44952388-903f-4b6b-88a9-4de15b8be72fJon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007Aha, great stuff!<br/><br/>I set homeMDB in an export rule, it seems like you are suggesting I put the attributes and CreateMailbox in the provisioning code instead? When I try that I get an error:<br/><br/>ObjectAlreadyExistsException: An object with DN &quot;CN=a person,OU=Users,OU=Unit,DC=inttest,DC=Company,DC=tst&quot; already exists in management agent &quot;AD MA&quot;.<br/><br/>Does CreateMailbox always try to create a new connector? Trying to figure out on msdn, <a href="http://msdn.microsoft.com/en-us/library/ms696468(VS.85).aspx">http://msdn.microsoft.com/en-us/library/ms696468(VS.85).aspx</a> but can't reaaly figure it out. <br/><br/>Thanks<br/>/ JonFri, 03 Apr 2009 08:43:56 Z2009-04-03T08:43:56Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#cd61f165-37d3-402f-9168-90b7ef62ac20http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#cd61f165-37d3-402f-9168-90b7ef62ac20CarolWhttp://social.technet.microsoft.com/Profile/en-US/?user=CarolWProblems to mail-enable user in Exchange2007You can't mail-enable an existing user with the ExchangeUtils - you never have been able to, hence the methods proposed my Michael and myself. LIke you've found, CreateMailbox also attempts to create the connector.<br/><br/>Carol<br/><hr class="sig">http://www.wapshere.com/missmiisFri, 03 Apr 2009 11:12:08 Z2009-04-03T11:12:08Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#48ea40e3-7a3e-489a-b3ba-dcfd2ec1d472http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#48ea40e3-7a3e-489a-b3ba-dcfd2ec1d472Michael DAngelohttp://social.technet.microsoft.com/Profile/en-US/?user=Michael%20DAngeloProblems to mail-enable user in Exchange2007<blockquote> <p>Then I think that your problem might be due to not calling ExchangeUtils.CreateMailbox because that's the method that sets a bunch of the required attributes, although I don't know why it works in your test environment. Remember that your provisioning code gets called whenever the MV object changes, so you have an opportunity to call it after the initial provisioning of the (non-mailbox enabled) user objects i.e. when you flow the homeMDB and other CreateMailbox arguments (the &quot;Enable Provisioning Rules Extension&quot; checkbox must be set for it to fire).<br/><br/>The other thing you can do is try run the &quot;Update-Recipient&quot; cmdlet manually from the exchange powershell to see if it correctly mailbox-enables the user object. if it does then it must be something that is preventing ILM from invoking it correctly. </p> <p>Neil  </p> </blockquote> <br/>I've had accounts appear as &quot;MailUser&quot; instead of &quot;UserMailbox&quot; or as &quot;LegacyMailbox&quot;, or it appears to be a normal mailbox, but doesn't work right.  At least for me, Update-Recipient usually did not correct broken accounts.  In some cases, doing Set-Mailbox -ApplyMandatoryProperties worked.  In other cases, I could only correct the mailbox by disabling and re-creating it.  <br/><br/>Incidentally, I used Reflector to see what the CreateMailbox method actually does, and it sets these 4 attributes on the new CSEntry it creates:<br/>mailNickname<br/>homeMDB<br/>msExchMailboxSecurityDescriptor<br/>mDBUseDefaults<br/><br/>Even when I wrote all 4 attributes to mail-enable an existing user, I still had problems in some cases.  Writing to *all* the attributes that Enable-Mailbox modified was the only way I could get it to work 100% of the time.Fri, 03 Apr 2009 13:32:08 Z2009-04-03T13:32:08Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#e8d9904a-76f6-4b64-bf1d-ff927ee0005bhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#e8d9904a-76f6-4b64-bf1d-ff927ee0005bBrad Turner - ILM MVPhttp://social.technet.microsoft.com/Profile/en-US/?user=Brad%20Turner%20-%20ILM%20MVPProblems to mail-enable user in Exchange2007<blockquote>Ok<br/><br/>All servers have rollup 6 or 7 installed.<br/>&quot;Enable Exchange 2007 provisioning&quot; checkboxis  enabled<br/>I call ExchangeUtils.CreateMailbox during provisioning and this works well, the problem occurs when I try to mail enable the user later.<br/>I do not call ExchangeUtils.CreateMailbox for users without mailbox, to mail enable them later I just flow homeMDB, smtpAdresses etc.<br/><br/>Thanks for all the input this far, I'll keep on trying to get it working as it is supposed to do.<br/></blockquote> <br/>Please ensure that the ILM server doing the provisioning has the same Rollups installed - they correct errors in the PS cmdlets for UpdateRecipient if I recall correctly.<hr class="sig">Brad Turner, ILM MVP - Ensynch, Inc - www.identitychaos.comFri, 03 Apr 2009 15:19:09 Z2009-04-03T15:19:09Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#157a9542-8889-43c5-bc64-6a85ed299d8ehttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#157a9542-8889-43c5-bc64-6a85ed299d8eJon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007I checked, the ILM Server has the rollups as well.<br/><br/>I have decided to try out Michael's solution today, I implemented it in the staging-enviroment an it didn't break anything (still working as expected). I will do some testing to assure everything is ok and then I will try it out on the production server.<br/><br/>If it fails I'll resort to calling the cmdlet.<br/><br/>I'll report back how it turns out. <br/><br/>Thanks, I really appreciate the help and suggestions you guys are giving!<br/><br/>/ Jon<br/>Fri, 03 Apr 2009 16:46:59 Z2009-04-03T16:46:59Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#3b188643-5406-4a52-bef5-f6b8e50f7251http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#3b188643-5406-4a52-bef5-f6b8e50f7251Neil Koorlandhttp://social.technet.microsoft.com/Profile/en-US/?user=Neil%20KoorlandProblems to mail-enable user in Exchange2007Apologies for pointing you in the wrong direction with CreateMailbox, Jon. Carol is correct - it provisions a connector. I guess I should have tried it myself before spouting off. So you'll have to go with the workaround. <br/><br/>Fri, 03 Apr 2009 18:32:22 Z2009-04-03T18:32:22Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#eee0dafa-f6c9-4905-b4ae-5d1847ca8918http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#eee0dafa-f6c9-4905-b4ae-5d1847ca8918Jon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007Unfortunaltely it didn't work.<br/><br/>I guess I will have to try Carols powershell method.<br/><br/>One thing that differs between staging and production is that the staging enviroment only have 1 DNS server and the production enviroment have many. Could it be some kind of trouble with that?Wed, 08 Apr 2009 10:48:12 Z2009-04-08T10:48:12Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#d092d8cc-3045-4119-846d-f717ffa0061dhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#d092d8cc-3045-4119-846d-f717ffa0061dNeil Koorlandhttp://social.technet.microsoft.com/Profile/en-US/?user=Neil%20KoorlandProblems to mail-enable user in Exchange2007<p>DNS wouldn't affect it, but if you mean DCs then it would only affect it in the way the rollup fix discussed earlier is meant to fix anyway. It wouldn't have the affect of exchange not treating it as a mailbox-enabled user. <br/><br/>One thing you could do before resorting to Carol's powershell MA, is use ADSIedit or ldp.exe to compare all the attribs of the user object you exported vs. one that you mailbox-enable with the Exchange Management Console (or mail-enable cmdlet) and see if there are any differences in the attribs that look like exchange might care about. <br/><br/>Neil</p>Wed, 08 Apr 2009 19:08:55 Z2009-04-08T19:08:55Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#2634d095-b643-4332-a302-21c5de30a08ehttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#2634d095-b643-4332-a302-21c5de30a08ePer Noalthttp://social.technet.microsoft.com/Profile/en-US/?user=Per%20NoaltProblems to mail-enable user in Exchange2007<blockquote> <p>I had the same problem, the only way I was able to reliably mail-enable existing Exchange 2007 users without using PowerShell scripts was to write to *every* attribute that is normally updated by doing it through PowerShell.  Otherwise, accounts would not get created correctly intermittently.  I had several different problems, all of which went away after I started writing every attribute.<br/><br/>This is the list of attributes I am writing to:<br/>msExchPoliciesExcluded<br/>msExchPoliciesIncluded<br/>proxyAddresse (e-mail addresses are handled outside of Exchange)<br/>mailNickname<br/>textEncodedORAddress<br/>msExchMailboxSecurityDescriptor<br/>homeMDB<br/>homeMTA<br/>legacyExchangeDN<br/>mDBUseDefaults<br/>msExchHomeServerName<br/>msExchMailboxGuid<br/>msExchRecipientDisplayType<br/>msExchRecipientTypeDetails<br/>msExchUserAccountControl<br/>msExchVersion</p> </blockquote> <br/>Do you know if this is a supported scenario (as in supported by the Microsoft Exchange Team)?Wed, 08 Apr 2009 19:14:31 Z2009-04-08T19:14:31Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#4211cc66-1759-4121-8a6b-b4a0566b1317http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#4211cc66-1759-4121-8a6b-b4a0566b1317Neil Koorlandhttp://social.technet.microsoft.com/Profile/en-US/?user=Neil%20KoorlandProblems to mail-enable user in Exchange2007This definitely not a supported method. Powershell is the only supported method for mail-enable and mailbox-enabling. Wed, 08 Apr 2009 21:54:57 Z2009-04-08T21:54:57Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#87936b8a-721f-43df-86bb-8e2a53454951http://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#87936b8a-721f-43df-86bb-8e2a53454951Jon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007<blockquote> <p>DNS wouldn't affect it, but if you mean DCs then it would only affect it in the way the rollup fix discussed earlier is meant to fix anyway. It wouldn't have the affect of exchange not treating it as a mailbox-enabled user. <br/> <br/> One thing you could do before resorting to Carol's powershell MA, is use ADSIedit or ldp.exe to compare all the attribs of the user object you exported vs. one that you mailbox-enable with the Exchange Management Console (or mail-enable cmdlet) and see if there are any differences in the attribs that look like exchange might care about. <br/> <br/> Neil</p> </blockquote> Yes I ment DCs of course, thanks for the correction.<br/>Thu, 09 Apr 2009 08:16:28 Z2009-04-09T08:16:45Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#3ac418e5-c2ae-4eaa-aa2d-b8eb8e9ce6echttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#3ac418e5-c2ae-4eaa-aa2d-b8eb8e9ce6ecGlenn Zuckerman [MSFT]http://social.technet.microsoft.com/Profile/en-US/?user=Glenn%20Zuckerman%20%5bMSFT%5dProblems to mail-enable user in Exchange2007<p>Jon<br/><br/>I believe the problem you are facing is a known bug with update-recipient. There are multiple issues with this PS cmdlet. One of them was fixed per the KB mentioned about in RU4 for Exchange 2007 SP1. This has to do with exporting new mail-enabled objects. For existing users that being updated by ILM to be mail-enabled, there is a similar issue with update-recipient that is not fixed in RU4. It will be fixed in RU9 from my understanding, but there is an interim fix available now from MS PSS. You will have to use RU6, if you have RU7, it needs to be uninstalled and RU6 installed in order to use this. This fix addresses the problem with update-recipient not properly updating existing objects when multiple DCs are available in target Exchange 2007 SP1 environment.</p> <p>Glenn Zuckerman, MSFT</p>Mon, 13 Apr 2009 16:13:27 Z2009-04-13T16:13:27Zhttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#7c6847ef-83fa-41a5-baf3-34266040c04ehttp://social.technet.microsoft.com/Forums/en-US/identitylifecyclemanager/thread/4b230cd3-1a74-49c8-ac68-92fe1446e890#7c6847ef-83fa-41a5-baf3-34266040c04eJon76http://social.technet.microsoft.com/Profile/en-US/?user=Jon76Problems to mail-enable user in Exchange2007<blockquote> <p>Jon<br/><br/>I believe the problem you are facing is a known bug with update-recipient. There are multiple issues with this PS cmdlet. One of them was fixed per the KB mentioned about in RU4 for Exchange 2007 SP1. This has to do with exporting new mail-enabled objects. For existing users that being updated by ILM to be mail-enabled, there is a similar issue with update-recipient that is not fixed in RU4. It will be fixed in RU9 from my understanding, but there is an interim fix available now from MS PSS. You will have to use RU6, if you have RU7, it needs to be uninstalled and RU6 installed in order to use this. This fix addresses the problem with update-recipient not properly updating existing objects when multiple DCs are available in target Exchange 2007 SP1 environment.</p> <p>Glenn Zuckerman, MSFT</p> </blockquote> <br/>Thank you , this was valueble information.<br/><br/>/ JonTue, 14 Apr 2009 05:27:18 Z2009-04-14T05:27:18Z