Skip to content

Save-DbaKbUpdate - Add UseWebRequest switch and BitsTransfer fallback#10278

Open
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-9065-20260321-0950
Open

Save-DbaKbUpdate - Add UseWebRequest switch and BitsTransfer fallback#10278
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-9065-20260321-0950

Conversation

@andreasjordan
Copy link
Collaborator

Add -UseWebRequest switch to force Invoke-WebRequest instead of Start-BitsTransfer, and add try/catch fallback so BitsTransfer failures in non-interactive sessions (scheduled tasks, SQL Agent jobs) automatically fall back to Invoke-WebRequest.

Fixes #9065

Generated with Claude Code

Add -UseWebRequest switch to force Invoke-WebRequest instead of
Start-BitsTransfer. Also add try/catch around Start-BitsTransfer so it
automatically falls back to Invoke-WebRequest when BitsTransfer fails
(e.g., in scheduled tasks or SQL Agent jobs where no user is logged in).

Fixes #9065

(do Save-DbaKbUpdate)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not schedule Save-DbaKBUpdate due to Start-BitsTransfer dependency on logged in user

1 participant