I am sure this has been answered several times over on this site:
I have a script that has about 10 columns of information. when run the script from a "Maximized" Powershell window, I get all of the output from all 10 Columns. When I run that same script from a Powershell Prompt running in "Windowed" Mode, I run into an issue where I get about 7 of the 10 columns.
Is there a way to script a function that will "Simulate" the Full Screen output inside a script running in "Windowed Mode"?
An Example of this :
$code = .\Script.ps1|ft -autosize
if I execute the script in a minimized window, I get a truncated output in $code where if I run the same code in a Maximized Window I get the Full output stored to $code
I know you can do the following :
$code = .\Script.ps1|ft -AutoSize |Out-String -Width 4096
This will give you the full output, however I need to be able to take
and have the Table structure still intact which won't happen if I convert to string. **Suggestions**?