foam_sync.ps1 (LIFEBALANCE) 2025-06-19T19:15:33Z

This commit is contained in:
Ben Miller
2025-06-19 19:15:33 -06:00
parent 295f33964a
commit ec0ca106d6

View File

@ -76,10 +76,8 @@ try {
Write-Host "Checking action..." Write-Host "Checking action..."
$actionMatches = $false $actionMatches = $false
if ($currentAction -is [Microsoft.Management.Infrastructure.CimInstance] ` if ($currentAction -is [Microsoft.Management.Infrastructure.CimInstance] `
-and $currentAction.PSObject.Properties['Execute'] `
-and $currentAction.Execute -eq $taskExecute ` -and $currentAction.Execute -eq $taskExecute `
-and $currentAction.PSObject.Properties['Argument'] ` -and $currentAction.Arguments -eq $taskArguments) {
-and $currentAction.Argument -eq $taskArguments) {
$actionMatches = $true $actionMatches = $true
} }