How to change the size of the Console using PowerShell?


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

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements