Rename misleading functions
This commit is contained in:
parent
5bbe1e3733
commit
d8d6386fe3
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue