From eadbde8e2edb07c96ff7d7b6072f707944362681 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Fri, 30 Jun 2023 04:36:28 +0200
Subject: [PATCH] Fix typo

---
 scripts/Windows/OS/User.ps1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1
index ff8c5458..79d10f92 100644
--- a/scripts/Windows/OS/User.ps1
+++ b/scripts/Windows/OS/User.ps1
@@ -147,6 +147,6 @@ function Enable-PersonalUserAutologon([Context] $context)
     }
 
     $context.Set($preparedUsernameProperty, $context.UserName, "ExpandString");
-    $context.Set($preparedUsernameProperty, $password, "ExpandString");
+    $context.Set($preparedPasswordProperty, $password, "ExpandString");
     Write-EventLog -LogName Application -Source "Application" -EventId $context.Get($autoLoginTriggerProperty) -Message "This event was created by $env:Username";
 }