Solved

Create Exchange 2010 address list

Posted on 2011-09-29
4
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
In this video we show how to create a Shared 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 >> Sha…
how to add IIS SMTP to handle application/Scanner relays into office 365.

724 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