Skip to content

WMIC is deprecated #1959

@silug

Description

@silug

WMIC has been deprecated for some time, and it has been removed in Windows 2025.

There are a number of places where wmic is used:

lib/beaker/host/pswindows/exec.rb:69:    ips = execute("wmic nicconfig where ipenabled=true GET IPAddress /format:list")
lib/beaker/host/pswindows/group.rb:5:    execute('cmd /c echo "" | wmic group where localaccount="true" get name /format:value') do |result|
lib/beaker/host/pswindows/pkg.rb:38:    execute("wmic os get osarchitecture", :accept_all_exit_codes => true) do |result|
lib/beaker/host/pswindows/pkg.rb:51:    execute("wmic os get name", :accept_all_exit_codes => true) do |result|
lib/beaker/host/pswindows/user.rb:5:    execute('cmd /c echo "" | wmic useraccount where localaccount="true" get name /format:value') do |result|
lib/beaker/host/windows/exec.rb:32:    ips = execute("wmic nicconfig where ipenabled=true GET IPAddress /format:list")
lib/beaker/host/windows/group.rb:5:    execute('cmd /c echo "" | wmic group where localaccount="true" get name /format:value') do |result|
lib/beaker/host/windows/user.rb:5:    execute('cmd /c echo "" | wmic useraccount where localaccount="true" get name /format:value') do |result|

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions