Fix incorrect order of commands
This commit is contained in:
parent
d96a1bf913
commit
98dfa910be
1 changed files with 2 additions and 2 deletions
|
@ -110,10 +110,10 @@ function Enable-UACNextLogin([Context] $context) {
|
||||||
"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 '$autoLoginName';",
|
||||||
"Unregister-ScheduledTask -Confirm:`$false '$uacDisablerName';",
|
"Unregister-ScheduledTask -Confirm:`$false '$uacDisablerName';",
|
||||||
"`$context.Remove('$autoLoginTriggerProperty');",
|
|
||||||
"`$context.Remove('$uacDisablerTriggerProperty');",
|
|
||||||
". '$PSScriptRoot/../Scripts/Context.ps1';",
|
". '$PSScriptRoot/../Scripts/Context.ps1';",
|
||||||
"`$context = [Context]::new();",
|
"`$context = [Context]::new();",
|
||||||
|
"`$context.Remove('$autoLoginTriggerProperty');",
|
||||||
|
"`$context.Remove('$uacDisablerTriggerProperty');",
|
||||||
"`$context.DeregisterNewUserReboot();",
|
"`$context.DeregisterNewUserReboot();",
|
||||||
"Restart-Computer -Force;")));
|
"Restart-Computer -Force;")));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue