diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index d57682b0..0612052b 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -47,7 +47,7 @@ function New-PersonalUser([Context] $context) } elseif ((Get-LocalUser $context.AdminName)) { - Enable-CurrentUserAutologon $context; + Enable-PersonalUserAutologon $context; Write-Information "Removing Admin Account"; Get-CimInstance -ClassName "Win32_UserProfile" -Filter "SID = $((Get-LocalUser $context.AdminName).SID)" | Remove-CimInstance; $context.RegisterReboot(); @@ -96,7 +96,7 @@ function Enable-UACNextLogin([Context] $context) { $null = Unregister-ScheduledTask -Confirm:$false $tempTask; } -function Enable-CurrentUserAutologon([Context] $context) +function Enable-PersonalUserAutologon([Context] $context) { Add-Type -assemblyname System.DirectoryServices.AccountManagement; Write-Information "Re-Enabling Autologin for Current User";