How can I set the PowerShell default window size in Windows 7?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Track title: CC I Beethoven Sonata No 31 in A Flat M
--
Chapters
00:00 How Can I Set The Powershell Default Window Size In Windows 7?
00:48 Answer 1 Score 12
01:04 Accepted Answer Score 6
01:26 Answer 3 Score 4
01:42 Thank you
--
Full question
https://superuser.com/questions/68013/ho...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows7 #powershell
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Track title: CC I Beethoven Sonata No 31 in A Flat M
--
Chapters
00:00 How Can I Set The Powershell Default Window Size In Windows 7?
00:48 Answer 1 Score 12
01:04 Accepted Answer Score 6
01:26 Answer 3 Score 4
01:42 Thank you
--
Full question
https://superuser.com/questions/68013/ho...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows7 #powershell
#avk47
ANSWER 1
Score 12
Go Start
-> All Programs
-> Accessories
-> Windows PowerShell
. RClick on the one you're using. Go to the Layout
tab, and change the settings you want.
ACCEPTED ANSWER
Score 6
Use a function like this in your profile (notepad $profile
)
Function Set-WindowSize {
Param([int]$x=$host.ui.rawui.windowsize.width,
[int]$y=$host.ui.rawui.windowsize.heigth)
$size=New-Object System.Management.Automation.Host.Size($x,$y)
$host.ui.rawui.WindowSize=$size
}
Then call the function:
Set-WindowSize 100 50
ANSWER 3
Score 4
Another approach is to run Powershell as an administrator. See How do I modify the Powershell console settings in Windows 7?