Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem reading and modifying Exchange 2003 mailbox ACL using VBScript

Posted on 2008-10-02
3
Medium Priority
?
1,015 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 2000 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

Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
To show how to generate a certificate request 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 >> Certificates…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

824 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