foam_sync.ps1 (LIFEBALANCE) 2025-06-19T13:46:42Z

This commit is contained in:
Ben Miller
2025-06-19 13:46:42 -06:00
parent 7e46c2704e
commit 7ab7008eb8

View File

@ -80,7 +80,7 @@ try {
} }
else { else {
Write-Host "Scheduled task '$taskName' configuration differs." Write-Host "Scheduled task '$taskName' configuration differs."
Write-Host "`$triggerMatches: $triggerMatches, $actionMatches: $actionMatches, $principalMatches: $principalMatches, $settingsMatch: $settingsMatch`" Write-Host "`$triggerMatches: $triggerMatches, `$actionMatches: $actionMatches, `$principalMatches: $principalMatches, `$settingsMatch: $settingsMatch"
Write-Host "Attempting to update in-place..." Write-Host "Attempting to update in-place..."
try { try {
Set-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -Settings $settings -Principal $taskPrincipal -ErrorAction Stop Set-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -Settings $settings -Principal $taskPrincipal -ErrorAction Stop