locked
Filter Mailboxes on Property 'IsInactiveMailbox' RRS feed

  • Question

  • I am trying to filter all ACTIVE mailboxes into a variable for the purpose of examining outlook rules for data exfiltration.  Currently, all mailboxes are pulled and even with robustcloudcommand I am waiting days for the script to complete.  I have tried:

    Get-Mailbox -ResultSize unlimited -Filter ($_.IsInactiveMailbox -eq '$False')

    Get-Mailbox -ResultSize unlimited  | where {$_.IsInactiveMailbox -eq '$False'}

    Using 'where', I get zero results in the data set.

    Using 'filter', I get 'Cannot bind parameter 'Filter' to the target. Exception setting "Filter": ""False" is not a recognized filterable property. Valid property names are:'

    Then it lists 'isinactivemailbox' as a filterable property.  I found a post to sort mailboxes by last login but that result doesn't account for things like staff tha tis on leave of absence. 

    How can I filter and return my active mailboxes only?  Thank you for any help!  :)


    ~Eric

    Saturday, November 28, 2020 5:50 PM

All replies

  • forum migrated to mentioned below link

    https://docs.microsoft.com/en-us/answers/index.html

     hope answer the question if issue resolve please accept answer
    Saturday, November 28, 2020 10:15 PM
  • I am trying to filter all ACTIVE mailboxes into a variable for the purpose of examining outlook rules for data exfiltration.  Currently, all mailboxes are pulled and even with robustcloudcommand I am waiting days for the script to complete.  I have tried:

    Get-Mailbox -ResultSize unlimited -Filter ($_.IsInactiveMailbox -eq '$False')

    Get-Mailbox -ResultSize unlimited  | where {$_.IsInactiveMailbox -eq '$False'}

    Using 'where', I get zero results in the data set.

    Using 'filter', I get 'Cannot bind parameter 'Filter' to the target. Exception setting "Filter": ""False" is not a recognized filterable property. Valid property names are:'

    Then it lists 'isinactivemailbox' as a filterable property.  I found a post to sort mailboxes by last login but that result doesn't account for things like staff tha tis on leave of absence. 

    How can I filter and return my active mailboxes only?  Thank you for any help!  :)


    ~Eric

    Hi Eric,

    The Exchange Server (non-development) forums have been migrated to the new Microsoft Q&A platform, I suggest asking over here:
    https://docs.microsoft.com/en-us/answers/topics/office-exchange-server-administration.html

    (Please don't forget to mark helpful replies as answer, thank you)

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    Sunday, November 29, 2020 12:41 PM
  • Hi,

    Please note: Exchange Server Development forum mainly discuss issues about Exchange development, and it's not monitored. Other TechNet Exchange sub-forums are migrated to Microsoft Q&A. We invite you to post new questions with related tags in the new forum.

    For your issue about listing inactive mailboxes, we helped to create a new thread and provided suggestions in Microsoft Q&A. Please go to [Migrated from MSDN Exchange Dev] Filter Mailboxes on Property 'IsInactiveMailbox' to continue the discussion. Thanks for your understanding.

    Regards,

    Lydia Zhou


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Monday, November 30, 2020 4:43 AM