From c88c6fbfce6b569c3f3fc4b93bf3bf7a4c5ca7ef Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 29 Jun 2023 02:54:31 +0200 Subject: [PATCH] Fix non-functioning scheduled task --- scripts/Windows/OS/User.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)';",