Background: Setting up the PowerShell buffer with the command line large
If the screen buffer is too small (height and width), the information is not displayed exactly after the command is executed, even if the output to text will have some information ... Instead, this is inconvenient, so you need to modify the size of the screen buffer. Here's how to modify the size of the PowerShell screen buffer as a command.
Method:
#设置powershell the console screen buffer
$host. Ui. Rawui.buffersize = New-object System.Management.Automation.Host.Size (175,20000)
#设置powershell window Size
$host. Ui. Rawui.windowsize = New-object System.Management.Automation.Host.Size (175,60)
This article is from the "7088733" blog, please be sure to keep this source http://7098733.blog.51cto.com/7088733/1775280
To set the PowerShell screen buffer size with the command line