Remove duplicate action declaration.
This commit is contained in:
parent
a7675e6621
commit
123a2b25ed
1 changed files with 0 additions and 1 deletions
|
@ -155,7 +155,6 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ($state -eq "present") -and ($exists -eq $false) ){
|
if ( ($state -eq "present") -and ($exists -eq $false) ){
|
||||||
$action = New-ScheduledTaskAction -Execute $execute
|
|
||||||
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName $name -Description $description -TaskPath $path -Settings $settings -Principal $principal
|
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName $name -Description $description -TaskPath $path -Settings $settings -Principal $principal
|
||||||
$task = Get-ScheduledTask -TaskName $name
|
$task = Get-ScheduledTask -TaskName $name
|
||||||
Set-Attr $result "msg" "Added new task $name"
|
Set-Attr $result "msg" "Added new task $name"
|
||||||
|
|
Loading…
Reference in a new issue