none
how to get the mailbox size , total no of mails and lastlogon time using c#? RRS feed

  • Question

  • Hi

     

    I have to find the mailbox size , lastlogon time and other related information using c# but i dont want to use the powershell.

    Is their any other way to find these properties for exchange server 2010 ?

    Thanks

    Sandeep

    • Edited by Sandeep3012 Friday, January 13, 2012 5:59 AM
    Thursday, January 12, 2012 1:37 PM

All replies

  • Hi

     

    I have to find the mailbox size , lastlogon time and other related information using c# but i dont want to use the powershell.

    Is their any other way to find these properties for exchange server 2010 ?

    Thanks

    Sandeep


    Hi Sandep
    Powershell is the good one for Exchage Server 2010

    Any way I have do that using WMI For Exchnage Server 2003 I dont know for Exchange server 2010
    As per my knowledge LDAP queries may be do that..

    In Powershel:

    you can get that details Using the following powershel command

    [PS] C:\Windows\system32>get-mailboxstatistics -Identity JoSwa@xxxxx.com|format-list


    RunspaceId              : bxvbhdc8-2312-4f94-906f-6ad6284fdce6
    AssociatedItemCount     : 13
    DeletedItemCount        : 0
    DisconnectDate          :
    DisplayName             : Joswa.
    ItemCount               : 12
    LastLoggedOnUserAccount : xxxxxx\Joswa
    LastLogoffTime          : 2/22/2011 12:33:13 PM
    LastLogonTime           : 2/22/2011 12:28:17 PM
    LegacyDN                : /O=EXCHANGE/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=JoSwa
    MailboxGuid             : 511sd-36bf-472b-b5a5-29bcsdfd59dcc
    ObjectClass             : Mailbox
    StorageLimitStatus      : BelowLimit
    TotalDeletedItemSize    : 0 B (0 bytes)
    TotalItemSize           : 45.33 KB (46,421 bytes)
    Database                : Mailbox Database 1250sdf0387
    ServerName              : RD49
    DatabaseName            : Mailbox Database 125sdf387
    MoveHistory             :
    IsQuarantined           : False
    IsArchiveMailbox        : False
    Identity                : 511cf927-36bc-479b-b5a5-29bc5sdfsd359dcc
    MapiIdentity            : 511df927-36bc-479b-b5a5-29bsdfs59dcc
    OriginatingServer       : Mymachine.xxxx.com
    IsValid                 : True


    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful"
    Friday, January 13, 2012 6:22 AM