如何使用C#在Exchange 2010中创建新邮箱 [英] How to create new mailbox in exchange 2010 using C#

查看:290
本文介绍了如何使用C#在Exchange 2010中创建新邮箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望创建一个服务,它将从.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非常适合交换开发。


http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windows .powershell& cat = en_us_4200CF39-8075-8AEF-F08A-B4D1E076AE83& lang = en


对于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.

http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windows.powershell&cat=en_us_4200CF39-8075-8AEF-F08A-B4D1E076AE83&lang=en

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆