How To Get Deleted Item Count and Associated Item Count And LastLogOn and LogOff Time For A Mailbox In Exchange Using EWS

Using Powershell cmdlet i get  all the details..But i want to get these Details by using EWS Managed Api.Is It Possible to do???
Powershell Cmdlet,
Get-MailboxStatistics -Identity Username, Using this cmdlets all the details will get displayed.
DeletedItemCount:5 //Here how this count comes.In My OutlookWebApp the deleteditems folder contains 13 items in it..But the count shows only 5.
TotalDeletedItemSize:5.465 Kb//Even this value too does not match with DeletedItems Folder size in owa.
AssociatedItemCount:12
LastLogOnTime:11/11/11 12:43PM
LastLogOff Time:11/11/11 2:43PM
In EWS,
By Looping through all folders i can get the total item count and total item size.Even i can get deleteditems  count .But that value does not match  With the powershell value.Even the TotalDeletedItemSize
Doesnt match.
Using EWS Managed Api ,Looping through folders i can get ItemCount,TotalitemSize,(DeletedItems,TotalDeleteditemSize(These TwoValues Does not match with values comes from powershell))
Now how to get the Associated item count and lastlogoff and logon time using EWS managed Api.Is it Possible???
And even y the deleteditems count and size values varies between EWS and powershell.

What happens if you execute the below code?
Get-MailboxFolderStatistics [email protected] | where {$_.FolderPath -like "/Deleted Items"}
Refer this blog. You may get some dice
http://exchangepedia.com/blog/2008/09/configuring-deleted-item-retention.html
Regards Chen V [MCTS SharePoint 2010]

Similar Messages

  • How to get the 4 digit number associated with a SAP icon ( ICON_MAIL )

    Hi Friends,
                   Could anyone please tell me how to get the 4 digit number associated with a SAP icon ( ICON_MAIL ).
                   eg: - For ICON_GREEN_LIGHT the four digit id code is '@08@' (which you can get from ICON table )and the associated 4 digit number is'1003'.
                  Similarly I want to get the 4 digit number for ICON_MAIL(e-mail icon)
    <b><REMOVED BY MODERATOR></b>
    Ashiq
    Message was edited by:
            Alvaro Tejada Galindo

    You can use this report...It's not mine...
    REPORT zdummy_atg_2.
    TABLES: ICON.
    INCLUDE <ICON>.
    FIELD-SYMBOLS: <F>.
    SELECT * FROM ICON.
       ASSIGN (ICON-NAME) TO <F>.
       WRITE:   /(5) <F>, 20 '@',21 ICON-ID+1(2),23 '@',ICON-OLENG,
                ICON-BUTTON,ICON-STATUS,ICON-MESSAGE,ICON-FUNCTION,
                ICON-NAME.
    ENDSELECT.
    Greetings,
    Blag.

  • HT204161 How do I delete an email address associated with an apple id? And how do I deleted an apple id account?

    How do I delete an email address associated with an apple id? And how do I deleted an apple id account?

    Right, if the Apple ID is already set up, then you cannot change it to None until you put a credit card on the account.
    If you set up a brand new Apple ID by first downloading a Free app, and then setting up the ID as a part of that process, then it can be None.
    Here's the support article with the info on how to do it either way:
    Why can’t I select None when I edit my payment information?
    Cheers,
    GB

  • HT4962 Any ideas how to get my software updated on my IPOD 3rd Generation when my computer times out?  I have tried several times and it appears to take 30 plus hours. How Frustrating, not to mention the kids are too!

    Any ideas how to get my software updated on my IPOD 3rd Generation when my computer times out?  I have tried several times and it appears to take 30 plus hours. How Frustrating, not to mention the kids are too!

    If the iTunes purchases are not in your iTunes library you can redownload them by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    If you restore from backup, not that synced media like apps and music are not included in the backup and thus if those items are not in the iTunes library they can't be restored to the iPod during the latter part of the restore process.

  • Can anybody tell me how to get INV available quantity of a item through API

    Hello,experts.
    Can anybody tell me how to get INV available quantity of a item through API?
    And offer any example for this.
    Thanks in advance

    Check from This table : MTL_ONHAND_QUANTITIES and MTL_ONHAND_QUANTITIES_DETAIL.
    Anyway just curious, if you able to access this forum (which requires internet connection), why you can't access TRM and IREP ?

  • How do I delete one of the user accounts on my computer and not lose the data in that account?

    How do I delete one of the user accounts on my computer and not lose the data in that account?

    I actually have the opposite of this problem. haha.
    https://discussions.apple.com/thread/4484354

  • I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    From the Finder menu select 'Secure Empty Trash'. If this or the suggestion above doesn't resolve the problem take a look at the various suggestions in this link:
    http://www.thexlab.com/faqs/trash.html

  • Hi. How can I delete my icloud account on my iPhone? I don't have that email address I was using anymore. I tried deleting it but it is asking for the password and I don't remember it.

    Hi, How can I delete my icloud account on my iphone? I don't have that email address I was using before anymore and I already tried deleting the account but it is asking for the password and I don't remember it.

    Hi ale.vica,
    You need to go to Manage your Apple ID, https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/, and sign in with your current Apple ID and password and do the following:
    1.     Edit your current Apple ID and change it back to the ID which is displaying for your iCloud account. You do not need to verify it - this is only a temporary change
    2.     Go into Settings>iCloud on your device and delete the iCloud account. Use your current password when your are prompted for a password
    3.     Once the old iCloud account is deleted, go back into Manage your Apple ID and change your ID back to the current one
    4.     Go back to Settings>iCloud and sign on with your current ID and password
    That should take care of your issue!
    Cheers,
    GB

  • DOES ANYONE KNOW HOW I CANT DELETE MY APPLE ID I JUST GOT A NEW AND NO LONGER NEED THE OLD 1 HELP PLEASE

    DOES ANYONE KNOW HOW I CANT DELETE MY APPLE ID I JUST GOT A NEW AND NO LONGER NEED THE OLD 1 HELP PLEASE

    As far as I know they can't be deleted, just remove any personal info from it (credit card details etc) and stop using it.
    If you downloaded any content via it then you will need to remember it and it's password, as content is tied to the account that bought/downloaded it, so if you move to a new computer you'll need to authorise the account on it if you want to use any of its content there (or if you bought apps with it you'll only be able to download updates to them via that account)

  • How to get the list of site collections in wss 2.0 and wss 3.0

    Hi,
    How to get the list of site collections in wss 2.0 and wss 3.0
    Please provide related articles to me
    Thanks in advance

    Use 11 for wss 2.0 and 12 for wss 3.0
    Go to :\Program Files\Common Files\Microsoft Shared\web server extensions\11\BIN\”
    stsadm.exe -o enumsites -url <root url>
    to get the list  of site collections and 
    stsadm.exe -o enumsubwebs -url <root url>
    to get the list of sub sites.
    http://support.microsoft.com/kb/832807
    http://ServerName/_layouts/1033/Siteusrs.aspx to manage permissions

  • How to get same order of appearance of photos in Iphoto album and album shown to IOS devices after sharing?

    How to get same order of appearance of photos in Iphoto album and album shown to IOS devices after sharing?

    Hello Leonie!
    I use Iphoto sharing with my family on their ios devises.  And it works. 
    The only problem is that, now, I try to organize the photos in a meaningful way (not chronologically) before Iphoto Sharing (Icloud)
    But on the ios devices the photos is arranged chronologically.
    Is there a solution?
    MBP 2009
    Iphoto 9.5.1
    IPAD 3
    7.1.1
    best regards Joakim

  • Hi In TB how can I delete or disable the wide pane between the list and message pane?

    Hi
    In Tb 24.6.0 how can I delete or disable the wide pane between the list and message pane?
    Thank you.

    You cannot delete it. It is part of the message pane.
    You can make it smaller with this add on.
    https://addons.mozilla.org/en-US/thunderbird/addon/compactheader/?src=ss

  • Good Morning.  How do I delete directly from the iPhone, with out synching, movies and/or tvshows?

    Good Morning.  How do I delete directly from the iPhone, with out synching, movies and/or tvshows?

    I had the same problem with Iphone 5 iOS 8, none of the methods described above were successful.
    Finally, Iexplorer helped to solve my problem.
    http://iexplorer-support.macroplant.com/customer/portal/articles/1325738-how-to- delete-all-photos-from-an-iphone-or-ipad
    best regards,
    salad

  • HT204053 How do I change the phone number associated with my Apple ID and messages on iPad

    How do I change the phone number associated with my Apple ID and messages on iPad

    If you mean for iMessage and FaceTime, the number is based on the iPhone number you set up iMessage and FaceTime on.  If that number is no correct, sign out of these services on both your iPhone and iPad by tapping the ID (in Settings>Messages>Send & Receive and Settings>FaceTime) and selecting sign out.  Then sign in first on your iPhone and confirm that the phone number is correct.  Then sign in on your iPad.

  • Any suggestions on how to get wifi to work?  I have a multitech router and can connect with a computer wirelessly but not the ipad.

    Any suggestions on how to get wifi to work?  I have a multitech router and can connect with a computer wirelessly but not the ipad.

    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398

Maybe you are looking for

  • MM - Related issue

    Hi, when i am transfering the material from one storage location to another storage location within the plant by using movement type 311 & T Code MB1B material document is getting posted.when i am trying to display the same document using T Code MB03

  • Does the Ipod Nano 8 gb BLACK have bluetooth capability?

    does the Ipod Nano 8 gb BLACK have bluetooth capability?

  • How do I switch off the Genius for iPad App Store?

    How do I turn off the Genius for iPad App Store. Its recomendations are very poor.

  • CS5 trial will not start

    I down loaded trial CS5 extended.  It loaded to the computer. I opened and installed the trial version.  I opened the program and it goes to the license agreement and I click on accept and it come right back to the license agreement every time and ne

  • Windows machine cannot see TC/AP network

    I've set up TC to run a network and everything works fine with my Macbook Air. The problem is that my windows machine can't even see the network created? The SSID is being broadcasted since I can see it with my mac. If I plug in the old router, I can