Skip to content

Commit c21928e

Browse files
authored
Fix upgrade instructions (#11887)
1 parent c26f99d commit c21928e

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

reference/docs-conceptual/install/Installing-PowerShell-on-Windows.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Information about installing PowerShell on Windows
3-
ms.date: 01/27/2025
3+
ms.date: 03/13/2025
44
title: Installing PowerShell on Windows
55
---
66
# Installing PowerShell on Windows
@@ -240,19 +240,15 @@ If you installed via the MSI package, that information also appears in the
240240
To determine whether PowerShell may be upgraded with WinGet, run the following command:
241241

242242
```powershell
243-
winget list --name PowerShell --upgrade-available
243+
winget list --id Microsoft.PowerShell --upgrade-available
244244
```
245245

246-
If there is an available upgrade, the output indicates the latest available version.
246+
If there is an available upgrade, the output indicates the latest available version. Use the
247+
following command to upgrade PowerShell using WinGet:
247248

248-
> [!NOTE]
249-
> When upgrading, PowerShell won't upgrade from an LTS version to a non-LTS version. It only
250-
> upgrades to the latest version of LTS, for example, from 7.4.3 to 7.4.7. To upgrade from an
251-
> LTS release to a newer stable version or the next LTS, you need to install the new version with
252-
> the MSI for that release.
253-
>
254-
> When the installed version isn't an LTS version, PowerShell upgrades to the latest stable
255-
> version.
249+
```powershell
250+
winget upgrade --id Microsoft.PowerShell
251+
```
256252

257253
## Deploying on Windows 10 IoT Enterprise
258254

0 commit comments

Comments
 (0)