Solved

Getting list of AlternateMailboxes in Exchange by using Powershell

Posted on 2014-02-07
1
1,282 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
Comment Utility
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

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

772 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

13 Experts available now in Live!

Get 1:1 Help Now