Skip to content

Commit 7a7fc2d

Browse files
committed
added user-friendly installation instructions
1 parent a9898a6 commit 7a7fc2d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ documentation for the latest release is published on on learn.microsoft.com.
6666
## Installation
6767

6868
To install **PSScriptAnalyzer** from the PowerShell Gallery, see
69-
[Installing PSScriptAnalyzer](https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/overview#installing-psscriptanalyzer).
69+
[Installing PSScriptAnalyzer](https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/overview#installing-psscriptanalyzer) or simply open PowerShell in a Terminal and run:
70+
71+
```powershell
72+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
73+
Install-Module -Name PSScriptAnalyzer
74+
```
7075

7176
To install **PSScriptAnalyzer** from source code:
7277

0 commit comments

Comments
 (0)