foam_sync.ps1 (LIFEBALANCE) 2025-06-19T18:52:19Z
This commit is contained in:
@ -49,7 +49,8 @@ try {
|
|||||||
Write-Host "Checking trigger..."
|
Write-Host "Checking trigger..."
|
||||||
$triggerMatches = $false
|
$triggerMatches = $false
|
||||||
if ($currentTrigger -is [Microsoft.Management.Infrastructure.CimInstance] `
|
if ($currentTrigger -is [Microsoft.Management.Infrastructure.CimInstance] `
|
||||||
-and $null -ne $currentTrigger.RepetitionInterval `
|
-and $currentTrigger.PSObject.Properties['RepetitionInterval'] `
|
||||||
|
-and $currentTrigger.RepetitionInterval.PSObject.Properties['TotalMinutes'] `
|
||||||
-and $currentTrigger.RepetitionInterval.TotalMinutes -eq $trigger.RepetitionInterval.TotalMinutes) {
|
-and $currentTrigger.RepetitionInterval.TotalMinutes -eq $trigger.RepetitionInterval.TotalMinutes) {
|
||||||
$triggerMatches = $true
|
$triggerMatches = $true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user