Fix incorrect code statement
This commit is contained in:
parent
412b23cfc2
commit
20d58b32d1
1 changed files with 1 additions and 1 deletions
|
@ -53,5 +53,5 @@ function Enable-UACNextLogin() {
|
|||
$trigger = New-ScheduledTaskTrigger -AtLogOn;
|
||||
$principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -RunLevel Highest;
|
||||
$task = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger;
|
||||
Register-ScheduledTask $taskName $task;
|
||||
Register-ScheduledTask $taskName -InputObject $task;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue