foam_sync.ps1 (LIFEBALANCE) 2025-06-19T19:13:45Z
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user