dataplat / dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer
https://dbatools.io
MIT License
2.47k stars 803 forks source link

Add OperationTimeout configuration for CIM #6498

Open ACALVETT opened 4 years ago

ACALVETT commented 4 years ago

Summary of new feature

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

github-actions[bot] commented 4 years ago

🚧🚨 This issue is being marked as stale due to 90 days of inactivity. If you would like this issue to remain open:

andreasjordan commented 3 years ago

@ClaudioESSilva Can you please have a look at this and suggest a name for the config parameter? @FriedrichWeinmann / @wsmelton / @jpomfret : I'm not a CIM or WMI expert, so please review this if you are. And have a look at the linked issue that was closed by the stale bot - Do we have an issue with having WMI as fallback of CIM?

andreasjordan commented 3 years ago

Hi @potatoqualitee - can you have a look? Thanks.

potatoqualitee commented 3 years ago

Sounds good. Should we add a sane default?

andreasjordan commented 3 years ago

I would take 60 seconds as the default.

andreasjordan commented 3 years ago

Does anyone know how to implement this?

andreasjordan commented 2 years ago

As I don't have an environment to test this and not enough knowlegde to implement it, I will step back and de-assign myself.