How to programmaticly manage public folders on Exchange 2000
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
How to programmaticly manage public folders on Exchange 2000

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
tt
Guest





Posted: Fri Sep 09, 2005 4:59 pm    Post subject: How to programmaticly manage public folders on Exchange 2000 Reply with quote

I would like to create a c# service that will create public folders, assign
client permissions and set inheritence.
I don't like to use outlook. I know that I can use MAPI, ADSI, CDO but I
don't know what will be the best for me.


My questions?
What technologies I need to use?
Where must be localized my component (exchange server or anywhere)?


Thanks for help!
Slawek

Back to top
Glen Scales [MVP]
Guest





Posted: Mon Sep 12, 2005 12:58 am    Post subject: Re: How to programmaticly manage public folders on Exchange Reply with quote

Depending on which API you decided to go with your code can run remotely or
may need to run it locally on the Exchange server

Locally you can use CDOEX/ADO/Exoledb to create public folders and you can
set permissions via the
http://schemas.microsoft.com/exchange/security/descriptor property. You
might want to look at using the Application security module from the
Exchange SDK which makes this process a little easier.

If you want to run you code remotely you can look at use CDO 1.2 and ACL.dll
to do this have a look at
http://blogs.officezealot.com/legault/archive/2004/03/16/216.aspx . The main
problem here is that MAPI is not really supported in C# although it will
usually work okay. The last option in you want to run remotely is to use
WebDAV if you look in the Exchange SDK there are samples of creating public
folders if you want to set permissions via WebDAV this can be done via the
http://schemas.microsoft.com/exchange/security/descriptor property. Have a
look at the pfdavadmin utility from Microsoft which uses WebDAV to do these
type of thing including things like setting replicas etc.

You won't really need to use ADSI for anything except if you want to mail
enable the folder your creating the only supported way to mail-enable an
object programmatically is to use CDOEXM see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_cdo_imailrecipient_mailenable.asp.
For this you need to have the Exchange Admin tools installed on the machine
you want to run the code on.

Cheers
Glen

"tt" <praca@lumena.com> wrote in message
news:%23Orxy8TtFHA.464@TK2MSFTNGP15.phx.gbl...
Quote:
I would like to create a c# service that will create public folders, assign
client permissions and set inheritence.
I don't like to use outlook. I know that I can use MAPI, ADSI, CDO but I
don't know what will be the best for me.


My questions?
What technologies I need to use?
Where must be localized my component (exchange server or anywhere)?


Thanks for help!
Slawek
Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB