r/PowerShell • u/Cerrysnt • Nov 14 '25
How do I update PowerShell?
I need to install PowerShell version 7.5.4, but I don't know how. When I go to https://github.com/PowerShell/PowerShell/releases/tag/v7.5.4, I don't know which file to choose for Windows or how to install it. This hasn't happened to me before; it seems like something changed.
3
Upvotes
4
u/narcissisadmin Nov 15 '25
Literally type the title of this post into Google. JFC
7
u/NorCalFrances Nov 14 '25
https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5
Scroll down to, "Upgrading an existing installation"
If you have trouble, try a reinstall:
winget uninstall Microsoft.PowerShell
winget install Microsoft.PowerShell
10
u/jantari Nov 14 '25
winget upgrade Microsoft.PowerShell
12
u/JoeyBE98 Nov 14 '25
PowerShell-7.5.4-win-x64.msi
4
u/n0rd1c-syn Nov 15 '25
i remember i found this on a ms doc somewhere:
For best results when upgrading, you should use the same install method you used when you first installed PowerShell. If you aren't sure how PowerShell was installed, you can check the value of the $PSHOME variable. This always points to the directory containing PowerShell that the current session is running.
If the value is $HOME.dotnet\tools, PowerShell was installed with the .NET Global tool.
If the value is $Env:ProgramFiles\PowerShell\7, PowerShell was installed as an MSI package or with WinGet on a computer with an X86 or x64 processor.
If the value starts with $Env:ProgramFiles\WindowsApps, PowerShell was installed as a Microsoft Store package or with WinGet on computer with an ARM processor.
If the value is anything else, it's likely that PowerShell was installed as a ZIP package.
1
u/Cerrysnt Nov 14 '25
I had no idea you could get it directly from the Microsoft Store lol 😭😭, I was able to fix it by uninstalling the one I had and installing it from there
2
u/Calm_dude647 May 15 '26
winget install --id Microsoft.Powershell --source winget
2
u/Owlstorm Nov 14 '25
This is the no-fuss wintel one that isn't zipped -
PowerShell-7.5.4-win-x64.msi
1
u/orthodoxdd Nov 14 '25
You can use powershell as global dotnet tool as well It will make its management much easier
1
u/Sean_p87 Nov 15 '25
I usually manage it with winget.
1
u/Lucifer1166 May 02 '26
voici la commande a mettre dans powershell en ADMIN :
winget install --id Microsoft.Powershell --source winget1
u/SeriousToe71 Oct 19 '26
Install PowerShell 7 on Windows - PowerShell | Microsoft Learn
winget install --id Microsoft.PowerShell --source winget
-2
u/rencal_deriver Nov 14 '25
You might want to look into chocolatey, makes upgrading packages much easier.
'choco outdated' tells me what needs an upgrade,
'choco upgrade packagename -y' simply upgrades it.