Fix non-functioning scheduled task

This commit is contained in:
Manuel Thalmann 2023-06-29 02:54:31 +02:00
parent dfb723412a
commit 77f8a1a03f

View file

@ -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)';",