How to set PowerShell 7 as default and remove other versions
Solution 1:
Follow these steps:
- Click on the down arrow and press settings
- A json file will open, and you will see a line near the top that has a parameter called defaultProfile with a UUID.
- Also you will see a line representing the UUID of the PowerShell 7.0
- Copy that UUID and put it in for defaultProfile
Good Luck!
Source:
https://www.codyhosterman.com/2020/05/defaulting-windows-terminal-to-powershell-7-x-core/