Skip to content

Remove Invoke-SmoCheck - no longer needed#10229

Open
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-10114-20260311-0757
Open

Remove Invoke-SmoCheck - no longer needed#10229
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-10114-20260311-0757

Conversation

@andreasjordan
Copy link
Collaborator

Removes the Invoke-SmoCheck private function and all call sites.

The SMO version check only fired once per session due to a script-scope flag, making it unreliable. It was only called from two migration commands and only issued warnings without blocking execution.

Closes #10114

Generated with Claude Code

The SMO version check function only fired once per session due to a
script-scope flag, making it unreliable. It was only called from two
migration commands (Copy-DbaAgentServer, Copy-DbaDatabase) and only
issued warnings without blocking execution. Modern environments
typically have up-to-date SMO, making this check unnecessary.

Removes private/functions/Invoke-SmoCheck.ps1 and all 4 call sites.

(do Copy-DbaAgentServer, Copy-DbaDatabase)

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.

Do we need Invoke-SmoCheck?

1 participant