Solved

Problem reading and modifying Exchange 2003 mailbox ACL using VBScript

Posted on 2008-10-02
3
975 Views
Last Modified: 2010-04-21
I'm trying to read and modify the ACL of a mailbox in Exchange 2003 using a VBScript.  I can read and modify the user object ACL no problem, I just can't access the mailbox ACL.  I have ESM installed on the computer I'm running the script on as well.
I've tried:
        Set objsd = objUser.Get("msExchMailboxSecurityDescriptor")
...but I get "The directory property cannot be found in the cache."

Any ideas to access the mailbox ACL in VBScript?
0
Comment
Question by:Pber
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
speshalyst earned 500 total points
ID: 22625795
Please read thru this .. might throw some light..
http://www.mail-archive.com/activedir@mail.activedir.org/msg14226.html
0
 
LVL 26

Author Comment

by:Pber
ID: 22626186
You know sometimes I hate VBS.  That was actually the first method I tried. (the example at here: http://support.microsoft.com/default.aspx/kb/310866)
Normally I don't use on errror resume next If I don't require it, but the first object was not a mail enabled object and would bomb.  I've changed my code accordingly and it is now working.  
Thanks for putting me back on track.
 
 
0
 
LVL 26

Author Closing Comment

by:Pber
ID: 31502432
Thanks again
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

Utilizing an array to gracefully append to a list of EmailAddresses
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

770 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