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,
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
Answers
Hello Sri,
This forum provides support for documentation and interoperability questions on open specifications.
The Open Protocol Specifications can be found at: http://msdn2.microsoft.com/en-us/library/cc203350.aspx.
Your post does not appear to be related to the Open Protocols Specifications documentation set.
You may want to try one of our other forums to get you started finding what you need. I think the below forum would be a good place to start:http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/threads
Thanks
John Dunning
Senior Escalation Engineer Microsoft Corporation
US-CSS DSC PROTOCOL TEAM- Marked As Answer byAlex MorrillMSFT, ModeratorWednesday, November 04, 2009 12:31 AM
All Replies
Hello Sri,
This forum provides support for documentation and interoperability questions on open specifications.
The Open Protocol Specifications can be found at: http://msdn2.microsoft.com/en-us/library/cc203350.aspx.
Your post does not appear to be related to the Open Protocols Specifications documentation set.
You may want to try one of our other forums to get you started finding what you need. I think the below forum would be a good place to start:http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/threads
Thanks
John Dunning
Senior Escalation Engineer Microsoft Corporation
US-CSS DSC PROTOCOL TEAM- Marked As Answer byAlex MorrillMSFT, ModeratorWednesday, November 04, 2009 12:31 AM


