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