foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:29:16Z
This commit is contained in:
@ -46,6 +46,7 @@ try {
|
||||
$currentAction = $existingTask.Actions[0]
|
||||
|
||||
# Check Trigger
|
||||
Write-Host "Checking trigger..."
|
||||
$triggerMatches = $false
|
||||
if ($currentTrigger -is [Microsoft.Management.Infrastructure.CimInstance] `
|
||||
-and $currentTrigger.RepetitionInterval.TotalMinutes -eq $trigger.RepetitionInterval.TotalMinutes) {
|
||||
@ -53,6 +54,7 @@ try {
|
||||
}
|
||||
|
||||
# Check Action
|
||||
Write-Host "Checking action..."
|
||||
$actionMatches = $false
|
||||
if ($currentAction -is [Microsoft.Management.Infrastructure.CimInstance] `
|
||||
-and $currentAction.Execute -eq $taskExecute `
|
||||
|
||||
Reference in New Issue
Block a user