Out-File (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn

PHOTO EMBED

Wed Aug 21 2024 01:26:03 GMT+0000 (Coordinated Universal Time)

Saved by @baamn

set $PSDefaultParameterValues['out-file:width'] = 2000 before using Out-File
content_copyCOPY

If you want to control the width for all invocations of Out-File as well as the redirection operators (> and >>),

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-file?view