foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:29:16Z

This commit is contained in:
Ben Miller
2025-06-19 14:29:16 -06:00
parent 0c5101c77d
commit 030c7d0d92

View File

@ -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 `