Share via

Exchange Online PowerShell output format has changed?

geezbill 11 Reputation points
May 16, 2023, 1:53 PM

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?

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,804 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,316 Reputation points Microsoft External Staff
    May 23, 2023, 1:26 AM

    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,221 Reputation points Microsoft External Staff
    May 17, 2023, 5:46 AM

    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
    May 17, 2023, 1:25 PM

    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.