powershell 7.3 - Set it as Default


gnulab

Well-known member
Local time
9:13 AM
Posts
38
OS
Windows 11
Hi,

I have upgraded my powershell to 7.3 using this method:

winget install --id Microsoft.Powershell --source winget

from within powershell.

My question is, how do I make it as a default powershell when I launch it via Win + X, or Start -> Powershell

Launching it via Win + X, $PSVersionTable still says

Code:
Name                           Value

----                           -----

PSVersion                      5.1.22000.832

PSEdition                      Desktop

PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}

BuildVersion                   10.0.22000.832

CLRVersion                     4.0.30319.42000

WSManStackVersion              3.0

PSRemotingProtocolVersion      2.3

SerializationVersion           1.1.0.1


The setting at
System -> Privacy & Security -> For Developers -> Choose the default terminal app = Windows Terminal (1.15.2875)


Thank you.
 
Windows Build/Version
21H2/2200.1219

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    CPU
    AMD Ryzen AI 7 350 w/ Radeon 860M
    Motherboard
    LENOVO LNVNB161216
    Memory
    32.00 GB
    Graphics Card(s)
    32.00 GB
    Sound Card
    AMD Audio Device
    Screen Resolution
    2880 x 1800 x 32 bits (4294967296 colors) @ 60 Hz
    Hard Drives
    WD PC SN7100S SDFPMSL-1T00-1101 1TB
I have done some looking and it does not seem straight forward. I did find an article from Microsoft and it looks like they provide the necessary information needed to be set in terminal to be able to set that default.


Look at specifically Using Powershell 7 side-by-side with Windows Powershell 5.1.
 

My Computer

System One

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Alienware M15 Ryzen Edition
    CPU
    AMD Ryzen 9 5900HX
    Memory
    16 GB DDR4
    Graphics Card(s)
    Nvidia RTX 3070
    Hard Drives
    1TB SSD
    Browser
    Edge
    Antivirus
    Defender
Probably via IFEO? Something like this:
Code:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\powershell.exe" /v "Debugger" /t REG_SZ /d "C:\Program Files\WindowsApps\Microsoft.PowerShell_7.3.0.0_x64__8wekyb3d8bbwe\pwsh.exe" /f

Replacing right click Start menu is as simple as replacing the shortcut:
Code:
%AppData%\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk

P.S. To start it from Run - pwsh
 

My Computer

System One

  • OS
    Home26H2Can
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 8600G (07/24)
    Motherboard
    ASROCK B650M-HDV/M.2 (07/24) BIOS 4.21 AGESA ComboAM5 1.3.0.1 (04/26)
    Memory
    2x32GB Kingston FURY DDR5 5600 MHz CL36 @5200 CL36 (07/24)
    Graphics Card(s)
    ASROCK Radeon RX 6600 Challenger D 8G @48FPS (08/24)
    Sound Card
    Creative Sound BlasterX AE-5 Plus (05/24)
    Monitor(s) Displays
    24" Philips 24M1N3200ZS/00 (05/24)
    Screen Resolution
    1920×1080@165Hz via DP1.4
    Hard Drives
    Kingston KC3000 NVMe 2TB (05/24)
    ADATA XPG GAMMIX S11 Pro 512GB (07/19)
    PSU
    Seasonic Core GM 550 Gold (04/24)
    Case
    Fractal Design Define 7 Mini with 3x Noctua NF-P14s/12@555rpm (04/24)
    Cooling
    Noctua NH-U12S with Noctua NF-P12 (04/24)
    Keyboard
    HP Pavilion Wired Keyboard 300 (07/24) + Rabalux 76017 Parker (01/24)
    Mouse
    Logitech M330 Silent Plus (01/26)
    Internet Speed
    500/100 Mbps via RouterOS (05/21) & TCP Optimizer
    Browser
    Edge, Brave for YouTube, LibreWolf for FB
    Antivirus
    NextDNS blocking 1/3 Traffic
    Other Info
    Phone: Motorola Moto G86 (02/26)
    Backup: Hasleo Backup Suite (PreOS)
    Headphones: Sennheiser RS170 (09/10)
    Chair: Huzaro Force 4.4 Grey Mesh (05/24)
    Notifier: Xiaomi Mi Band 9 Milanese (10/24)
    FlexCore USB-C 3.2 Gen 1 (M) to LAN (F) (08/25)
Few days back before I upgraded the powershell on my laptop, I had successfully did it on my another laptop. Now I can't remember the steps to replicate it.

Grrr.....
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    CPU
    AMD Ryzen AI 7 350 w/ Radeon 860M
    Motherboard
    LENOVO LNVNB161216
    Memory
    32.00 GB
    Graphics Card(s)
    32.00 GB
    Sound Card
    AMD Audio Device
    Screen Resolution
    2880 x 1800 x 32 bits (4294967296 colors) @ 60 Hz
    Hard Drives
    WD PC SN7100S SDFPMSL-1T00-1101 1TB
Have you tried the Settings in Terminal ?pwsh.PNG
 

My Computer

System One

  • OS
    Win 11 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    Intel iGPU
    Sound Card
    Realtek
    Hard Drives
    Samsung
    PSU
    Corsair
    Cooling
    Fans
Have you tried the Settings in Terminal ?View attachment 45146
this is the setting that eludes me.

This setting is available at PowerShell.

Open your powershell (old version) -> click on the arrow down button -> Settings -> Startup -> Default profile -> choose PowerShell 7.3.0 icon


Thank you!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    CPU
    AMD Ryzen AI 7 350 w/ Radeon 860M
    Motherboard
    LENOVO LNVNB161216
    Memory
    32.00 GB
    Graphics Card(s)
    32.00 GB
    Sound Card
    AMD Audio Device
    Screen Resolution
    2880 x 1800 x 32 bits (4294967296 colors) @ 60 Hz
    Hard Drives
    WD PC SN7100S SDFPMSL-1T00-1101 1TB
Back
Top Bottom