locked
get-mailboxstatistics -identity doesnt' work on a disconnected mailbox RRS feed

  • Question

  • Hi,

    I'l like use the cmdlet get-mailboxstatistics -identity MailboxGuid but it doesn't work on a disconnected mailbox.

    If I want find if a mailbox is in disconnected state, the only way that I know is lunch the command:

    get-mailboxdatabase |Get-MailboxStatistics | Where {$_.DisconnectDate -ne $null} |fl displayname,MailboxGuid

    Why can't I use get-mailboxstatistics -identity with the same mailboxguid that I find using the long comand?

    I obtain this error:

    The specified mailbox "c31ad197-6e72-4389-b367-a1c4d57488d2" doesn't exist.
        + CategoryInfo          : NotSpecified: (0:Int32) [Get-MailboxStatistics], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : FE0FA7FF,Microsoft.Exchange.Management.MapiTasks.GetMailboxStatistics

    Someone can help me? Thank you very much for the support.

    I wait a reply I wish you a good day.

    Sergio

    Friday, January 11, 2013 2:20 PM

Answers

  • Get-DisconnectedMailbox will give you the list of disconnected mailbox.
    http://www.mikepfeiffer.net/2010/06/managing-disconnected-exchange-mailboxes-with-powershell/

    Gulab Prasad,
    gulab@exchangeranger.com
    My Blog | Z-Hire Employee Provisioning App

    • Proposed as answer by Edward van BiljonMVP Saturday, January 12, 2013 4:46 PM
    • Marked as answer by Zi Feng Tuesday, January 22, 2013 3:18 AM
    Friday, January 11, 2013 2:59 PM

All replies

  • Get-DisconnectedMailbox will give you the list of disconnected mailbox.
    http://www.mikepfeiffer.net/2010/06/managing-disconnected-exchange-mailboxes-with-powershell/

    Gulab Prasad,
    gulab@exchangeranger.com
    My Blog | Z-Hire Employee Provisioning App

    • Proposed as answer by Edward van BiljonMVP Saturday, January 12, 2013 4:46 PM
    • Marked as answer by Zi Feng Tuesday, January 22, 2013 3:18 AM
    Friday, January 11, 2013 2:59 PM
  • Hi Sergio

    Did you try the script from Gulab's link?

    Cheers


    Zi Feng
    TechNet Community Support

    Monday, January 14, 2013 6:11 AM