From 295f33964a4180f3ecbd92c97e6fdf6904ac058d Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 19 Jun 2025 19:13:45 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-19T19:13:45Z --- foam_sync.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 65f8f51..3dae011 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -64,9 +64,7 @@ try { Write-Host "Checking trigger..." $triggerMatches = $false if ($currentTrigger -is [Microsoft.Management.Infrastructure.CimInstance] ` - -and $currentTrigger.PSObject.Properties['RepetitionInterval'] ` - -and $currentTrigger.RepetitionInterval.PSObject.Properties['TotalMinutes'] ` - -and $currentTrigger.RepetitionInterval.TotalMinutes -eq $trigger.RepetitionInterval.TotalMinutes) { + -and $currentTrigger.Repetition.Interval.TotalMinutes -eq $trigger.Repetition.Interval.TotalMinutes) { $triggerMatches = $true } else {