Delete auto login task
This commit is contained in:
parent
0317031d9a
commit
821db151cb
1 changed files with 1 additions and 0 deletions
|
@ -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();",
|
||||||
|
|
Loading…
Reference in a new issue