Skip to content

Commit 9f2c9cc

Browse files
(GH-11534) Separate codeblocks for installing with WinGet by ID
Prior to this change, the article for installing PowerShell on Windows used a single codeblock to show readers how to install PowerShell and PowerShell preview with WinGet by ID. On the webpage, this results in a single codeblock with a copy button. If a reader uses the copy button and pastes the copied code into their terminal, both commands will run. If a user wanted to install only one edition, they need to edit the copied code to remove the line they don't want. This change: - Separates the codeblocks for installing PowerShell with WinGet and specifying the ID parameter for PowerShell and PowerShell preview, so that readers may copy either codeblock and paste into their terminal instead of copying both. - Fixes #11534 - Fixes AB#343802
1 parent 301dc84 commit 9f2c9cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ Install PowerShell or PowerShell Preview using the `id` parameter
6363

6464
```powershell
6565
winget install --id Microsoft.PowerShell --source winget
66+
```
67+
68+
```powershell
6669
winget install --id Microsoft.PowerShell.Preview --source winget
6770
```
6871

0 commit comments

Comments
 (0)