Change path of powershell scripts
This commit is contained in:
parent
ebcac5536d
commit
4fb085a782
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ $specializeSettings = Get-PassSettings "specialize";
|
||||||
$specializeSettings.SelectSingleNode("./ua:component[@name='Microsoft-Windows-Shell-Setup']/ua:ComputerName", $namespace).InnerText = "$env:WIN_COMPUTER_NAME";
|
$specializeSettings.SelectSingleNode("./ua:component[@name='Microsoft-Windows-Shell-Setup']/ua:ComputerName", $namespace).InnerText = "$env:WIN_COMPUTER_NAME";
|
||||||
|
|
||||||
$oobeSystemSettings = Get-PassSettings "oobeSystem";
|
$oobeSystemSettings = Get-PassSettings "oobeSystem";
|
||||||
$oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]/ua:CommandLine", $namespace).InnerText += "`npwsh 'PortValhalla/$env:SETUP_SCRIPT_NAME';";
|
$oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]/ua:CommandLine", $namespace).InnerText += "`npwsh '$env:SETUP_SCRIPT_NAME';";
|
||||||
|
|
||||||
$unattendedConfig.PreserveWhitespace = $true;
|
$unattendedConfig.PreserveWhitespace = $true;
|
||||||
$unattendedConfig.Save("$drive\Autounattend.xml");
|
$unattendedConfig.Save("$drive\Autounattend.xml");
|
||||||
|
|
Loading…
Reference in a new issue