Fix incorrect XPaths

This commit is contained in:
Manuel Thalmann 2024-08-06 11:39:48 +02:00
parent b11dc31403
commit 1f4e7a7720

View file

@ -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;
}