Default formatting of an PSObject

Hello Guys,

i know you can overwrite the “DefaultDisplayPropertySet” for an object using PowerShell (https://learn-powershell.net/2013/08/03/quick-hits-set-the-default-property-display-in-powershell-on-custom-objects/)

But is it also possible to overwrite the default output format like Format-Table/Format-List ??

Some objects are shown as List and i don’t want to call every function like this:

PS> foo | ft 

Greetings

submitted by /u/k3ks
[link] [comments]

Leave a Reply