Author Posts

March 5, 2018 at 10:05 am

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:
https://twitter.com/greiginsydney/status/969671584771317760

March 5, 2018 at 2:55 pm

Somewhat related, https://powershell.org/forums/topic/truncated-output/#post-95178.

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 ;).

March 6, 2018 at 7:26 am

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