From 123a2b25ed35fec0fd9028f27749df945313d838 Mon Sep 17 00:00:00 2001 From: Michael Perzel Date: Tue, 8 Sep 2015 14:45:21 -0500 Subject: [PATCH] Remove duplicate action declaration. --- windows/win_scheduled_task.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/windows/win_scheduled_task.ps1 b/windows/win_scheduled_task.ps1 index e6effebb7bd..b63bd130134 100644 --- a/windows/win_scheduled_task.ps1 +++ b/windows/win_scheduled_task.ps1 @@ -155,7 +155,6 @@ try { } 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 $task = Get-ScheduledTask -TaskName $name Set-Attr $result "msg" "Added new task $name"