Problem reading and modifying Exchange 2003 mailbox ACL using VBScript

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?
LVL 27
PberSolutions ArchitectAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
speshalystConnect With a Mentor Commented:
Please read thru this .. might throw some light..
http://www.mail-archive.com/activedir@mail.activedir.org/msg14226.html
0
 
PberSolutions ArchitectAuthor Commented:
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
 
PberSolutions ArchitectAuthor Commented:
Thanks again
0
All Courses

From novice to tech pro — start learning today.