From a8b25953d08b6b3047888fc1021cfba1669d0ee9 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 19 Jun 2025 18:52:19 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-19T18:52:19Z --- foam_sync.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index eece326..5cb8051 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -49,7 +49,8 @@ try { Write-Host "Checking trigger..." $triggerMatches = $false 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) { $triggerMatches = $true }