September 22nd, 2013

PowerTip: Determine Size of PowerShell Console

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.