From 5b0c8b8a93e3067f499abac7ad34ea52f05d5a2a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 13 Jun 2023 00:50:10 +0200 Subject: [PATCH] Add components for running setup script --- Autounattend.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Autounattend.xml b/Autounattend.xml index 5926f0c..c538ff5 100644 --- a/Autounattend.xml +++ b/Autounattend.xml @@ -232,7 +232,18 @@ Notes: 5 false - powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'));" + powershell -c + Set-ExecutionPolicy Bypass -Scope Process -Force; + [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; + + choco install -y git --params='/WindowsTerminalProfile /DefaultBranchName:main'; + choco install -y powershell-core --install-arguments='"ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1"'; + refreshenv; + cd $env:USERPROFILE/Documents; + git clone https://git.nuth.ch/manuth/PortValhalla.git; W. Europe Standard Time