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 f09e56c commit b870e29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
#ПРОВЕРКА ПОЛИТИК
try {get-ExecutionPolicy | out-null}
catch {import-module -Name 'Microsoft.PowerShell.Security' -RequiredVersion 3.0.0.0}
if ((get-ExecutionPolicy) -ne 'bypass') {Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force}
get-ExecutionPolicy
pause
if ((get-ExecutionPolicy) -ne 'bypass') {
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
}

#ПРОВЕРКА WINGET
if ((Get-AppxPackage Microsoft.DesktopAppInstaller).Version -lt [System.Version]"1.21.2771.0") {
Expand Down

0 comments on commit b870e29

Please sign in to comment.