diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index edd5d1de..be9c974d 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -92,7 +92,7 @@ function Enable-UACNextLogin([Context] $context) { @( "-c", "Set-ItemProperty '$($key.PSPath)' -Name 'EnableLUA' -Value 0;", - "Unregister-ScheduledTask -Force '$uacDisablerName';", + "Unregister-ScheduledTask -Confirm:`$false '$uacDisablerName';", ". '$PSScriptRoot/../Scripts/Context.ps1';", "`$context = [Context]::new();", "`$context.EntryPoint = '$($context.EntryPoint)';",