locked
Any new EWS features? RRS feed

  • Question

  • Hi all,

    are there new EWS features available in the beta build? I am especially looking for 'user management' features like creating/deleting users/mailboxes, which are currently (with Exchange 2007) only available with Powershell...

    Thank you, Jochen

    Thursday, April 16, 2009 8:12 AM

Answers

  • Hi Jochen,
    There certainly are a number of new features in Exchange Web Services.  The feature I'm most excited about is our Exchange Web Services Managed API.  It is a fantastic managed code (C#/VB/etc) wrapper around our Exchange Web Services protocol.  It makes it very easy to develop new applications against Exchange.  We got a great post and whitepaper, as well as preliminary documentation.  Take a look at the Exchange Developer Center for more details.

    Let me give you an idea of what it looks like to use this new API to bind to the contacts folder and print out the number of items that it contains.
    ExchangeService testService = new ExchangeService();
    testService.AutodiscoverUrl(jasonhen@exchange.microsoft.com);
    Folder contacts = Folder.Bind(testService, WellKnownFolderName.Contacts);
    Console.WriteLine(contacts.TotalCount);
    In addition to the Managed API we've also enabled access to Folder Associated Items, also known as Associated or Hidden items and surfaced a UserConfiguration object which enables you to store application specific data in a users mailbox.  We've added a SOAP AutoDiscover interface which will enable you to look up the configuration information for many users with only a single call to AutoDiscover.  We've also added support for creating and modifying Contact Groups, also known as Personal Distribution Lists.  This is the first Exchange API ever to enable first class handling of Contact Groups.

    Some administrative features we've added include RBAC-based Impersonation and service throttling so that administrators can limit the amount of resources that an EWS application can use.  Whew- that's a lot of features and I'm sure I'm missing something!

    EWS does not expose user creation or mailbox management functionality, you would use PowerShell for that functionality.  Now with Remote Powershell you no longer need to have the Exchange Admin tools installed to remotely administer your machines, and the programmatic interface for calling Powershell has improved as well. So, I'd recommending taking a look at Powershell 2.0 and our new remotePowershell functionality if you need to do user creation/modification.
    Jason Henderson
    Thursday, April 16, 2009 3:21 PM
  • Hi Jochen,
    I think we could have fit something that fits your bill.  Check out the Enterprise Control Panel (ECP) which we've added in Exchange 2010 and gives you web based access to common administrative actions (no need for you to write your own web controls, we've done it for you!).

    Thanks,
    Jason
    Jason Henderson
    Thursday, April 16, 2009 6:58 PM

All replies

  • Hi Jochen

    Some user management enhancements  available on the beta version but you need to use EMC  to do more administration same as Exchange 2007.

    Review below mention URL for more information


    Exchange Management Console
    http://technet.microsoft.com/en-us/library/bb123762(EXCHG.140).aspx

    Regards
    Chinthaka
    Thursday, April 16, 2009 10:25 AM
  • Hi all,

    are there new EWS features available in the beta build? I am especially looking for 'user management' features like creating/deleting users/mailboxes, which are currently (with Exchange 2007) only available with Powershell...

    Thank you, Jochen


    Do you mean Exchange Web Services or Exchange Management Console? The EWS API has been expanded quite a bit for programmers that want to take advantage of that. I don't know if those particular activities have been added to EWS or not but I know there is much more functionality/features exposed this time around.

    http://blog.tiensivu.com/aaron/ - https://mvp.support.microsoft.com/profile/Aaron.Tiensivu - If you find my post helpful, please click on the "Post was helpful" option inside my post.
    Thursday, April 16, 2009 2:47 PM
  • Interesting question... I am curious, what you are you looking to use EWS for in relation to user management? Why do you want these features there?

    The current thinking is that EWS is more for getting at email, calendaring, etc and interacting with the content of mailboxes. This means anything that you were doing before to interact with mailbox data (CDO, MAPI, etc) should have feature parity with EWS. As Exchange progresses, EWS is where the new content interaction will take place (for example the new archiving access that is available in EWS).

    PowerShell on the other hand is for administering Exchange - so the other half of the programability story. PowerShell currently can do everything the GUI tools can do - and more. It can also be integrated with any programs, scripts, web services that are being built to do administrative tasks. If you were building a tool to provision users and read their mailbox content - both PowerShell and EWS would be required. If you were building a tool to provision databases and configure present custom reporting you would use something like C# to write your application and then include the powershell commands in your program.

    - Josh
    http://www.joshuamaher.com 
    Thursday, April 16, 2009 2:58 PM
  • Hey Jochen,

    EWS Managed API has been released along with E2010 wich supports E2007 SP1 or later version of Exchange and includes more new EWS features, like the ability to access Folder Associated Items (FAIs) and User Configuration Objects (objects that let developers store and retrieve user configuration information from a mailbox), enhanced time zone support, full handling of private distribution lists etc... but I guess still user/mailbox addition or deletion is not possible...

    Introducing the EWS Managed API!
    Introducing the Exchange Web Services Managed API 1.0

    Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
    • Proposed as answer by Amit Tank Thursday, April 16, 2009 3:08 PM
    Thursday, April 16, 2009 3:07 PM
  • Hi Jochen,
    There certainly are a number of new features in Exchange Web Services.  The feature I'm most excited about is our Exchange Web Services Managed API.  It is a fantastic managed code (C#/VB/etc) wrapper around our Exchange Web Services protocol.  It makes it very easy to develop new applications against Exchange.  We got a great post and whitepaper, as well as preliminary documentation.  Take a look at the Exchange Developer Center for more details.

    Let me give you an idea of what it looks like to use this new API to bind to the contacts folder and print out the number of items that it contains.
    ExchangeService testService = new ExchangeService();
    testService.AutodiscoverUrl(jasonhen@exchange.microsoft.com);
    Folder contacts = Folder.Bind(testService, WellKnownFolderName.Contacts);
    Console.WriteLine(contacts.TotalCount);
    In addition to the Managed API we've also enabled access to Folder Associated Items, also known as Associated or Hidden items and surfaced a UserConfiguration object which enables you to store application specific data in a users mailbox.  We've added a SOAP AutoDiscover interface which will enable you to look up the configuration information for many users with only a single call to AutoDiscover.  We've also added support for creating and modifying Contact Groups, also known as Personal Distribution Lists.  This is the first Exchange API ever to enable first class handling of Contact Groups.

    Some administrative features we've added include RBAC-based Impersonation and service throttling so that administrators can limit the amount of resources that an EWS application can use.  Whew- that's a lot of features and I'm sure I'm missing something!

    EWS does not expose user creation or mailbox management functionality, you would use PowerShell for that functionality.  Now with Remote Powershell you no longer need to have the Exchange Admin tools installed to remotely administer your machines, and the programmatic interface for calling Powershell has improved as well. So, I'd recommending taking a look at Powershell 2.0 and our new remotePowershell functionality if you need to do user creation/modification.
    Jason Henderson
    Thursday, April 16, 2009 3:21 PM
  • Hi,

    thank you all for your remarks, I am looking from a hosters perspective and would like to see a perspective without HMC. I am aware of the featureset of HMC 4.5 and I know this is huge, but I always thought that it would be a great idea to implement a simple web-based control panel for just the most important/common tasks (without additional features like sharepoint etc., just basic user and mailbox management), EWS as an interface for user management would be great... the only solution that might currently work afaik is to wrap exchange powershell or do all the tasks asynchronous (for example write tasks to database and have a different service that pulls it from there and executes it), or any other thoughts?

    Thanks, Jochen
      
    Thursday, April 16, 2009 6:18 PM
  • Hi Jochen,
    I think we could have fit something that fits your bill.  Check out the Enterprise Control Panel (ECP) which we've added in Exchange 2010 and gives you web based access to common administrative actions (no need for you to write your own web controls, we've done it for you!).

    Thanks,
    Jason
    Jason Henderson
    Thursday, April 16, 2009 6:58 PM
  • yeah, thanks :-)

    just found out about the /ecp application, that's what I was thinking about ... anymore 'hidden' features in Exchange 2010? ;-)

    Jochen
    Thursday, April 16, 2009 8:42 PM
  • You do recognise that a possible acronym for the Exchange Web Services Managed API could be EWS MAPI? <shudder> ;-)

    --
    Cheers,

    Sig Weber (former Exchange MVP and previous owner/founder of www.cdolive.com)

    • Edited by Sig Weber Friday, April 17, 2009 7:22 AM
    Thursday, April 16, 2009 10:27 PM
  • That's funny... Long Live MAPI!!
    Friday, April 17, 2009 12:46 AM
  • Hi,

    that leads directly to another question, will address list segregation (http://technet.microsoft.com/en-us/exchange/bb936719.aspx) still work like with Exchange 2007? (I know it is not officially supported...). Will it be possible to use ECP in such a virtualized environment or is ECP dependent on a 'standard' configuration with normal GAL etc.?

    Thanks, Jochen
    Friday, April 17, 2009 9:31 AM
  • It seems that this api does no permit to manage mailboxes , as create/delete mailbox.
    In our HighSchool, I wrote a program to create, each year, a bunch of users at once (~1500) in Active Directory with their home folders, permissions,...
    I want also to include in this prpgram the mailbox creation for these users with associated properties, BUT without using Powershell.

    Very, very disappointing !!!
    Sunday, April 19, 2009 2:08 PM
  • Hi JMD,
    PowerShell is our programmability API for doing mailbox administration.  I am curious as to why you don't want to use PowerShell in your application?  Have you taken a look at the new programmability features in PowerShell 2.0?  It does make PowerShell development significantly easier and more flexible than the past.

    Thanks,
    Jason
    Jason Henderson
    Tuesday, April 21, 2009 5:12 PM
  • Thank you.
    I use powershell, but as a daily scripting language for many current little tasks.
    I think a few methods (create mailbox, ...) added to the managed api would be more structured, more elegant and simpler to use than all the automation necessary with powershell.
    Tuesday, April 21, 2009 7:59 PM
  • Can you tell me if either EWS or it's API will extend the ability to create a contact with a picture?  Also, when I create a contact to be added to a user's contacts list, will I be able to ensure the PidLidEmail1OriginalEntryId match the contact in the GAL? 

    Please see http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/651f5017-1c16-4cae-b1de-9227d2977294 for what the heck I'm talking about.

    Thanks!
    Sean
    Friday, September 4, 2009 1:05 PM