VM-Packages icon indicating copy to clipboard operation
VM-Packages copied to clipboard

Make Windows Terminal the default to run console apps

Open Ana06 opened this issue 1 year ago • 4 comments

Details

Since https://github.com/mandiant/flare-vm/pull/580 and https://github.com/mandiant/VM-Packages/pull/962, Windows Terminal is the default console in FLARE-VM, being adding to the right-click and to the taskbar. @mandiant/vms should we also make Windows Terminal the default console to run tools as console apps? Currently the default is cmd for most tool and powershell for ps1 scripts.

Ana06 avatar Apr 02 '24 13:04 Ana06

I am in favor!

day1player avatar Apr 03 '24 14:04 day1player

@Ana06 This feature is only available in windows 11 or an updated version of windows 10. The required OS build is >= 19045.3031.

d35ha avatar Jun 13 '24 10:06 d35ha

What do you mean with "this feature"? We want to open the shortcuts in the Tools directory with the Windows terminal, this is something we should be able to do in all versions.

I am using 10.0.19045.0 (downloaded from the recommended link in FLARE-VM), so we need to support this version as well.

Ana06 avatar Jul 01 '24 08:07 Ana06

@Ana06 The default terminal host in windows is conhost.exe, for any application that requires a console (Ex. console apps like cmd.exe or GUI apps using AllocConsole) windows, by default, assigns the traditional console host to it. Since our shortcuts are basically wrappers for cmd.exe commands, the used console is the old conhost.exe. cmd.exe itself is not a console, it's an app that requires a console. To change the default console host in windows, the OS build should be >= 19045.3031 .

d35ha avatar Jul 01 '24 08:07 d35ha