Skip to content

Release 2.2.4 - fix scheduled-task install and credential prompt#31

Merged
luigilink merged 3 commits into
mainfrom
release/2.2.4
Jun 29, 2026
Merged

Release 2.2.4 - fix scheduled-task install and credential prompt#31
luigilink merged 3 commits into
mainfrom
release/2.2.4

Conversation

@luigilink

@luigilink luigilink commented Jun 29, 2026

Copy link
Copy Markdown
Owner

This release fixes the following issues:

Fixed

  • Add-SPSSheduledTask registers in create-or-update mode (logon 6) + throws on failure.
  • Export Get-SPSSecret/Set-SPSSecret so the DPAPI credential resolves; no prompt.
  • -Install/-Uninstall write SPSWeather Event Log (1003/1002) + explicit success line.

Added

  • Optional -Description on Add-SPSSheduledTask.

Pester 168/0 (1 skip Win-only), PSSA 0.

Add-SPSSheduledTask no longer skips when the task exists; it registers
in create-or-update mode (logon type 6) and throws on failure instead of
swallowing it. -Install/-Uninstall now write SPSWeather Event Log entries
and print an explicit outcome. Adds optional -Description and tests.

Fixes #30
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

Pester Test Results

  1 files   14 suites   3s ⏱️
 56 tests  56 ✅ 0 💤 0 ❌
169 runs  169 ✅ 0 💤 0 ❌

Results for commit f1a15ce.

♻️ This comment has been updated with latest results.

…nds the credential

The entry script and readiness call Get-SPSSecret/Set-SPSSecret directly,
but they were Private (not exported), so the run could not resolve the
DPAPI-stored credential and fell back to an interactive prompt. Move both
to Public, declare in FunctionsToExport, and simplify the readiness check.

Fixes #32
@luigilink luigilink added the bug Something isn't working label Jun 29, 2026
@luigilink luigilink changed the title Release 2.2.4 - fix scheduled-task install Release 2.2.4 - fix scheduled-task install and credential prompt Jun 29, 2026
@luigilink luigilink merged commit 9b68d7e into main Jun 29, 2026
3 checks passed
@luigilink luigilink deleted the release/2.2.4 branch June 29, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant