Problem in Creating mailbox in Exchange Server 2003
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->
Hi Guys, Greetings to all... I'm facing a problem in creating the mail box in Exchange Server 2003 via script. Let me Explain the Requirements : I'm automating the ADMIN process via vb scripting. we are having two different server for "Active Directory (LDAP)" and "Exchange Server 2003". "Test Linux Server". Now I need to create a email box for a particular user those who are having account in AD. I found a utility for MailBox Creation. The name of the Utility is : ExchMbx.exe If we provide the DNstring to this utility it'll create the mail box for that user. Example :
dsquery user -samid mkautomate | ExchMbx.exe -cr "CN=Mailbox Store (BLREXCH01),CN=First Storage Group,CN=InformationStore,CN=BLREXCH01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=VITAGETECH,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=vitagetech,DC=com"
otherwise we can given -b and DNString
I placed this ExchMbx.exe in C:\Tools\ dir.
from the command prompt I called this exe with the above option, I could create the email box for the given user.
So for I does all these executions in Exchange server directly (mstsc RDP Connection as domain + exchange server + enterprice admin).
------------------------
Remote Execution....
There is a utility available for executing a scripting windows server through linux.
winexe
code source & examples are available here.
http://eol.ovh.org/winexe/
I used this utility for AD User Creation and other AD related tasks. It worked very well and proven also.
now I'm calling the ipconfig via winexe.
winexe --system -U <domainname>/<adminuserid>%<adminpassword> //<ExchangeServerIP> "ipconfig"
If the above one is success and if you get the IPConfig, Call this script,
winexe --system -U <domainname>/<adminuserid>%<adminpassword> //<ExchangeServerIP> 'cscript C:\Tools\ExchMbx.exe -b "CN=mkautomate,OU=RBA,DC=vitagetech,DC=com" -cr "CN=Mailbox Store (BLREXCH01),CN=First Storage Group,CN=InformationStore,CN=BLREXCH01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=VITAGETECH,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=vitagetech,DC=com"'
I pass the same domain UserId and Password to winexe.
It simply saying "Access Denied".
I checked the event/error/application logs in the Exchange server.
I checked the permissions are same through the RDP as well as the winexe.
ExchMbx V01.04.00cpp Joe Richards (joe@joeware.net) April 2006
ERROR: (CreateMailBox) (0x80070005) Access is denied.
I'm breaking my head for past 2 weeks.
What could be the problem ?? Can any one help me on this ??
Regards,
Sri
November 4th, 2009 7:33am
I'm not familiar with either of these utilities, but - you need to figure out exactly where this "Access denied" message is coming from. I doubt you'd see much in the Exchange logs as you're effectively running this CreateMailbox tool through a share - is that right? What sort of logging do you get from winexec?One thing you could try is running a simple script that writes to a text file from the same location - just to see if the problem is with access to the folder itself.http://www.wapshere.com/missmiis
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2009 9:20am
I think you should also try posting this question to forums of this utility. Meanwhile, can you just make sure the user account being used to authenticate is a member of Domain Admins at least, if yes then you can check if this account isa member of Exchange Full Administrators, and make sure that the account can logon to the server remotely. You can check this group policy editor.Milind Naphade | MCTS:M (Exchange 2007 and 2010) | http://www.msexchangegeek.com
November 4th, 2009 9:39pm
Hi,If you use 3rd utility to create mailbox for the user,then I think you'd better to conslut the support from that utility.Besides,I recommend you to check the thread from MSDN which may give you more points on how to create mailbox on the exsiting user.How to Create Mailbox in Exchange Server 2003 using Visual Studio .Net 2005http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/c240a775-5c3e-4dbd-8782-514280d08b46If you have more problems about the development,then you can post the issue in MSDN forum or exchange development queue.http://social.msdn.microsoft.com/Forums/en-US/vblanguage/threadsRegards,Xiu
Free Windows Admin Tool Kit Click here and download it now
November 5th, 2009 9:08am