0

I want to create new mail account programmatically using Exchange web services. In 2010 it's not supported. We are going to work on 2013 Exchange.

Reference:

Programmatically add/edit exchange2010 account

Community
  • 1
  • 1
user986508
  • 189
  • 2
  • 5
  • 14

1 Answers1

0

EWS doesn't have the ability to create mailboxes. In order to create mailboxes, you need to use the Exchange Management Shell's New-Mailbox cmdlet.

EDIT

You can invoke cmdlets from C#. See this MSDN link.

Jason Johnston
  • 17,194
  • 2
  • 20
  • 34
  • but is it possible to call cmdlet from c#? i want to create a portal from where clients can create new mailboxes themselves? – user986508 Aug 20 '14 at 09:31
  • 1
    There has to be a way to do this without invoking PowerShell commands. That's ridiculous. – Drew Chapin Nov 05 '14 at 14:44
  • @Jason Johnston: Agree with Drew Chapin. This is ridiculous, and certainly not a useful answer. Also, I don't need to invoke it from C#, I need to invoke it from another server than the exchange server with C#... – Stefan Steiger Jun 04 '18 at 12:08