diff --git a/Autounattend.template.xml b/Autounattend.template.xml index b068a19..3b540f7 100644 --- a/Autounattend.template.xml +++ b/Autounattend.template.xml @@ -213,14 +213,13 @@ 2 false - powershell -c "Set-ExecutionPolicy -Force Bypass" + powershell -Command "Set-ExecutionPolicy -Force Bypass" Allow PowerShell scripts from anywhere. 3 false - powershell -c -[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; + powershell -Command [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1;