From 7a7fc2daeaf7d141f940f27dedeb7b9cb7acd01a Mon Sep 17 00:00:00 2001 From: Adam Erickson Date: Thu, 13 Nov 2025 10:23:18 -0800 Subject: [PATCH 1/2] added user-friendly installation instructions --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d038ec756..65d666e85 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,12 @@ documentation for the latest release is published on on learn.microsoft.com. ## Installation To install **PSScriptAnalyzer** from the PowerShell Gallery, see -[Installing PSScriptAnalyzer](https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/overview#installing-psscriptanalyzer). +[Installing PSScriptAnalyzer](https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/overview#installing-psscriptanalyzer) or simply open PowerShell in a Terminal and run: + +```powershell +Set-PSRepository -Name PSGallery -InstallationPolicy Trusted +Install-Module -Name PSScriptAnalyzer +``` To install **PSScriptAnalyzer** from source code: From 4d0ce91e760f63e6d406265aa8ddd7fb74cbcf69 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Tue, 2 Dec 2025 21:58:18 +0000 Subject: [PATCH 2/2] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 65d666e85..24f2704ff 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,6 @@ To install **PSScriptAnalyzer** from the PowerShell Gallery, see [Installing PSScriptAnalyzer](https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/overview#installing-psscriptanalyzer) or simply open PowerShell in a Terminal and run: ```powershell -Set-PSRepository -Name PSGallery -InstallationPolicy Trusted Install-Module -Name PSScriptAnalyzer ```