Solved

Getting list of AlternateMailboxes in Exchange by using Powershell

Posted on 2014-02-07
1
1,374 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

756 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