Remove Old Powershell from Dropdown List. #13606

Closed
opened 2026-01-31 03:47:11 +00:00 by claunia · 13 comments
Owner

Originally created by @xioto on GitHub (Apr 23, 2021).

I am trying to remove the Old Powershell from the Dropdown List, but when I do and click "Save", It just switches it back and does not remove it. How do I fix this?

I do also have Powershell 7.
I am on Terminal V 1.7.1033.0
I am on Dev Build 21364.1

Originally created by @xioto on GitHub (Apr 23, 2021). I am trying to remove the Old Powershell from the Dropdown List, but when I do and click "Save", It just switches it back and does not remove it. How do I fix this? I do also have Powershell 7. I am on Terminal V 1.7.1033.0 I am on Dev Build 21364.1
claunia added the Issue-BugResolution-DuplicateArea-SettingsUI labels 2026-01-31 03:47:11 +00:00
Author
Owner

@DHowett commented on GitHub (Apr 23, 2021):

What is "PowerShell V1"? We do not have a V1 of powershell...

@DHowett commented on GitHub (Apr 23, 2021): What is "PowerShell V1"? We do not have a V1 of powershell...
Author
Owner

@skyline75489 commented on GitHub (Apr 23, 2021):

Wild guess: V1 = Windows PowerShell

@skyline75489 commented on GitHub (Apr 23, 2021): Wild guess: V1 = Windows PowerShell
Author
Owner

@nonspin commented on GitHub (Apr 24, 2021):

You can at least hide it with the "Hide profile from dropdown"-toggle (using the settings ui)
or adding -> hidden: true
to "Windows Powershell" in your settings.json
Removing/Deleting it is not possible because it's a Default Profile

@nonspin commented on GitHub (Apr 24, 2021): You can at least hide it with the "Hide profile from dropdown"-toggle (using the settings ui) or adding -> hidden: true to "Windows Powershell" in your settings.json Removing/Deleting it is not possible because it's a Default Profile
Author
Owner

@xioto commented on GitHub (Apr 24, 2021):

Very sorry, I have no idea what I meant by V1, I mean the powershell that is located here : %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe

@nonspin When I try and hide it, it just changes it back and re appears.

@xioto commented on GitHub (Apr 24, 2021): Very sorry, I have no idea what I meant by V1, I mean the powershell that is located here : %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe @nonspin When I try and hide it, it just changes it back and re appears.
Author
Owner

@xioto commented on GitHub (Apr 24, 2021):

image

@xioto commented on GitHub (Apr 24, 2021): ![image](https://user-images.githubusercontent.com/72493732/115958116-f93ae600-a4fd-11eb-84f3-ba44bc3dc849.png)
Author
Owner

@j4james commented on GitHub (Apr 24, 2021):

I recently had a similar problem when installing Terminal Preview (v 1.8.1032.0) on a new machine. I tried to hide the Azure Cloud Shell profile via the settings UI, but as soon as I saved the settings the radio button was turned off again. The problem went away after closing and reopening the terminal (I might have made other settings changes inbetween, so I'm not certain that reopening the terminal was all that was necessary to fix it).

@j4james commented on GitHub (Apr 24, 2021): I recently had a similar problem when installing Terminal Preview (v 1.8.1032.0) on a new machine. I tried to hide the _Azure Cloud Shell_ profile via the settings UI, but as soon as I saved the settings the radio button was turned off again. The problem went away after closing and reopening the terminal (I might have made other settings changes inbetween, so I'm not certain that reopening the terminal was all that was necessary to fix it).
Author
Owner

@skyline75489 commented on GitHub (Apr 24, 2021):

Funny that,I think I also hit this once and forgot how I managed to figure it out. Probably the same as James did.

@skyline75489 commented on GitHub (Apr 24, 2021): Funny that,I think I also hit this once and forgot how I managed to figure it out. Probably the same as James did.
Author
Owner

@xioto commented on GitHub (Apr 24, 2021):

Sorry, I tried James' solution, but it did not work. :(

@xioto commented on GitHub (Apr 24, 2021): Sorry, I tried James' solution, but it did not work. :(
Author
Owner

@zadjii-msft commented on GitHub (Apr 26, 2021):

@Xioto can you share your settings.json? I've got a theory about (#9855, #9864, #9938) that more data might help put together. Either it's all the same issue:

  • Some of our controls (especially toggle buttons) don't necessarily work to edit layered profiles. Maybe the two way bindings are broken?

Or there's two separate problems:

  • Sometimes the radio buttons don't actually change the settings model
  • Something is weird about layered profiles
@zadjii-msft commented on GitHub (Apr 26, 2021): @Xioto can you share your `settings.json`? I've got a theory about (#9855, #9864, #9938) that more data might help put together. Either it's all the same issue: * Some of our controls (especially toggle buttons) don't necessarily work to edit layered profiles. Maybe the two way bindings are broken? Or there's two separate problems: * Sometimes the radio buttons don't actually change the settings model * Something is weird about layered profiles
Author
Owner

@xioto commented on GitHub (Apr 26, 2021):

I will add my settings.json when I get back home, I have also tried changing the setting in the json file, but it switches back automatically just like the GUI

@xioto commented on GitHub (Apr 26, 2021): I will add my settings.json when I get back home, I have also tried changing the setting in the json file, but it switches back automatically just like the GUI
Author
Owner

@xioto commented on GitHub (Apr 26, 2021):

So here is my settings.json. https://pastebin.com/LLnF04X9
For some reason Powershell 7 does not show as its own Profile, but it shares a profile with the old Powershell. ¯_(ツ)_/¯

I had to remove some Profiles as they included Personal Info.
If you need any more help or info, just ask.
Hope this helps!

@xioto commented on GitHub (Apr 26, 2021): So here is my `settings.json`. https://pastebin.com/LLnF04X9 For some reason Powershell 7 does not show as its own Profile, but it shares a profile with the old Powershell. ¯\_(ツ)_/¯ I had to remove some Profiles as they included Personal Info. If you need any more help or info, just ask. Hope this helps!
Author
Owner

@zadjii-msft commented on GitHub (Apr 26, 2021):

We've managed to track down a minimal repro of this. We're now tracking this in #9962. Thanks for the help!

/dup #9962

@zadjii-msft commented on GitHub (Apr 26, 2021): We've managed to track down a minimal repro of this. We're now tracking this in #9962. Thanks for the help! /dup #9962
Author
Owner

@ghost commented on GitHub (Apr 26, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 26, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13606