foam_sync.ps1 (LIFEBALANCE) 2025-06-19T19:13:45Z
This commit is contained in:
@ -64,9 +64,7 @@ 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 $currentTrigger.PSObject.Properties['RepetitionInterval'] `
|
-and $currentTrigger.Repetition.Interval.TotalMinutes -eq $trigger.Repetition.Interval.TotalMinutes) {
|
||||||
-and $currentTrigger.RepetitionInterval.PSObject.Properties['TotalMinutes'] `
|
|
||||||
-and $currentTrigger.RepetitionInterval.TotalMinutes -eq $trigger.RepetitionInterval.TotalMinutes) {
|
|
||||||
$triggerMatches = $true
|
$triggerMatches = $true
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user