You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently command-line options for launching the windows terminal in maximized and full screen modes are available (-M and -F respectively). Notably, an option of launching minimized is missing.
I use windows task scheduler to start a variety of scripts at logon to insure my build environment is brought up to date the second I logon. Having the output of these scripts display in an interactive terminal is extremely helpful. However when I start my computer and I am not quite ready to work I must interact with the windows terminal to minimize it. A minimize flag in the command line options would solve this issue.
Reacted by quirin-buechner-mdctec, Kyle Zhang, egeres, Jens Olaf Koch, Josef Norlin, Esther Goldberg, Edouard Shamis, Václav Brožík, Kevin Rich, Ben Murray and 25 more
Don-Vito, how do you "immediately" minimize it? When I first quit Windows Terminal Preview 1.4.2652.0 and then repeatedly click the button that I have pinned to the task bar, the window doesn't lose its title bar.
Kalle Olavi Niemitalo (@KalleOlaviNiemitalo) - yes, I wrote a proof of concept solution that allows you to run "wt -m" or "wt --minimized" or "wt --minimized --focused" (what you actually see in the gif above).
However to implement this, I first allow the window to render fully with default dimensions and only then send a "minimize" signal (very similar to how full screen is implemented).
First I tried to implement this by starting with a minimized window, but then restoring to the default size created it with the wrong dimensions, so I fallbacked to this solution.
There is not much code there - here is the PR: Don-Vito#3.
My question is whether this satisfies your need and worth trying to push this upstream.
yeah it's just weird why they have Maximized, Full Screen, Focus and Miximized focus, but not Minimized
I mean, higher up in the thread pretty much explains why --minimized is Hard relative to the others. (comments starting here: #7374 (comment))
We might be able to do --minimized based off the work in #13811. That PR will make it so we don't ShowWindow(SW_SHOW) until the window has figured out its size and position. Building off that, we could use --minimized to show the window as minimized immediately. That would probably work, but someone (theoretically me) has to figure out the last edge cases in that PR first. I'd love the help though! If someone wants to come through and help get that PR across the finish line, I'd appreciate the help ☺️
someone (theoretically me) has to figure out the last edge cases in that PR first. I'd love the help though! If someone wants to come through and help get that PR across the finish line, I'd appreciate the help ☺️
EDIT: I found out I can run a shortcut (.lnk) from task scheduler, now I have it auto start with windows and it's minimized.
What is the shortcut/parameters, you are launching
create a new link with to target wt.exe (I have windows terminal installed from microsoft store): %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe
once you created it, right click, properties, where it says Run select Minimized from the dropdown list
then in task manager, actions:
start a program: cmd.exe
then in Add arguments/parameters you add /c and the path to the link, mine looks like this: /C "%userprofile%\Dropbox\PC\Documents\My Shortcuts\Windows Terminal.lnk"
triggers: at log on of any user
and I checked the box "run with highest privileges", so I can have quake mode as admin
my settings for windows terminal: launch on machine startup DISABLED hide terminal in the notification area when it is minimized ENABLED actions>add new>show/hide wuake window ctrl + alt + shift + T
if I ever want to have a non admin terminal I just have windows terminal to taskbar anyways, for whatever else I use quake terminal
Ah, ok, I figured it out. Just to let you know, you REQUIRE elevated access when launching PowerShell in this manner. Weird... It could be a security thing to stop consoles from just appearing minimised to prevent bad actors from using them in secret.
you forgot to click "run with highest privileges" checkbox in task scheduler?
I didn't want to launch it elevated by default since I'm pretty security conscious. Unfortunately, there is no other way I can find to not have to elevate its perms. This really needs to be a built-in feature to prevent stuff like this from occurring. I feel like that way, the terminal will become more integrated with the system.
FWIW start /min wt should work now in 1.18. We'll still look at a separate wt --minimized flag (to override the launchMode), but that should be possible now.
e.g. as a script or a link. You simply input the command. cmd /c start /min wt -w _quake
starts the windows-terminal minimized and invokes the quake-mode. There was some trouble with the minimizing by start and opening the quake window, if the 2nd screen is the main. Ok - seems to be fixed now. Thanks to the developers.
[Edit] Just saw the trouble. Invoke a cmd-shell. simple add cmd /c to the command like example above.
it kind of does the job, but the terminal that opens is like 2% of my screen size for some reason
Check here: Post with fix
The developers emphased "1.18. and above".
I asume, it looks something like this when you try cmd /c start /min wt -w _quake and opening the quake terminal.?
There is a bug in versions up to 1.17 in follow szenario:
2 Screns
the 2nd is position left to the 1st
2nd is assigne "main"
you try to invoce the quake terminal on the 2nd screen
in this case the quake terminal is not resized to the 2nd screen, until you move the open terminal once to the 1st screen via short-cut Shift-Win-Curesor[Left/Right] and back.
Currently you can find the Preview of 1.18 here.. Or you waite, till the wt-update is deployet via windows update.
FWIW start /min wt should work now in 1.18. We'll still look at a separate wt --minimized flag (to override the launchMode), but that should be possible now.
hi, about start /min wt, Is there anything to pay attention to during operation? Why doesn't the latest version 1.22.1211.0 test work for me? This command always pop up a new window on the desktop instead of minimizing it.
Activity
KalleOlaviNiemitalo commentedon Aug 25, 2020
I thought
START /MIN wt.execould be used as a workaround, but it leads to the crash #7396.Don-Vito commentedon Nov 2, 2020
Mike Griese (@zadjii-msft), Kalle Olavi Niemitalo (@KalleOlaviNiemitalo), Jared Poole (@jarpoole) - does the behavior where the terminal is open and then is immediately minimized work for you?
I have a PoC for something like this and wondering if I should productize it or abandon 😄

KalleOlaviNiemitalo commentedon Nov 2, 2020
Don-Vito, how do you "immediately" minimize it? When I first quit Windows Terminal Preview 1.4.2652.0 and then repeatedly click the button that I have pinned to the task bar, the window doesn't lose its title bar.
There is the
toggleFocusModeaction though, if you don't want a title bar.KalleOlaviNiemitalo commentedon Nov 2, 2020
Or did you mean you have modified Windows Terminal to add a feature that minimizes the window immediately after opening?
Don-Vito commentedon Nov 2, 2020
Kalle Olavi Niemitalo (@KalleOlaviNiemitalo) - yes, I wrote a proof of concept solution that allows you to run "wt -m" or "wt --minimized" or "wt --minimized --focused" (what you actually see in the gif above).
However to implement this, I first allow the window to render fully with default dimensions and only then send a "minimize" signal (very similar to how full screen is implemented).
First I tried to implement this by starting with a minimized window, but then restoring to the default size created it with the wrong dimensions, so I fallbacked to this solution.
There is not much code there - here is the PR: Don-Vito#3.
My question is whether this satisfies your need and worth trying to push this upstream.
21 remaining items
zadjii-msft commentedon Jan 23, 2023
I mean, higher up in the thread pretty much explains why
--minimizedis Hard relative to the others. (comments starting here: #7374 (comment))We might be able to do☺️
--minimizedbased off the work in #13811. That PR will make it so we don'tShowWindow(SW_SHOW)until the window has figured out its size and position. Building off that, we could use--minimizedto show the window as minimized immediately. That would probably work, but someone (theoretically me) has to figure out the last edge cases in that PR first. I'd love the help though! If someone wants to come through and help get that PR across the finish line, I'd appreciate the helpnirgranth commentedon Jan 23, 2023
I can help you can ping me if needed
zadjii-msft commentedon Jan 24, 2023
I've left notes in #13811 (comment) 😉
Silther commentedon Jan 27, 2023
Is there a way to start the terminal in focus mode only for a batch file?
mmarkus13 commentedon Jan 27, 2023
Thanks for the solution; just a minor correction:
"...then in task
managerTask Scheduler, actions:"marcinsmialek commentedon Jan 31, 2023
I'd recommend https://github.com/gerardog/gsudo to elevate single commands or terminal instances. I use it all the time, and never start whole Windows Terminal as admin (I avoid admin privileges when I can). It should work well with the mentioned workaround.
Nonetheless, having a native minimized startup would be nice to have.
zadjii-msft commentedon May 24, 2023
FWIW
start /min wtshould work now in 1.18. We'll still look at a separatewt --minimizedflag (to override thelaunchMode), but that should be possible now.beyond9thousand commentedon Jun 7, 2023
How exactly is one supposed to run this bit of code
start /min wt?toraxmalu commentedon Jun 9, 2023
e.g. as a script or a link. You simply input the command.
cmd /c start /min wt -w _quakestarts the windows-terminal minimized and invokes the quake-mode. There was some trouble with the minimizing by start and opening the quake window, if the 2nd screen is the main. Ok - seems to be fixed now. Thanks to the developers.
[Edit] Just saw the trouble. Invoke a cmd-shell. simple add
cmd /cto the command like example above.beyond9thousand commentedon Jun 11, 2023
it kind of does the job, but the terminal that opens is like 2% of my screen size for some reason
nirgranth commentedon Jun 11, 2023
i think the command will be implemented in 1.18
toraxmalu commentedon Jun 11, 2023
Check here: Post with fix
The developers emphased "1.18. and above".
I asume, it looks something like this when you try

cmd /c start /min wt -w _quakeand opening the quake terminal.?There is a bug in versions up to 1.17 in follow szenario:
in this case the quake terminal is not resized to the 2nd screen, until you move the open terminal once to the 1st screen via short-cut Shift-Win-Curesor[Left/Right] and back.
Currently you can find the Preview of 1.18 here.. Or you waite, till the wt-update is deployet via windows update.
Cheers.
alchem1no commentedon Oct 10, 2024
ReFleXzZ commentedon Jan 11, 2025
deepwzh commentedon Aug 12, 2025
hi, about
start /min wt, Is there anything to pay attention to during operation? Why doesn't the latest version 1.22.1211.0 test work for me? This command always pop up a new window on the desktop instead of minimizing it.