foam_sync.ps1 (LIFEBALANCE) 2025-06-19T18:53:38Z
This commit is contained in:
@ -59,7 +59,9 @@ 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.Argument -eq $taskArguments) {
|
-and $currentAction.Argument -eq $taskArguments) {
|
||||||
$actionMatches = $true
|
$actionMatches = $true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user