Save windows config file after editing
This commit is contained in:
parent
7332049a76
commit
95e770f4c9
1 changed files with 2 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue