From 95e770f4c9814565591622b1931b080ab67cfb36 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 22 Jun 2023 16:17:02 +0200 Subject: [PATCH] Save windows config file after editing --- scripts/Windows/OS/Setup.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Windows/OS/Setup.ps1 b/scripts/Windows/OS/Setup.ps1 index ddc44224..23261bed 100644 --- a/scripts/Windows/OS/Setup.ps1 +++ b/scripts/Windows/OS/Setup.ps1 @@ -24,6 +24,8 @@ $specializeSettings.SelectSingleNode("./ua:component[@name='Microsoft-Windows-Sh $oobeSystemSettings = Get-PassSettings "oobeSystem"; $oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]/ua:CommandLine", $namespace).InnerText += "`npwsh 'PortValhalla/$env:SETUP_SCRIPT_NAME';"; +$unattendedConfig.Save("$drive\Autounattend.xml"); + Write-Warning "Attention: This program will completely wipe your current disk #1 and install Windows on it. Are you sure you want to do this?" Read-Host -Prompt "Hit enter to continue or CTRL+C to abort" & "$drive\setup.exe";