CmdID / PowerShell / Cmdlets / Get
Get-MailUser
Use the Get-MailUser cmdlet to view mail users and also guest users for Microsoft 365 Groups in cloud environments. Exchange PowerShell reference
From the Exchange PowerShell reference 13 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the mail user that you want to view.-AnrThe Anr parameter specifies a string on which to perform an ambiguous name resolution (ANR) search.-CredentialThe Credential parameter specifies the username and password that's used to run this command.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-FilterThe Filter parameter uses OPATH syntax to filter the results by the specified properties and values.-HVEAccountThe HVEAccount switch specifies that this mail user account is specifically used for the High volume email service.-IgnoreDefaultScopeThe IgnoreDefaultScope switch tells the command to ignore the default recipient scope setting for the Exchange PowerShell session, and to use the entire forest as the scope.-OrganizationalUnitThe OrganizationalUnit parameter filters the results based on the object's location in Active Directory.-ReadFromDomainControllerThe ReadFromDomainController switch specifies that information should be read from a domain controller in the user's domain.-ResultSizeThe ResultSize parameter specifies the maximum number of results to return.-SharedWithMailUser-SortByThe SortBy parameter specifies the property to sort the results by.-SoftDeletedMailUserThe SoftDeletedMailUser switch specifies whether to include soft-deleted mail users in the results.