Skip to content

Commit 0a4f904

Browse files
Added Support for Automated Install
1 parent e1a9fb6 commit 0a4f904

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ You may download the required files from the [GitHub Repository](https://raw.git
3333

3434
**The script may be launched from the extracted GitHub download like this:**
3535

36+
## How to run the script
37+
### Manual Install:
38+
If manually downloaded, the script must be launched from an administrative powershell in the directory containing all the files from the [GitHub Repository](https://github.com/simeononsecurity/.NET-STIG-Script)
3639
```powershell
40+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
41+
Get-ChildItem -Recurse *.ps1 | Unblock-File
3742
.\sos-.net-4-stig.ps1
3843
```
44+
### Automated Install:
45+
Use this one-liner to automatically download, unzip all supporting files, and run the latest version of the script.
46+
```powershell
47+
iwr -useb 'https://simeononsecurity.ch/scripts/sosdotnet.ps1'|iex
48+
```

0 commit comments

Comments
 (0)