Fix non-functioning scheduled task

This commit is contained in:
Manuel Thalmann 2023-06-29 02:54:31 +02:00
parent edd97b991f
commit c88c6fbfce

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