Skip to content

Commit

Permalink
Small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
willemdh authored Jun 13, 2019
1 parent 0f16153 commit b153475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_ms_win_tasks.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Script name: check_ms_win_tasks.ps1
# Version: v7.04.190321
# Version: v7.05.190623
# Created on: 01/02/2014
# Author: Willem D'Haese
# Purpose: Checks Microsoft Windows enabled scheduled tasks excluding defined folders and task patterns, returning state of tasks
Expand Down Expand Up @@ -434,7 +434,7 @@ Function Search-Tasks {
foreach ($Author in $Struct.InclAuthors) {
$newTasks += $Tasks | ? {([xml]($_.xml)).Task.RegistrationInfo.Author -like $Author}
}
$Tasks = $NewTasks | Select -Unique
$Tasks = $NewTasks | Select * -Unique
}
$Tasks | Select-TaskInfo
}
Expand Down

0 comments on commit b153475

Please sign in to comment.