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

windows 24H2 version not support #938

Closed
xwenzheng opened this issue Oct 9, 2024 · 7 comments
Closed

windows 24H2 version not support #938

xwenzheng opened this issue Oct 9, 2024 · 7 comments

Comments

@xwenzheng
Copy link

Describe the bug

in latest windows system call error:invoking remote method "get-machines-info": Error : Command failed: failed wmic path win32_VideoController

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.23.5",
  • OS: Windows11 24H2
  • Hardware [e.g. MacBook Pro 13]

To get all needed environment information, please run the following command:

  npx systeminformation info

Additional context
Add any other context about the problem here.

@wald-tq
Copy link

wald-tq commented Oct 14, 2024

Sorry to read that.
Seems that systeminformation is also using wmic which is deprecated in 24H2:

https://techcommunity.microsoft.com/t5/windows-it-pro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/ba-p/4039242

I am also looking for a solution to read wmi with nodejs without wmic with nodejs / electron.

@sebhildebrandt
Copy link
Owner

@wald-tq @xwenzheng ... since version 5.9.7. we removed the use of wmic (as it is deprecated - see also #616). Anyway, there seems to be an issue in powershell calling:

Get-CimInstance win32_VideoController | fl *

Can you confirm that this is not longer working (when calling this from powershell)?

Thank you for testing.

@wald-tq
Copy link

wald-tq commented Oct 17, 2024

@sebhildebrandt thanks, I solved it in my app by calling powershell. I didn't know that you already solved that in your library.

Get-CimInstance win32_VideoController | fl *

This command works on my laptop with Windows 10

@Spartan-Hex-Shadow
Copy link

@sebhildebrandt will this issue be resolved in the complete rewrite (6.0)?

@sebhildebrandt
Copy link
Owner

@Spartan-Hex-Shadow @xwenzheng @wald-tq ... the latest version 5.23.11 does not use wmic. I am using Get-CimInstance win32_VideoController | fl * (see line 831) ... can you try it once again and provide the full error message?

@Spartan-Hex-Shadow
Copy link

@Spartan-Hex-Shadow @xwenzheng @wald-tq ... the latest version 5.23.11 does not use wmic. I am using Get-CimInstance win32_VideoController | fl * (see line 831) ... can you try it once again and provide the full error message?

Just realized i was running on an old version. I do not see the error anymore, thank you!

@sebhildebrandt
Copy link
Owner

@wald-tq @Spartan-Hex-Shadow @xwenzheng ... then I can close this issue, right. If you still have any errors, please feel free to reopen this ticket.

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

No branches or pull requests

4 participants