Last post Sep 02, 2008 12:57 AM by ssg31415926
Aug 29, 2008 01:32 AM|Anitha Karthik|LINK
I would like to create a mail box for a user in Active Directory using .net.Is it possible? If yes how?
Thanks in Advance
Aug 29, 2008 01:30 PM|ssg31415926|LINK
Assuming you mean an Exchange mailbox, then try this: http://support.microsoft.com/kb/313114.
Aug 31, 2008 09:44 PM|Anitha Karthik|LINK
Hi Thank You. Guess it will work for me.
I tried creating an user account in AD via .NET
But the account is disabled by default,
How to enable it?
I came across some code snippets like
int val = (int) usr.Properties["userAccountControl"].Value;
usr.Properties["userAccountControl"].Value = val &
I am just confused with this part
usr.Properties["userAccountControl"].Value = val & ~ADS_UF_ACCOUNTDISABLE
Can u please provide me some details on the underlined part
Sep 01, 2008 05:39 AM|ssg31415926|LINK
userAccountControl is a bit flag (aka bit field) - Try here: http://z80-heaven.wikidot.com/flags-and-bit-level-instructions (I know it's talking about Z80 processors rather than .NET code but that's the level that bit-flags work.
You can find the specifics of each bit at the bottom of this page: http://msdn.microsoft.com/en-us/library/ms680832(VS.85).aspx
Once you've read those, that line should make more sense.
Sep 01, 2008 10:24 PM|Anitha Karthik|LINK
Thank You.It worked
Regarding the mail box creation i cannot find CDOEXM.dll.Can u please help me. I am using Windows 2003 server adn i donno whether it has Microsoft Exchange server in it
Sep 02, 2008 12:57 AM|ssg31415926|LINK
I know nothing about Exchange but according to this article: http://kbalertz.com/297390/Comparing-Access-CDOEXM-Methods.aspx CDOEXM.dll is installed when you install the Exchange Management Tools. And this article http://www.petri.co.il/administer_exchange_2003_from_windows_xp_2000_2003.htm
shows you can install the tool separately from the rest of Exchange.