Solved

Create Exchange 2010 address list

Posted on 2011-09-29
4
258 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 19

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 21

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 21

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
how to add IIS SMTP to handle application/Scanner relays into office 365.

821 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