December 30th, 2015

PowerTip: Launch Minimized Application with PowerShell

Doctor Scripto
Scripter

Summary: Learn how to specify the launch state of an application through Windows PowerShell.

Hey, Scripting Guy! Question How can I launch a minimized application in Windows PowerShell instead of opening the window in the foreground?

Hey, Scripting Guy! Answer Use the –WindowStyle parameter with the Start-Process cmdlet, and select Minimized, for example:

Start-Process -WindowStyle Minimized 'iexplore.exe' 

Note   You can also choose HiddenMaximized, or Normal, but not all applications support all modes.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback