WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: charlatat on September 10, 2013, 01:28:52 PM

Title: Exchange group/mailbox properties
Post by: charlatat on September 10, 2013, 01:28:52 PM
Wondering how best to query for Exchange permissions, and "Send on Behalf of" attributes.  ADSI doesn't seem to come up with anything. Suggestions?
Title: Re: Exchange group/mailbox properties
Post by: Deana on September 10, 2013, 01:41:46 PM
The ADSI attribute seems to be called publicDelegates. Have you tried querying that?

Reference: 
http://msdn.microsoft.com/en-us/library/exchange/ms982458(v=exchg.65).aspx
http://www.petri.co.il/finding_delegates_in_active_directory.htm
http://blogs.technet.com/b/exchange/archive/2006/11/03/3396144.aspx
Title: Re: Exchange group/mailbox properties
Post by: charlatat on September 10, 2013, 07:42:12 PM
Well, halfway there. Thanks for the publicDelegates tip, that worked for "Send on Behalf of"

Now, looking how to query the Exchange mailbox rights list....
Title: Re: Exchange group/mailbox properties
Post by: Deana on September 11, 2013, 12:45:51 PM
Quote from: charlatat on September 10, 2013, 07:42:12 PM
Well, halfway there. Thanks for the publicDelegates tip, that worked for "Send on Behalf of"

Now, looking how to query the Exchange mailbox rights list....

Take a look at dsGetSecProp in the ADSI Extender.

Maybe this will help get you started:
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WIL~Extenders/ADSI+Create~a~Mailbox~and~NT-Security-Descriptor~property.txt
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/ADO~DAO/ADSI~LDAP~CDO+Create~Mailbox~-~Exchange~2000~-~CDO~-~ADSI.txt