This commit is contained in:
Manuel Thalmann 2023-06-30 04:36:28 +02:00
parent 5d0b77035f
commit eadbde8e2e

View file

@ -147,6 +147,6 @@ function Enable-PersonalUserAutologon([Context] $context)
} }
$context.Set($preparedUsernameProperty, $context.UserName, "ExpandString"); $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"; Write-EventLog -LogName Application -Source "Application" -EventId $context.Get($autoLoginTriggerProperty) -Message "This event was created by $env:Username";
} }