0

For powershell version: 2.0 and 4.0

Is there a command used set the screenbuffersize of powershell console?

I need to set the property of powershell console, not default size. I have tried the below command.

reg add "HKEY_CURRENT_USER\Console" /t REG_DWORD /v ScreenBufferSize /d 0x07d003e8 /f 

1 Answer 1

1

tada:

$host.UI.RawUI.BufferSize = new-object System.Management.Automation.Host.Size(175,20000) $host.UI.RawUI.WindowSize = new-object System.Management.Automation.Host.Size(175,60) 
1
  • This is a good answer. Thank you very much for your help. Commented May 20, 2016 at 1:04

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.