diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index 3cc75303..64689800 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -1,5 +1,4 @@ . "$PSScriptRoot/../Scripts/Context.ps1"; -$uacDisablerName = "PortValhalla UAC Disabler"; $taskTrigger = 1337; function New-PersonalUser([Context] $context) @@ -76,6 +75,7 @@ function Set-UACState([bool] $value) { function Enable-UACNextLogin([Context] $context) { Set-UACState $true; $tempTask = "PortValhalla Temp"; + $uacDisablerName = "PortValhalla UAC Disabler"; $key = Get-SystemPolicyKey; $action = New-ScheduledTaskAction -Execute "pwsh.exe" -Argument (