Solved

Getting list of AlternateMailboxes in Exchange by using Powershell

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

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create an email address policy 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 Mail Flow…
This video discusses moving either the default database or any database to a new volume.

914 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

19 Experts available now in Live!

Get 1:1 Help Now