Solved

Getting list of AlternateMailboxes in Exchange by using Powershell

Posted on 2014-02-07
1
1,394 Views
Last Modified: 2014-02-07
Hi,

I'm trying to write a powershell script to list (and remove) the AlternateMailboxes from an Exchange account.  I found a few examples to get this list by querying all users in Exchange and matching those user's mailboxpermissions with the account I want to check, but with an Exchange Organization with more than 50.000 mailboxes, it takes forever to get this list of permissions.

I know Outlook 2010 can get this list in just a second, by querying the Autodiscover webservice, which returns an xml with all the AlternateMailboxes listed for a user.  I wonder where this autodiscover service gets this information.  I searched the AD and Exchange properties of a user/mailbox, but I cannot find a property containing this list of AlternateMailboxes.  Where can I find this list (without using special functions to query the Autodiscover webservice)?

Kind regards,
Bertin
0
Comment
Question by:SysUA
[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
1 Comment
 
LVL 3

Accepted Solution

by:
chriskelk earned 500 total points
ID: 39841361
You're looking for the msExchDelegateListBL property, which lists the mailboxes a user has AlternateMailbox rights to (the msExchDelegateListLink goes the other way and lists the mailboxes that have rights to the mailbox).  I use the Quest ActiveShell tools and use

(get-qaduser <user> -includeallproperties).msExchDelegateListBL

for all users, you'd want to use

get-qaduser -sizelimit 0 -includeallproperties | select name, @{n='AlternateMailboxes';e={$_.msExchDelegateListBL}} | export-csv <filename>

http://www.itworkedinthelab.com/2012/04/exchange-2010-mailbox-auto-mapping-confusion/ has a good description.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
A hard and fast method for reducing Active Directory Administrators members.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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