Forum Discussion

OlegsNenasevs's avatar
OlegsNenasevs
Copper Contributor
Oct 03, 2023

A parameter cannot be found that matches parameter name 'InactiveMailboxOnly'

The argument cannot be found after ExchangeOnlineManagement module is updated to 3.3.0 The same behavior after the module is uninstalled/installed.    
  • VasilMichev's avatar
    Oct 03, 2023
    As others have mentioned, the parameter is available and working fine. Most likely the user you are connecting with does not have the necessary permissions to use said parameter. To find out which role(s) include a given cmdlet/parameter, you can use the following:

    # Get-ManagementRole -Cmdlet Get-Mailbox -CmdletParameters InactiveMailboxOnly

    Name RoleType
    ---- --------
    Mail Recipient Creation MailRecipientCreation
    Mail Recipients MailRecipients
    Compliance Admin ComplianceAdmin
    Mailbox Search MailboxSearch
    View-Only Recipients ViewOnlyRecipients

Resources