• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 897
  • Last Modified:

Exchange 2010 new-globaladdresslist based on emailaddresses?

I'm wanting to create a new global address list with a recipient filter of '*@domain.com'

I've googled but can't find the correct syntax for 2010 SP2, any of you smart folks know how to accomplish this?

I'm not picky about whether or not their mailcontacts, mailboxusers or mailgroups.    In fact it's all of those three, my only stipulation is that this GAL contain only emailaddresses for a specific domain.

Thanks
0
Ben Hart
Asked:
Ben Hart
  • 15
  • 13
2 Solutions
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Put this "*@domain.com" into a custom attribute of the user you want to filter and then create a GAL with that filter option.

- Rancy
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
0
 
Ben HartAuthor Commented:
Surely using Custom Attributes isn't the only way.  I'd have to create a script to accomplish this to over 400 users :(
0
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Are these 400 users having something common ? I mean some Department, OU or Database something ? If so we can do this by Exchange shell.

- Rancy
0
 
Ben HartAuthor Commented:
The issue is, we've integrated addresslists with a parent company.  Which increased our @400 users to over 2000.  I recently updated both Exchange servers to SP2 so now I'm trying to create a new GAL to list only our companies users then set that new GAL up as the default GAL giving users the options to choose the "default" GAL to see both us and them.

The only parameter I can safely say that is 100% in common with all the users and groups is that they are on my two servers, and they all have singular email addresses using our domain.  For what its worth what I tried first is here: creating GAL based on email address
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
This will happen if you say only 400 users use this Domain in their email address ... if everyone uses you have to play with something else.

- Rancy
0
 
Ben HartAuthor Commented:
I'm sorry I don't follow, what will happen?
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
As you said all users have the email address "@domain.com" ? Am i correct

- Rancy
0
 
Ben HartAuthor Commented:
Oh yes, my bad.  All of the @400 users do, the ones I'm wanting a new GAL for.

if it helps/changes things.. I was able to run this command:
new-globaladdresslist -name "name" -recipientfilter{ ((servername -eq 'hosntame1') -or (servername -eq 'hostname2'))}

Thinking that maybe if I generate an address list based off the contacts/mailboxes/groups on both of my servers that it'd only pull data for the domains that I'm authoritative for.  I can't tell yet what the results were, still waiting for Outlook to let me see the new gal name under Address Books.
0
 
Ben HartAuthor Commented:
I created a new-addresslist using the same recipientfilter and under Preview it shows exactly what I want.  Only users/groups with mail enabled objects created on my servers.  What are your thoughts on this?
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
If your getting the filter and only the people you want in the filter thats it :)

Let me know if you have anything for me :)

- Rancy
0
 
Ben HartAuthor Commented:
Since it takes Exchange a while to process I'll know in the AM :)
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
GAL doesnt takes time ... check with OWA :)
0
 
Ben HartAuthor Commented:
Ok so today I have the test address list showing up in Outlook, however empty of contents.  This is the list that the Preview showed full of the correct listings.  The new GAL i created with new-globaladdresslist is still not appearing in Outlook.
0
 
Ben HartAuthor Commented:
So I guess i should alter my question to include, How do I get a new GAL to appear in Outlook?
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Only One GAL can work for a set of users as per the "Show in Address Book" .... so what your thinking of is called GAL Segregation :)

- Rancy
0
 
Ben HartAuthor Commented:
Exactly.. which is what I thought I was doing but yeah i see where my thinking went wrong :)

So I'd need and Address Book Policy to show the new GAL to a subset of my users then correct?
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
So I'd need and Address Book Policy to show the new GAL to a subset of my users then correct? - Yes

- Rancy
0
 
Ben HartAuthor Commented:
OK I created an ABP specifying the new GAL, new OAB and existing Rooms list.  Assigned the new ABP to myself and one other IT user, restarted Outlook and still have the 'Default Global Address list' in my Address Book.  Is there a lead time on Exchange for this change to propagate?
0
 
Ben HartAuthor Commented:
Ok wait, the change was immediate in OWA, I saw the new GAL's name.  In outlook I created a secondary, new profile which noted the change immediately also, however the new GAL's name was'nt shown.  Only 'default global address list' but it contained none of the entries from the previous global AL.
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Ohk .... so the only issue is that you see the Default GAL in both OWA and Outlook ??

- Rancy
0
 
Ben HartAuthor Commented:
Well the name of the new GAL, I assumed, would display in outlook versus just 'Default Global Address List'.
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
In Outlook i guess it doesnt ... so you have to simply play with permissions.

- Rancy
0
 
Ben HartAuthor Commented:
permission on the GAL itself?  I didnt see any tabs of functions like that, unless I missed them?
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
You dont see this normally have to play with ADSIEDIT .... and believe me its risky in itself

- Rancy
0
 
Ben HartAuthor Commented:
Ok yeah.. I know ADSIEDIT, I don't quite fear it but I don't like it lol.  Ok well I'll leave what Ive got so far alone then.  Thanks for the help Rancy.
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Your always welcome !!
0
 
Ben HartAuthor Commented:
I was able to work out the majority of my problem alone but conversing with Rancy did in fact help me work it out.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 15
  • 13
Tackle projects and never again get stuck behind a technical roadblock.
Join Now