Relocate windows installation partition
This commit is contained in:
parent
e8a6492566
commit
12500b1993
2 changed files with 42 additions and 0 deletions
scripts/Windows/OS
|
@ -31,6 +31,10 @@ $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 '$env:SETUP_SCRIPT_NAME';";
|
||||
|
||||
if ($Global:SetupConfigPostprocessor) {
|
||||
$Global:SetupConfigPostprocessorpartitionCreations.Invoke($unattendedConfig, $namespace);
|
||||
}
|
||||
|
||||
$unattendedConfig.PreserveWhitespace = $true;
|
||||
$unattendedConfig.Save("$drive\Autounattend.xml");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue