Solved

Create Exchange 2010 address list

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

744 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

11 Experts available now in Live!

Get 1:1 Help Now