Exchange Online PowerShell output format has changed?

geezbill 11 Reputation points
2023-05-16T13:53:18.84+00:00

Simple one line queries such as Get-Mailbox ******@domain.com now output a full table instead of truncated simple outputs as before. Also running a Get-MessageTrace outputs tables instead of a clean formatted list . I know i can change the output formatting to make it appear like before ( "|Ft ) but this was never needed before. What changed?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,376 Reputation points Moderator
    2023-05-23T01:26:04.03+00:00

    okay i updated my module to 3.1.0 and it solved it. Thanks

    Hi @geezbill ,

    Great to know that it worked after updating the module and thanks for sharing the solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer : )
    275354-picture1.png


    [Exchange Online PowerShell output format has changed?]

    Issue Symptom:

    Simple one line queries such as Get-Mailbox ******@domain.com now output a full table instead of truncated simple outputs as before. Also running a Get-MessageTrace outputs tables instead of a clean formatted list .

    Resolution:

    "i updated my module to 3.1.0 and it solved it"

    Reference: Update the Exchange Online PowerShell module

    1 person found this answer helpful.

  2. Jarvis Sun-MSFT 10,231 Reputation points Microsoft External Staff
    2023-05-17T05:46:45.5+00:00

    Hi @geezbill ,

     

    Simple one line queries such as Get-Mailbox ******@domain.com now output a full table instead of truncated simple outputs as before

    Just kindly want to know what exactly is the output you get so far, can you share a screenshot? (Please note to erase private information)

     

    As far as I know, there's a lot more information that's associated with an Exchange Online mailbox than just the four properties returned by the Get-Mailbox cmdlet. In order to obtain specific information, more parameters are required in Exchange online powershell.

    Please refer to: Use Exchange Online PowerShell to display mailbox information in Exchange Online | Microsoft Learn


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. geezbill 11 Reputation points
    2023-05-17T13:25:29.4+00:00

    It's not just get-mailbox. any exchange query will return full results and this is not desired. If i wanted full results i would add the necessary switches and operators. This behavior started a few weeks back. Capture


Your answer

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