Skip to content

Get-DbaCmObject - Apply CimOperationTimeout to all CIM connections#10252

Merged
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-6498-20260317-0740
Mar 18, 2026
Merged

Get-DbaCmObject - Apply CimOperationTimeout to all CIM connections#10252
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-6498-20260317-0740

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Ensures CimWinRMOptions and CimDCOMOptions are initialized with the ComputerManagement.CimOperationTimeout config value (default: 60s) whenever Get-DbaCmObject retrieves a connection, not only when New-DbaCmConnection or Set-DbaCmConnection are explicitly called. This prevents indefinite hangs when querying servers with hung or corrupted WMI.

Fixes #6498

Generated with Claude Code

…ions

Ensures CimWinRMOptions and CimDCOMOptions are initialized with the
ComputerManagement.CimOperationTimeout config value (default: 60s) whenever
Get-DbaCmObject retrieves a connection, not only when New-DbaCmConnection or
Set-DbaCmConnection are explicitly called. This prevents indefinite hangs when
querying servers with hung or corrupted WMI.

Fixes #6498

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee
Copy link
Copy Markdown
Member

Hell yeah 👍🏼 solid change thank you

@potatoqualitee potatoqualitee merged commit a0ab78a into development Mar 18, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-6498-20260317-0740 branch March 18, 2026 22:59
potatoqualitee added a commit that referenced this pull request Apr 10, 2026
…mConnection (review of #10252)

Co-authored-by: Copilot <223556219+Copilot@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.

Add OperationTimeout configuration for CIM

2 participants