Newly installed PowerShell version did not automatically become default profile #21572

Closed
opened 2026-01-31 07:48:28 +00:00 by claunia · 4 comments
Owner

Originally created by @carlos-zamora on GitHub (Apr 24, 2024).

Windows Terminal version

1.21.1094.0

Windows build number

No response

Other Software

PowerShell 7

Steps to reproduce

  1. Have a fresh machine (or similar config)
  2. Install WT Canary
  3. Notice that you have the standard profiles of Windows PowerShell, CMD, and ACS
  4. Install PowerShell 7 via winget
  5. Close and reopen WT Canary

Expected Behavior

We have code to automatically select PowerShell 7 as your default profile if it was just installed. That should happen.

Actual Behavior

PowerShell 7 is not the default profile. Windows PowerShell continues to be the default.

Originally created by @carlos-zamora on GitHub (Apr 24, 2024). ### Windows Terminal version 1.21.1094.0 ### Windows build number _No response_ ### Other Software PowerShell 7 ### Steps to reproduce 1. Have a fresh machine (or similar config) 2. Install WT Canary 3. Notice that you have the standard profiles of Windows PowerShell, CMD, and ACS 4. Install PowerShell 7 via winget 5. Close and reopen WT Canary ### Expected Behavior We have code to automatically select PowerShell 7 as your default profile if it was just installed. That should happen. ### Actual Behavior PowerShell 7 is not the default profile. Windows PowerShell continues to be the default.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 24, 2024):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (Apr 24, 2024): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Closed similar issues: - [--profile parameter not opens "Powershell 7" (#16059)](https://github.com/microsoft/terminal/issues/16059), similarity score: 0.77 - [Windows Terminal Preview Version: 1.17.1023 does not automatically create a profile for PowerShell 7.4.0-preview.3 (#15341)](https://github.com/microsoft/terminal/issues/15341), similarity score: 0.75 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Author
Owner

@DHowett commented on GitHub (Apr 24, 2024):

FWIW, we never change the user's default profile once they've installed Terminal. Why would we?

@DHowett commented on GitHub (Apr 24, 2024): FWIW, we _never_ change the user's default profile once they've installed Terminal. Why would we?
Author
Owner

@carlos-zamora commented on GitHub (Apr 24, 2024):

Oh. I thought we had code in the PowerShell dynamic profile generator to figure out which PowerShell profile we wanted the user to have and make that the default.

@carlos-zamora commented on GitHub (Apr 24, 2024): Oh. I thought we had code in the PowerShell dynamic profile generator to figure out which PowerShell profile we wanted the user to have and make that the default.
Author
Owner

@DHowett commented on GitHub (Apr 24, 2024):

This only applies if pwsh is present at the time of first launch

@DHowett commented on GitHub (Apr 24, 2024): This only applies if pwsh is present at the time of first launch
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21572