Delete auto login task

This commit is contained in:
Manuel Thalmann 2023-06-30 11:58:16 +02:00
parent 0317031d9a
commit 821db151cb

View file

@ -107,6 +107,7 @@ function Enable-UACNextLogin([Context] $context) {
"PortValhalla UAC Disabler", "PortValhalla UAC Disabler",
@( @(
"Set-ItemProperty '$($key.PSPath)' -Name 'EnableLUA' -Value 0 -Type DWord;", "Set-ItemProperty '$($key.PSPath)' -Name 'EnableLUA' -Value 0 -Type DWord;",
"Unregister-ScheduledTask -Confirm:`$false '$autoLoginName';",
"Unregister-ScheduledTask -Confirm:`$false '$uacDisablerName';", "Unregister-ScheduledTask -Confirm:`$false '$uacDisablerName';",
". '$PSScriptRoot/../Scripts/Context.ps1';", ". '$PSScriptRoot/../Scripts/Context.ps1';",
"`$context = [Context]::new();", "`$context = [Context]::new();",