Powershell, get-mailbox -ALL, a wish for future versions RRS feed

  • General discussion

  • hello

    many Exchange Admins are not powershell Developer Gurus!

    I had a wish for future Exchange powershell extensions.

    get-mailbox has no paramter to show all mailboxes (Arbitration, AuditLog Archiv etc)  or what else

    another example

    if you have a archiveDB with many Archiv mailboxes

    many normal Exchange Admins (with less powershell knowhow) think why can't show all mailboxes in this archiveDB ???

    get-mailbox -database archivedb show nothing.

    there is no paramter -all to Show all mailboxes (Systemmailboxes, Aribitration, AuditLog, Archiv etc)

    If you are a developer you known to use get-mailbox -database DB1 -Archiv to find all user that have Archiv enabled and Display ArchiveDatabase Property. that is awkward


    Wednesday, July 27, 2016 7:28 AM

All replies

  • You have these:

    Get-Mailbox -Database ArchiveDB -Archive
    Get-Mailbox -Database ArchiveDB -Arbitration
    Get-Mailbox -Database ArchiveDB -Monitoring

    I don't consider it awkward. And PowerShell isn't so much for developers as it is for administrators. The switches are well documented.

    If you want one list, you can do this:

    $M = Get-Mailbox -Database ArchiveDB -ResultSize Unlimited
    $M += Get-Mailbox -Database ArchiveDB -Archive -ResultSize Unlimited
    $M += Get-Mailbox -Database ArchiveDB -Arbitration -ResultSize Unlimited
    $M += Get-Mailbox -Database ArchiveDB -Monitoring -ResultSize Unlimited

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Wednesday, July 27, 2016 10:26 PM
  • Ed,

    this is the Problem what I mean. Normal DUMMY User think he can view all Mailboxes in ArchiveDB with

    Get-Mailbox -Database ArchiveDB -Archive

    But It isn't


    • Edited by -- Chris -- Thursday, July 28, 2016 5:36 AM
    Thursday, July 28, 2016 5:35 AM