Skip to content

WMIC has been deprecated in Windows 11 and is now no longer available #442

@doughsay

Description

@doughsay

This line here:

parse_cpu_for(:Windows, system_cmd("WMIC", ["CPU", "GET", "NAME"]))

Appears to fail on up-to-date Windows 11 systems due to WMIC having been deprecated.

Here's an article announcing the deprecation: https://techcommunity.microsoft.com/blog/windows-itpro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/4039242

It seems the only alternative is to use powershell, according to that article. I'm pretty unfamiliar with windows development, so I don't really know the best way to fix this...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions