Solved

Problem reading and modifying Exchange 2003 mailbox ACL using VBScript

Posted on 2008-10-02
3
1,001 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
In this video we show how to create a mailbox database 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 Servers >> Data…
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…
Suggested Courses

624 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