Skip to content

Add OperationTimeout configuration for CIM #6498

@ACALVETT

Description

@ACALVETT

Summary of new feature

  • If the default CIM timeout on a server is set to indefinite when get-dbaCmObject queries a server that is hung or has a corrupted WMI then get-dbaCmObject never completes. To overcome the problem "OperationTimeoutSec" could be introduced as a dbaToolsConfig setting in the computer management section and then applied to CIM connection to prevent the hang.

Proposed technical details (if applicable)

How to avoid wmi query hangs in Powershell

Thread where i discussed issue in slack

Latest version of dbatools as of writing

  • 1.0.107

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurepending team feedbackWaiting for feedback from other maintainers/contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions