diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index 7ec16c63..9c066405 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -82,6 +82,8 @@ function Set-UACState([bool] $value) { function Enable-UACNextLogin([Context] $context) { Set-UACState $true; $tempTask = "PortValhalla Temp"; + $autoLoginName = "PortValhalla AutoLogin Setup"; + $uacDisablerName = "PortValhalla UAC Disabler"; $autoLoginTrigger = Get-Random -Maximum 65535; $uacDisablerTrigger = Get-Random -Maximum 65535; @@ -92,7 +94,7 @@ function Enable-UACNextLogin([Context] $context) { $optionCollection = [System.Tuple[int, string, string[]][]]@( [System.Tuple]::Create( $autoLoginTrigger, - "PortValhalla AutoLogin Setup", + $autoLoginName, @( ". '$PSScriptRoot/../Scripts/Context.ps1';", "`$context = [Context]::new();",