Browse Source

Ignore errors when disabling scheduled tasks

close #135
pull/138/head
Alex Hirsch 7 years ago
parent
commit
e8670d9a98
  1. 2
      utils/disable-scheduled-tasks.ps1

2
utils/disable-scheduled-tasks.ps1

@ -203,5 +203,5 @@ foreach ($task in $tasks) {
$name = $parts[-1]
$path = $parts[0..($parts.length-2)] -join '\'
Disable-ScheduledTask -TaskName "$name" -TaskPath "$path"
Disable-ScheduledTask -TaskName "$name" -TaskPath "$path" -ErrorAction SilentlyContinue
}

Loading…
Cancel
Save