Solved

Create Exchange 2010 address list

Posted on 2011-09-29
4
238 Views
Last Modified: 2012-05-12
Hi all I need to divide the GAL in smaller address list based on mail domain.
I would like to get a list containing the addresses @companyA.com

  List B containing the company addresses  @companyB.com etc.
Thank you
0
Comment
Question by:pozlu0
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Raheman M. Abdul earned 250 total points
ID: 36813747
Try
Simple: Get-Mailbox * | where { $_.PrimarySMTPAddress.Domain -eq 'yourdomain.com' }



Get-Mailbox * -Organizationalunit 'yourdomain.com/Office/London/Mailgroups' | where { $_.PrimarySMTPAddress.Domain -eq 'yourdomain.com' }

or

Get-DistributionList *  -Organizationalunit 'yourdomain.com/Office/London/Mailgroups' | where { $_.PrimarySMTPAddress.Domain -eq 'yourdomain.com' }


0
 
LVL 19

Expert Comment

by:R--R
ID: 36813750
0
 
LVL 20

Expert Comment

by:Hendrik Wiese
ID: 36916453
CREATE MULTIPLE ADDRESS LISTS BASED ON COMPANY ATTRIBUTE

1. On each user, simply change the Company in the Organization tab to Company1 for the users in Company1 and do the same for Company 2 and 3.
2. Now run the following in EMS (This will create ‘Company 1' GAL which includes all type of recipients with a Company Attribute of Company1.):

As per my Article here
0
 
LVL 20

Assisted Solution

by:Hendrik Wiese
Hendrik Wiese earned 250 total points
ID: 36916469
Sorry forgot the script:

New-GlobalAddressList -Name "Company1" -ConditionalCompany "Company1" -IncludedRecipients "AllRecipients"

Open in new window

0

Featured Post

Swamped with email signature updates?

Have you been given a load of changes to make to your users’ email signatures? Having to manually implement multiple signatures for every department? Let Exclaimer save you from being swamped with email signature updates!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
how to add IIS SMTP to handle application/Scanner relays into office 365.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now