I have changed the size of the normal cmd window using the Defaults context menu item (which appears when you click the top left corner of the cmd window). I also changed the font and this made an acceptable window/font size.
However, the Powershell window initially opens at the new size then shrinks to the size you can see in the screen shot
Altere as configurações e configurações padrão com direitos de administrador.
Eu preferiria a fonte consolas
, eu tive alguns problemas com lucida console
.
E você pode alterar o tamanho do seu perfil, veja a variável $profile
if ($host.Name -eq 'ConsoleHost')
{
$neededWidth = 210
$pswindow = (Get-Host).UI.RawUI
if ($pswindow.WindowSize.Width -ge $neededWidth -and $pswindow.BufferSize.Width -ge $neededWidth)
{
Exit 1
}
$bufferSizeTemp = $pswindow.BufferSize
$bufferSizeTemp.Width = $neededWidth
$pswindow.BufferSize = $bufferSizeTemp
$windowsSizeTemp = $pswindow.WindowSize
$windowsSizeTemp.Width = $neededWidth
$pswindow.WindowSize = $windowsSizeTemp
}