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

wmic is no longer present in Windows 11 #613

Closed
tonesto7 opened this issue Nov 8, 2021 · 5 comments
Closed

wmic is no longer present in Windows 11 #613

tonesto7 opened this issue Nov 8, 2021 · 5 comments

Comments

@tonesto7
Copy link

tonesto7 commented Nov 8, 2021

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. used function '...'
  2. code snippet '....'
  3. start app / code
  4. See output/error '....'

Current Output
If applicable, add output to help explain your problem.

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • systeminformation package version: 5.7.4
  • OS: [e.g. macOS] Window 11
  • Hardware [e.g. MacBook Pro 13]

Additional context
Add any other context about the problem here.
http://www.edtittel.com/blog/windows-11-says-sayonara-wmic.html

I'm seeing the wmic is not recognized on the getNetworkInterfaces()

@sebhildebrandt
Copy link
Owner

@tonesto7 ... OK, was not aware of this ... anyway I replaced already a lot of wmic calls, will also replace the few ones that are still in place. Will let you know as soon as I completed this. Thank you!

@tonesto7
Copy link
Author

tonesto7 commented Nov 8, 2021

Typical MS crap removing things for no reason.
Thanks for the fast response!!!

@sebhildebrandt
Copy link
Owner

@tonesto7 ... well it was marked as deprecated already. But I did not know that it now was removed ;-) I need to do all of this in conjunction with #611 ... as I will need to use PowerShell commands now. Unfortunately it seems that

  • this takes more resources (cpu load) to spin up a powershell shell
  • for some reason in my version it does not shut down the session
    ... will do this whole thing on Wednesday.

@sebhildebrandt
Copy link
Owner

@tonesto7 ... in the latest version 5.9.10 I now completely dropped wmic in favor of powerShell ... can you test it on your side?

@tonesto7
Copy link
Author

Looks good... Thanks for the fast turn around on this

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