diff --git a/scripts/Windows/OS/Setup.ps1 b/scripts/Windows/OS/Setup.ps1 index 422e6dcd..2cadfc1a 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; }