From fe9d48e77824c1785e1ac6de84bfa69b4f3d4ba5 Mon Sep 17 00:00:00 2001 From: "Mikey Lombardi (He/Him)" Date: Fri, 15 Nov 2024 11:13:36 -0600 Subject: [PATCH] (GH-11534) Separate codeblocks for installing with WinGet by ID (#11535) 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 --- .../install/Installing-PowerShell-on-Windows.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reference/docs-conceptual/install/Installing-PowerShell-on-Windows.md b/reference/docs-conceptual/install/Installing-PowerShell-on-Windows.md index 15ec08230717..ae1fe32d2e84 100644 --- a/reference/docs-conceptual/install/Installing-PowerShell-on-Windows.md +++ b/reference/docs-conceptual/install/Installing-PowerShell-on-Windows.md @@ -63,6 +63,9 @@ Install PowerShell or PowerShell Preview using the `id` parameter ```powershell winget install --id Microsoft.PowerShell --source winget +``` + +```powershell winget install --id Microsoft.PowerShell.Preview --source winget ```