Trucate output view?

Welcome Forums General PowerShell Q&A Trucate output view?

This topic contains 2 replies, has 2 voices, and was last updated by

11 months, 3 weeks ago.

  • Author
  • #95166

    Points: 0
    Rank: Member

    Is it possible to truncate the output view so i can choose how many characters to display? Substring wont work, as i want to keep the objects in the pipeline. Only want to truncate the display.
    Take a look at how the output looks for now:

  • #95179

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Somewhat related,

    Yes, but to do this the right way you need to build your code as a function, in a module, and pair that module with a custom formatting view. I cover that in a variety of books I've written ;).

    • #95214

      Points: 0
      Rank: Member

      You learn something new about PowerShell every day 🙂
      Thanks for pointing us in the right direction.

The topic ‘Trucate output view?’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort