From d8d6386fe333abd0ef3928dc81e29a4b3c114624 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 29 Jun 2023 19:05:22 +0200 Subject: [PATCH] Rename misleading functions --- scripts/Windows/OS/User.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";