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: 2020-01-23T08:05:01+05:30

2K+ Views

Advertisements