- 1 year ago
Powershell Force Maximize / Reopen if close
Comment
1 / 1
To force a PowerShell window to maximize when it opens or reopen if it was previously closed, you can modify the PowerShell shortcut properties. Here's how:
Locate the PowerShell shortcut: Right-click on the PowerShell shortcut or the PowerShell executable file (
powershell.exe
), usually found in the Start menu or the Windows\System32 directory.Access Properties: Right-click on the shortcut and select "Properties" from the context menu.
Configure the shortcut properties:
- Shortcut tab: In the "Run" dropdown, select "Maximized" to ensure the window opens maximized.
- Options tab: Under "Options," check the "Use legacy console" option if it is available. This ensures that the settings are applied consistently.
Apply the changes: Click "OK" or "Apply" to save the changes.
These steps will configure the PowerShell shortcut to always open in a maximized window. If the window is closed and reopened, it should still appear maximized.