From e03d0c66300f1f9ebf00f695e997b7dd0a8f8210 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 6 Aug 2024 11:39:48 +0200 Subject: [PATCH] Fix incorrect XPaths --- scripts/Windows/OS/Setup.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/OS/Setup.ps1 b/scripts/Windows/OS/Setup.ps1 index 344d742d..7bf71dc4 100644 --- a/scripts/Windows/OS/Setup.ps1 +++ b/scripts/Windows/OS/Setup.ps1 @@ -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; }