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