[E2010] [EWS] [JAVA/C++]: Create user, OAB, DL, ... with EWS ? RRS feed

  • Question

  • Hello,

    Are there any EWS APIs to manage the Exchang org/server, that is to create a distribution list, an address book policy, a mailbox database, ... ? 

    As far as I can see from the docs, I'd say no, but would like to know for sure. So far, all our admin stuff is done with Powershell but I'd like to manage the org remotely, from a custom Web interface so as to give my customers some kind of admin privileges.

    NOTE : it concerns my next Exchange plateform which is not yet installed so suppose I'll be using the lastest version of Exchange and API. But the programming language will have to run on Linux (so either Java or C++).



    Christian G.

    Wednesday, March 21, 2012 2:33 PM

All replies

  • No all the Management of Exchange Objects must be done via the Exchange Management Shell cmdlets on Exchange 2010 you can use Remote Powershell from managed code to do this eg see

    From a nix (or mac) environment you'll need to find something that will allow you to run WSMan client session to the Exchange Server there are a few Open source projects like OpenWSMan but I've yet to see anybody use something like this with any degree of success with Exchange. 


    Thursday, March 22, 2012 3:56 AM
  • Thanks for the reply Glen.

    My first guess was to call 'home-made' webservices from the Linux box, that is something like https://myexchange/mywebservices/createUser.ps1?upn=xxx&passwd=xxx&otheroption=...., thus server pages written in Powershell. What do you think about that ?

    Regarding the OpenWSMan project, it doesn't look very active these last few years. 

    Christian G.

    Thursday, March 22, 2012 8:04 AM
  • If I had to do this from Linux that's that method I'd use, there are a few third party SSH Powershell servers that you could use as well eg (I like the web service better because you don't have to install anything third party on the Exchange Servers also costs less).


    Thursday, March 22, 2012 8:29 AM
  • OK. And if that was a Windows box, what method would you advise?

    Christian G.

    Thursday, March 22, 2012 3:38 PM
  • If its a Windows Box i would just use C# and Remote powershell eg You will find the majority of examples people have posted use this.


    Friday, March 23, 2012 5:12 AM
  • Thanks for all Glen.

    Christian G.

    Friday, March 23, 2012 7:05 AM