Skip to content

[Interesting Usage] Replace the Windows default conhost.exe to OpenConsole.exe #1817

@YihaoPeng

Description

@YihaoPeng

Since Windows Terminal is currently performing poorly in copying and pasting, I think OpenConsole is my better choice.

However, if you do not run it from OpenConsole, Windows will append the default console host (C:\Windows\System32\conhost.exe) to all console applications.

Then Microsoft said that the source code of OpenConsole comes from conhost.exe, then can we replace conhost.exe directly with OpenConsole.exe? This way we get a better default console host.

I tried it and it works well. Although OpenConsole is packaged as a UWP application, OpenConsole.exe is actually a normal Win32 window program that can be run by double-clicking its exe. You can find it from terminal\bin\x64\Release\OpenConsole.exe if you done a x64 release build.

Then, go to C:\Windows\System32, right-click conhost.exe, "Properties", and edit the permission list to give the current user the "Full Control" permission.

Then, rename conhost.exe to conhost-old.exe and copy OpenConsole.exe to here and rename it to conhost.exe.

Open any console application (powershell, wsl, ...) and enjoy your new console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionFor questions or discussionNeeds-Tag-FixDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingResolution-AnsweredRelated to questions that have been answered

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions