Custom address lists
We will be synchronizing A.D. with an external company using MIIS. The plan is to import the external users as Contacts into one container in our local A.D. structure. There could be several thousand new contacts created.Knowing that these contacts will now appear in the Exchange GAL, we want to create seperate Address Lists (NOT seperate GALs) for the current Exchange users/contacts and the imported contacts.I thought the easiest way would be to have one of the Exchange Custom Attributes (CA) set for the imported users (but not for current users) and base the 2 new address lists on whether this attribute is set or not. So we would set List1 to include all users/contacts which do NOT have CA1 set. List2 includes all contacts which have CA1 set.The problem seems to be because the condition fields for setting the properties of the address list is using the "AND" option for adding different categories (Users, Contacts, Groups) rather than "OR", I can't quite get this working. I can get all Users to be listed but seems to miss out groups. Or it includes everything, including the contacts I do NOT want to be included. In summary what we want is:All existing Exchange objects (including Users, Contacts, Groups) should appear in one address list - e.g. List1 - this should effectively look like the current GALAll newly imported users should appear in a second address list - e.g. List2The combination of the above should show in the new GALThanks in advance for any input.
December 29th, 2009 12:31pm

Hi,This script may be useful to you to import new contacts as CSV file into GAL of exchange 2007$OU = "Domain Contacts"Import-CSV -Path "Test.csv" | %{ $DisplayName = "$($_.'Last Name'), $($_.'First Name')" New-MailContact $DisplayName -DisplayName $DisplayName ` -FirstName $_."First Name" -LastName $_."Last Name" ` -organizationalunit $OU -Alias "$($_.'First Name')$($_.'Last Name')" ` -ExternalEmailAddress $_."E-Mail Address"regards from www.windowsadmin.infoManuPhilip
Free Windows Admin Tool Kit Click here and download it now
December 29th, 2009 2:01pm

HiThanks for your reply.Sorry - I should have said - it's Exchange 2003.As I said, we will be using MIIS to import the new contacts. We need to create new, seperate address lists (but NOT seperate GALs) - one for the current users/groups/contacts and one for the newly imported ones. The GAL will combine both of these as normal.Thanks
December 29th, 2009 2:23pm

Hi Jarweb, You can create a custom filter by using LDAP query when creating customize Address List: 1. When creating Address Lists, please select Filter Rules 2. Please select Custom Search and select Advanced tab 3. After that, please type the LDAP filter For more information regarding LDAP query, please refer to following article: LDAP Query Basics http://technet.microsoft.com/en-us/library/aa996205(EXCHG.65).aspx ~~~~~~~~~~~~~~~~ Mike Shen TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com ~~~~~~~~~~~~~~~~
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2009 6:03am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics