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 not recognized as an internal or external command #8328

Closed
eternalphane opened this issue Oct 26, 2021 · 2 comments · Fixed by #8329
Closed

'wmic' is not recognized as an internal or external command #8328

eternalphane opened this issue Oct 26, 2021 · 2 comments · Fixed by #8329
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available.

Comments

@eternalphane
Copy link
Contributor

eternalphane commented Oct 26, 2021

Bug type: Debugger

Describe the bug

  • OS and Version: Windows 11 Insider Preview Build 22483.1011
  • VS Code Version: 1.62.0-insider
  • C/C++ Extension Version: 1.7.1
  • A clear and concise description of what the bug is:

Command failed: wmic process get Name,ProcessId,CommandLine /FORMAT:list
'wmic' is not recognized as an internal or external command, operable program or batch file.

To Reproduce
launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) Attach",
            "type": "cppvsdbg",
            "request": "attach",
            "processId": "${command:pickProcess}"
        }
    ]
}

Steps to reproduce the behavior:

  1. Select (Windows) Attach configuration in Debug pane, and press F5 to start debugging.
  2. The error described above popped up.

Additional context
WMIC is deprecated in favor of CMI cmdlets in PowerShell as of Windows 10 21H1, and has already been removed from Windows 11 22483. See MicrosoftDocs/win32@9f7ba67.

@WardenGnaw WardenGnaw added the fixed Check the Milestone for the release in which the fix is or will be available. label Oct 27, 2021
@WardenGnaw WardenGnaw added this to the 1.7.1 milestone Oct 27, 2021
@WardenGnaw WardenGnaw reopened this Oct 27, 2021
@bobbrow bobbrow modified the milestones: 1.7.1, 1.8.0 Nov 12, 2021
@sean-mcmanus sean-mcmanus modified the milestones: 1.8.0, 1.8.0-insiders Nov 24, 2021
@sean-mcmanus
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@WardenGnaw @eternalphane @bobbrow @sean-mcmanus and others