Skip to content

Commit

Permalink
Minor update to the script
Browse files Browse the repository at this point in the history
Added Set-ExecutionPolicy Bypass -Scope Process again to the script that allows it to run using invoke-expression command when run from GitHub repository itself. It only changes execution policy for the current PowerShell process and has no permanent effect. Read more about it here: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.3#-scope
  • Loading branch information
HotCakeX committed Apr 25, 2023
1 parent 2e457a8 commit 728f59e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Harden-Windows-Security.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ https://1drv.ms/x/s!AtCaUNAJbbvIhuVQhdMu_Hts7YZ_lA?e=df6H6P
Check out GitHub page for security recommendations: https://github.com/HotCakeX/Harden-Windows-Security
#>

Set-ExecutionPolicy Bypass -Scope Process

#region Functions
# Questions function
function Select-Option {
Expand Down

0 comments on commit 728f59e

Please sign in to comment.