Looking for a script or command to list all mailboxes.

IT Engineer 260 Reputation points
2023-12-27T21:25:33.4266667+00:00

Hello, We are looking for script or ps command to list all user mailboxes with Display name, emailid,databse,totalitemsize, user enabled tru or false & organizational unit. Thanks.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
{count} votes

Answer accepted by question author
  1. Anonymous
    2023-12-28T06:39:52.3833333+00:00

    Hello @IT Engineer

    Try the following command:

    Get-Mailbox | Select-Object DisplayName, UserPrincipalName, Database, TotalItemSize, OrganizationalUnit

    Reference: Get-Mailbox (This contains some parameters that Get-mailbox only supports.)

    Also, what parameters are you referring to for "user enabled true or false"?

    Regards

    SF


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 


1 additional answer

Sort by: Most helpful
  1. IT Engineer 260 Reputation points
    2024-01-02T11:23:44.2+00:00

    Dear @Anonymous

    Can you please help me to get the Exchange Power Shell command to add "Reset Password Role" to Organization Management role group.

    I know from EAC but need the command.

    Thanks


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.