简体   繁体   English

在Exchange 2010上创建邮箱

[英]Creating mailboxes on Exchange 2010

I have a project on VS 2005 which was running fine with exchange 2003, now the customer migrated to 2010 and my app. 我有一个关于VS 2005的项目,该项目在Exchange 2003上运行良好,现在客户迁移到了2010和我的应用程序。 is failing when tries to create mailbox. 尝试创建邮箱时失败。

My app. 我的应用 is console based and its running on windows 2003 and 2.0 .net framework. 是基于控制台的,并且在Windows 2003和2.0 .net框架上运行。 Exchange 2010 is running on a W2K8 and 3.5 framework. Exchange 2010在W2K8和3.5框架上运行。

I guess a good option would be to develop a webservice (with VS 2010 for example) but not sure if EWS is able create mailboxes. 我想一个不错的选择是开发一个Web服务(例如VS 2010),但不确定EWS是否能够创建邮箱。

I'd like to hear some advices on this matter. 我想听听有关此事的一些建议。

Thanks in advance, m0dest0. 预先感谢,m0dest0。

I don't think you can use EWS to create mailboxes. 我认为您无法使用EWS创建邮箱。 For that you should use powershell. 为此,您应该使用powershell。 You can run powershell scripts from your C# app, see this: http://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C 您可以从C#应用程序运行powershell脚本,请参见: http : //www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C

So in your case I would Exchange Management Shell on the application server and write an application that creates mailboxes using powershell/EMS. 因此,在您的情况下,我将在应用程序服务器上交换命令行管理程序,并编写一个使用powershell / EMS创建邮箱的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM