Home > PowerShell > How to open applications from PowerShell in a maximized window

How to open applications from PowerShell in a maximized window

This I learned today through powershell.com. If you want to open a notepad or iexplore, or someother application in maximized or minized or restored mode, you can do that easily with Powershell.

To open a process in maximized mode, use this.

Start-Process notepad -WindowStype maximized

To open a process in minimized mode, use this

Start-Process notepad -WindowStyle minimised

To open a process in restored mode

Start-Process notepad -WindowStyle normal

To open a process in hidden mode

Start-Process notepad -WindowStyle hidden

You can query and kill all these processes at one shot by using below command

Get-Process -Name Notepad | Stop-Process

Hope it is useful to you.

Related content:

  1. Easy way to kill processes on remote computer using powershell
  2. PowerShell get process creation time
  3. Close applications gracefully using powershell
  4. Kill a process on remote machine using PowerShell Remoting
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>