Remove duplicate action declaration.

This commit is contained in:
Michael Perzel 2015-09-08 14:45:21 -05:00 committed by Matt Clay
parent 6f752a871b
commit 9fd59bde6d

View file

@ -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"