sebhildebrandt / systeminformation

System Information Library for Node.JS
MIT License
2.72k stars 309 forks source link

windows 24H2 version not support #938

Open xwenzheng opened 1 week ago

xwenzheng commented 1 week ago

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):

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 commented 1 week ago

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 commented 1 week ago

@wald-tq @xwenzheng ... since version 5.9.7. we removed the use of wmic (as it is deprecated - see also https://github.com/sebhildebrandt/systeminformation/issues/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 commented 5 days ago

@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