How to change the size of the Console using PowerShell?

PowerShellMicrosoft TechnologiesSoftware & Coding

You can change the size of the PowerShell Console with GUI and CLI both.

With GUI

With CLI

To change the Width of the console,

$host.UI.RawUI.WindowSize.Width = 150

To change the Height of the console,

$host.UI.RawUI.WindowSize.Height = 60
Updated on 23-Jan-2020 08:05:01