Powershell – Out-GridView in PowerShell: How to change the initial size of the window

gridviewpowershell

I often work with the useful function Out-GridView in PowerShell. Sometimes I only have little data to show in the GridView but it opens in a very big window every time. Is there a possibility to change the initial size of the GridView window? A table with 3 columns and 4 rows should not be displayed in a window that is nearly fullscreen on a 1920×1080 display …

Best Answer

PowerShell is a scripting language, not really a GUI language. It's possible to create GUI's with the help of tools like SAPIEN PowerShell Studio and others, by using Winforms or wpf.

In short, what you want is not possible I'm afraid, as there's no parameter for it.