From 1d2c7af6fcdaf8bd76b3bf54b7a2f29c8ca04011 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 19 Jun 2025 18:53:38 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-19T18:53:38Z --- foam_sync.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 5cb8051..0d929b3 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -59,7 +59,9 @@ try { Write-Host "Checking action..." $actionMatches = $false if ($currentAction -is [Microsoft.Management.Infrastructure.CimInstance] ` + -and $currentAction.PSObject.Properties['Execute'] ` -and $currentAction.Execute -eq $taskExecute ` + -and $currentAction.PSObject.Properties['Argument'] ` -and $currentAction.Argument -eq $taskArguments) { $actionMatches = $true }