From b1534756e0c47f50b62cb86e9958b8acb3572acc Mon Sep 17 00:00:00 2001 From: Willem D'Haese Date: Thu, 13 Jun 2019 12:30:44 +0200 Subject: [PATCH] Small bugfix --- check_ms_win_tasks.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_ms_win_tasks.ps1 b/check_ms_win_tasks.ps1 index 176bf58..ee9bad2 100644 --- a/check_ms_win_tasks.ps1 +++ b/check_ms_win_tasks.ps1 @@ -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 @@ -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 }