powershell 7.3 - Set it as Default


gnulab

Active member
Local time
4:02 PM
Posts
36
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
    PC/Desktop
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
    Windows 11 Home
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 8600G (07/24)
    Motherboard
    ASROCK B650M-HDV/M.2 3.20 (07/24)
    Memory
    2x32GB Kingston FURY DDR5 5600 MHz CL36 @5200 CL40 (07/24)
    Graphics Card(s)
    ASROCK Radeon RX 6600 Challenger D 8G @60FPS (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 (04/23)
    Internet Speed
    500/100 Mbps via RouterOS (05/21) & TCP Optimizer
    Browser
    Edge & Brave for YouTube & LibreWolf for FB
    Antivirus
    NextDNS blocking 99% TLDs
    Other Info
    Backup: Hasleo Backup Suite (PreOS)
    Headphones: Sennheiser RS170 (09/10)
    Phone: Samsung Galaxy Xcover 7 (02/24)
    Chair: Huzaro Force 4.4 Grey Mesh (05/24)
    Notifier: Xiaomi Mi Band 9 Milanese (10/24)
    2nd Monitor: AOC G2460VQ6 @75Hz (02/19)
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
    PC/Desktop
Have you tried the Settings in Terminal ?pwsh.PNG
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700 (non-K)
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    On-board Intel iGPU
    Sound Card
    On-board Realtek
    Hard Drives
    Samsung_SSD_850_EVO
    PSU
    Corsair Rm850X
    Cooling
    All air
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
    PC/Desktop

Latest Support Threads

Back
Top Bottom