Fix incorrect XPaths
This commit is contained in:
parent
97380e57d3
commit
e03d0c6630
1 changed files with 2 additions and 2 deletions
|
@ -208,8 +208,8 @@ function Start-Setup {
|
|||
$oobeSettings = (Get-Component (Get-PassSettings "oobeSystem") "Microsoft-Windows-Shell-Setup");
|
||||
|
||||
foreach ($xpath in @("./ua:AutoLogon/ua:Username",
|
||||
"./ua:UserAccounts/ua:LocalAccounts/ua:LocalAccount/Name",
|
||||
"./ua:UserAccounts/ua:LocalAccounts/ua:LocalAccount/DisplayName")) {
|
||||
"./ua:UserAccounts/ua:LocalAccounts/ua:LocalAccount/ua:Name",
|
||||
"./ua:UserAccounts/ua:LocalAccounts/ua:LocalAccount/ua:DisplayName")) {
|
||||
$oobeSettings.SelectSingleNode($xpath, $namespace).InnerText = $valhallaConfig.setupUser;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue