如何使用C#在Exchange 2010中创建新邮箱 [英] How to create new mailbox in exchange 2010 using C#
问题描述
我希望创建一个服务,它将从.net服务在exchnage 2010中创建新邮箱。
问候
您好,
您必须使用"New-Mailbox"用于创建邮箱的C#代码中的powershell命令。您必须在要开发代码的系统上安装Exchange管理工具。
首先转到Exchange管理控制台创建邮箱,然后查看必要的参数。创建一个邮箱,然后使用"New-Mailbox"命令用于在代码中使用这些参数创建邮箱。
这是一个使用PowerShell了解Exchange开发的链接API和C#.net 2.0。
http://knicksmith.blogspot.com/2007/03/managing-exchange-2007-recipients-with.html
这是指向PowerShell论坛的链接。事实上,powerShell API非常适合交换开发。
对于Exchange 2010,您必须使用
Microsoft.Exchange.Management.PowerShell.E2010
而不是powershell snapin
Microsoft.Exchange.Management.PowerShell.Admin
由knick smith在上面的链接中使用。
问候,
I wish to create a service which will create new mailbox in exchnage 2010 from .net service.
Regards
Hi,
You have to use "New-Mailbox" powershell command in your C# code to create the mailbox. You will have to install Exchange-Management Tools on the system where u want to develop your code.
First go to Exchange Management Console to create a mailbox and see what parameters are necessary to create a mailbox and then use "New-Mailbox" command to create the mailbox using those parameters in your code.
This a link to understand the Exchange development using PowerShell APIs and C#.net 2.0.
http://knicksmith.blogspot.com/2007/03/managing-exchange-2007-recipients-with.html
This a link to PowerShell forum. Indeed powerShell API is wonderfull for exchange development.
For Exchange 2010 you will have to use
Microsoft.Exchange.Management.PowerShell.E2010
instead of powershell snapin
Microsoft.Exchange.Management.PowerShell.Admin
as used by knick smith in above link.
Regards ,
这篇关于如何使用C#在Exchange 2010中创建新邮箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!