PowerTip: Determine Size of PowerShell Console

Doctor Scripto

Summary: Determine how large your Windows PowerShell console is.

Hey, Scripting Guy! Question How can I see how large my Windows PowerShell console is?

Hey, Scripting Guy! Answer Access the WindowSize property from the $Host object:

$Host.UI.RawUI.WindowSize.Width

$Host.UI.RawUI.WindowSize.Height

0 comments

Discussion is closed.

Feedback usabilla icon