From ec0ca106d660f799fa7a199a3668bbee9379cbc1 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 19 Jun 2025 19:15:33 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-19T19:15:33Z --- foam_sync.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 3dae011..efe2287 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -76,10 +76,8 @@ 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) { + -and $currentAction.Arguments -eq $taskArguments) { $actionMatches = $true }