none
EWS Managed API ItemCount RRS feed

  • Question

  • Hi All

    With Exchange Management Shell i can list the ItemCount of a Mailbox

    [PS] T:\>Get-MailboxStatistics -Identity a.bohren | fl *count*

    AssociatedItemCount     : 318
    DeletedItemCount        : 5971
    ItemCount               : 2891
    LastLoggedOnUserAccount : CORP\a.bohren

    Is there some similar in EWS Managed API i can use?

    Regards Andres


    MCSE 2003 / MCSA 2003 Messaging / MCTS: Windows Server 2008 / MCTS: Windows Vista, SQL 2005 / MCTS: Microsoft System Center Operations Manager 2007 / MCITP: Enterprise Administrator / MCITP: Enterprise Messaging Administrator 2007 / 2010 / VCP - VMWare Certified Professional

    Friday, August 31, 2012 8:07 PM

Answers

  • That is for 2013 (it's part of FindMailboxStatisticsByKeywordsType)and  currently at the moment I don't believe its been implemented I can only take a guess that this will be a new feature that will appear maybe RTM or afterwards.

    The information such as "LastLoggedOnUserAccount : CORP\a.bohren" isn't avaible via EWS and would be invalid anyway because EWS is a Mailbox Access API and updates it. The Exchange Management Shell is the Managed API for Exchange 2007 up and its better to use the EMS cmdlets to do these operations because the EMS is designed to do this in a Administrative context (where EWS will only work in a user context).

    This information in available if you access the store via MAPI using the IExchangeManageStore interface (which is what the EMS surfaces) but in EWS there in no equivalent method of access that same information.

    Cheers
    Glen

    • Marked as answer by Andres Bohren Monday, September 3, 2012 10:10 PM
    Monday, September 3, 2012 7:04 AM

All replies

  • Hi All

    Found somethig in EWS Managed API 2.0 Preview

    http://msdn.microsoft.com/en-us/library/exchange/microsoft.exchange.webservices.data.mailboxstatisticsitem_properties(v=exchg.80)

    'Declaration
    PublicNotInheritableClass MailboxStatisticsItem
    'Usage
    Dim instance As MailboxStatisticsItem

    But how do i bind this to a specific Mailbox?

    Regards Andres 


    MCSE 2003 / MCSA 2003 Messaging / MCTS: Windows Server 2008 / MCTS: Windows Vista, SQL 2005 / MCTS: Microsoft System Center Operations Manager 2007 / MCITP: Enterprise Administrator / MCITP: Enterprise Messaging Administrator 2007 / 2010 / VCP - VMWare Certified Professional

    Saturday, September 1, 2012 12:04 PM
  • That is for 2013 (it's part of FindMailboxStatisticsByKeywordsType)and  currently at the moment I don't believe its been implemented I can only take a guess that this will be a new feature that will appear maybe RTM or afterwards.

    The information such as "LastLoggedOnUserAccount : CORP\a.bohren" isn't avaible via EWS and would be invalid anyway because EWS is a Mailbox Access API and updates it. The Exchange Management Shell is the Managed API for Exchange 2007 up and its better to use the EMS cmdlets to do these operations because the EMS is designed to do this in a Administrative context (where EWS will only work in a user context).

    This information in available if you access the store via MAPI using the IExchangeManageStore interface (which is what the EMS surfaces) but in EWS there in no equivalent method of access that same information.

    Cheers
    Glen

    • Marked as answer by Andres Bohren Monday, September 3, 2012 10:10 PM
    Monday, September 3, 2012 7:04 AM
  • Hi Glen,

    Thank's for your Informations!

    Found something similar - and have to figure out the Details

    http://blogs.technet.com/b/exchange/archive/2009/11/02/3408653.aspx

    Regards Andres


    MCSE 2003 / MCSA 2003 Messaging / MCTS: Windows Server 2008 / MCTS: Windows Vista, SQL 2005 / MCTS: Microsoft System Center Operations Manager 2007 / MCITP: Enterprise Administrator / MCITP: Enterprise Messaging Administrator 2007 / 2010 / VCP - VMWare Certified Professional

    Monday, September 3, 2012 10:10 PM