From e927f6b438c559b967eb972da1293d0eec8190e2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 8 Dec 2023 15:36:43 +0100 Subject: [PATCH] Fix incorrect command line arguments --- Autounattend.template.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;