Skip to content

Clicking Launch PowerShell opens Windows Terminal #20201

Closed

Description

Prerequisites

Steps to reproduce

Download PowerShell from https://github.com/PowerShell/PowerShell/releases/latest.
Start install like normal.
PowerShell just opens Windows Terminal.

Expected behavior

It should launch PowerShell.

Actual behavior

It opens Windows Terminal.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Activity

  1. 237dmitry commented on Sep 4, 2023

    @237dmitry

    It opens Windows Terminal

    I think you set Windows Terminal as default terminal application.

  2. mklement0 commented on Sep 4, 2023

    @mklement0
    Contributor

    To add to 237dmitry's comment:

    In Windows 11, you can change what terminal (console) application console-subsystem applications such as PowerShell use, via the relevant setting in the Settings application - this setting applies system-wide, to all console applications, and is not controlled by PowerShell itself; the default value is Let Windows decide (I'm unclear on how it decides), which in your case apparently defaulted to Windows Terminal.

    • Run Start-Process ms-settings:developers to open the relevant page of the Settings application.
    • Under Terminal (the second item from the bottom in the main pane), select the desired terminal (console) app from the dropdown list; to return to the old-style console windows (provided via conhost.exe), select Windows Console Host.
  3. 237dmitry commented on Sep 4, 2023

    @237dmitry

    This can also be done using the registry:

    $ Get-Item HKCU:\Console\%%Startup
    
        Hive: HKEY_CURRENT_USER\Console
    
    Name                           Property
    ----                           --------
    %%Startup                      DelegationConsole  : {00000000-0000-0000-0000-000000000000}
                                   DelegationTerminal : {00000000-0000-0000-0000-000000000000}

    "Let Windows decide": {00000000-0000-0000-0000-000000000000}
    "Windows Console Host": {B23D10C0-E52E-411E-9D5B-C09FDF709C7D}
    "Windows Terminal Preview": {06EC847C-C0A5-46B8-92CB-7C92F6E35CD5}

    For example "Windows Console Host":

    Set-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationConsole -Type String -Value '{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}'
    Set-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationTerminal -Type String -Value '{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}'
  4. added
    Resolution-ExternalThe issue is caused by external component(s).
    and removed
    Needs-TriageThe issue is new and needs to be triaged by a work group.
    on Sep 18, 2023
  5. kilasuit commented on Sep 18, 2023

    @kilasuit
    Collaborator

    For reference these are some additional links for reading
    https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/
    https://learn.microsoft.com/en-us/windows/terminal/
    https://learn.microsoft.com/en-us/windows/terminal/install

    Windows Command Line
    Hey Windows Terminal fans! This month we are delivering a servicing release and the next feature release is scheduled for January, so we figured we’d write a blog post discussing Windows Terminal as the default command line experience on Windows and what our future plans are.
    Learn about Windows Terminal and how it can improve your command line workflow.
    Learn how to install and set up Windows Terminal.
  6. ChaseKnowlden commented on Sep 18, 2023

    @ChaseKnowlden
    Author

    Gotcha!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions