Powershell outputs to list for all cmdlets

Jay Carper 216 Reputation points
2022-08-11T14:48:07.683+00:00

Somehow, Powershell has changed to format-list for all cmdlets. How do I change it back to the default output format for ALL cmdlets, not just one?

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,901 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Jay Carper 216 Reputation points
    2022-08-12T20:00:49.39+00:00

    I'm certain there must be a simpler way of accomplishing this, but I did manage to fix it. While working on a separate issue, I discovered that the computer had two versions of ExchangeOnlineManagement module installed (2.0.5 and 2.0.6). V2.0.6 has known problems with some UnifiedGroup cmdlets, so I uninstalled them both and reinstalled only v2.0.5.

    All cmdlets are now back to normal output.

    1 person found this answer helpful.

  2. Dillon Silzer 54,466 Reputation points
    2022-08-11T14:50:20.363+00:00

    Hi @Jay Carper

    Try adding out-default to the end of your command:

    Example:

    Get-Process | Select-Object -First 5 | Out-Default

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/out-default?view=powershell-7.2

    ---------------------------------

    If this is helpful please accept answer.


  3. Aung Zaw Min Thwin 306 Reputation points
    2022-08-12T08:01:18.547+00:00

    What is your PS version?

    maybe, you can try Update-FormatData

    Pls check more details at about_Format


  4. Rich Matheisen 44,776 Reputation points
    2022-08-12T15:27:56.653+00:00

    Have any of the format files been changed? Check the "LastWriteTime" property:

    get-childitem $PSHOME | where {$_.name -like "*.Format.*"}