From 821db151cb14be0b2b4e2df708d8769e5fe15481 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 30 Jun 2023 11:58:16 +0200 Subject: [PATCH] Delete auto login task --- scripts/Windows/OS/User.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index 9c066405..02b59d51 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -107,6 +107,7 @@ function Enable-UACNextLogin([Context] $context) { "PortValhalla UAC Disabler", @( "Set-ItemProperty '$($key.PSPath)' -Name 'EnableLUA' -Value 0 -Type DWord;", + "Unregister-ScheduledTask -Confirm:`$false '$autoLoginName';", "Unregister-ScheduledTask -Confirm:`$false '$uacDisablerName';", ". '$PSScriptRoot/../Scripts/Context.ps1';", "`$context = [Context]::new();",