Solved

Getting list of AlternateMailboxes in Exchange by using Powershell

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

840 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