M
Morten
Hi!
I'm trying to manage public folders using C#. I have found some code that
allows me to mail enable a folder:
foreach( System.Management.ManagementObject instmailbox in queryCollection )
{
instmailbox["IsMailEnabled"] = true;
instmailbox.Put();
}
This works fine. However I can't figure out how to actually specify the mail
address of the public folder. Things would of course be easy if I was able
to retrieve the distinguished name of the folder in AD but the problem is
that if 2 folders have the same name then a large random number is added to
the distinguished name of the folder - so I'm unable to guess what the
distinguishedName of the folder is. Can I somehow look up the Exchange
object in AD?
I hope someone can help because this is driving me crazy...
Morten
I'm trying to manage public folders using C#. I have found some code that
allows me to mail enable a folder:
foreach( System.Management.ManagementObject instmailbox in queryCollection )
{
instmailbox["IsMailEnabled"] = true;
instmailbox.Put();
}
This works fine. However I can't figure out how to actually specify the mail
address of the public folder. Things would of course be easy if I was able
to retrieve the distinguished name of the folder in AD but the problem is
that if 2 folders have the same name then a large random number is added to
the distinguished name of the folder - so I'm unable to guess what the
distinguishedName of the folder is. Can I somehow look up the Exchange
object in AD?
I hope someone can help because this is driving me crazy...
Morten