Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Windows 7, how can I set the default PowerShell window size? By default it comes up too tall for the netbook screen I am working with.

I have tried the usual way of changing the size—by clicking in the upper-left corner and choosing “Properties”—but it tells me: Unable to modify the shortcut: . Check to make sure it has not been deleted or renamed. (yes, there is a dot in the middle of the error message)

I also tried right-clicking on the PowerShell shortcut in the Start menu and changing properties there, however, the changes don’t seem to stick.

share|improve this question
Also see… – Kristopher Johnson Mar 26 '10 at 19:51
up vote 2 down vote accepted

Use a function like this in your profile (notepad $profile)

Function Set-WindowSize {

    $size=New-Object System.Management.Automation.Host.Size($x,$y)

Then call the function:

Set-WindowSize 100 50
share|improve this answer
Thanks. This works, as long as I Set-ExecutionPolicy unrestricted, which is a little worrisome, but I guess I would have to do it eventually to get anything done under PowerShell. – Nate Nov 9 '09 at 17:46
setting "WindowSize": "Window cannot be wider than the screen buffer. – VillasV May 14 at 4:59

Another approach is to run Powershell as an administrator. See

share|improve this answer

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.

share|improve this answer
This works just fine for any shortcut for PS, such as if you've pinned it to your taskbar. – James Skemp Jul 23 '15 at 22:42

You could try Properties, Layout tab, Window Size.

I was also able to grap the top RIGHT most window and re-size in the traditional Windows way.

You could try launching the GUI alternative: PowerShell ISE.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.