Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow WMIC queries #600

Open
OmgImAlexis opened this issue Oct 9, 2021 · 1 comment
Open

Slow WMIC queries #600

OmgImAlexis opened this issue Oct 9, 2021 · 1 comment

Comments

@OmgImAlexis
Copy link
Contributor

@sebhildebrandt have you looked into WBEM_FLAG_RETURN_IMMEDIATE and WBEM_FLAG_FORWARD_ONLY for speeding up WMIC commands?

https://docs.microsoft.com/en-us/windows/win32/wmisdk/improving-enumeration-performance?redirectedfrom=MSDN

@sebhildebrandt
Copy link
Owner

@OmgImAlexis thank you for pointing me to this! First research about that:

  • WBEM_FLAG_RETURN_IMMEDIATE seems to be enabled by default
  • WBEM_FLAG_FORWARD_ONLY is not enabled ...
    but at the moment unclear how to pass it into a powershell command ... current idea is to create a special function for that. Need make some experiments ... I anyway need to refactor mostly all WMIC calls ...

So as I am kind of offline for the next few days I will start working on it next weekend. Then I also can share TS refactoring, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants