Skip to content

Commit

Permalink
Update script.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
uffemcev authored Apr 18, 2024
1 parent 948c6b4 commit 9316b03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:

#ПРОВЕРКА ПОЛИТИК
if ((get-ExecutionPolicy) -ne 'bypass') {
write-host $PSHome
Get-Module

pause

if ($PSVersionTable.PSVersion.Major -gt 5) {import-module microsoft.powershell.security}
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
}
Expand Down

0 comments on commit 9316b03

Please sign in to comment.