Troubleshooter: Using a Script to List Mailbox Delegates

Use this simple script to find out who has delegate access in your organization.

Paul Robichaux

January 3, 2005

1 Min Read
ITPro Today logo


My company's chief information officer (CIO) wants a list of all the people who have delegate access to mailboxes in our Exchange Server organization. Can I use a script to obtain this information?

An Active Directory (AD) user object's publicDelegates attribute lists the delegates for the user's mailbox. By querying this attribute on each user object in an organizational unit (OU) or a domain, you can see which users have defined delegates. The simple script that Listing 1 shows should get you started. When you run this script on a domain controller (DC), it returns all users in the specified container, then iterates over each user, printing out the delegate list for every mailbox that has defined delegates. You can modify the strTargetContainer variable to point to any domain or OU in your forest.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like