CMD command doesn't work on PowerShell

Anonymous
2022-08-05T23:51:46+00:00

I'm trying to call 'cmd' inside Windows PowerShell console in order to get to work immediately with Command Prompt mode, but I got this message instead:

I know I can use Command Prompt outside of PowerShell, but this is a special case.

Any suggestions about how can I revert this?

Thank you.

Windows for home | Windows 10 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Ramesh Srinivasan 173.7K Reputation points Volunteer Moderator
    2022-08-07T05:29:11+00:00

    Ok. Thanks for the info.

    Right-click Start, click Run.

    Type sysdm.cpl and press Enter

    Click the Advanced tab.

    Click "Environment Variables"

    Under "System variables", select "Path"

    Click "Edit"

    Move the following items to the top by clicking on the "Move Up" button

    • %systemroot%\system32
    • %systemroot%\
    • %systemroot%\system32\Wbem

    Click OK and close the dialog boxes.

    Close and re-open a fresh instance of PowerShell.

    3 people found this answer helpful.
    0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Ramesh Srinivasan 173.7K Reputation points Volunteer Moderator
    2022-08-06T05:19:19+00:00

    Hi,

    What happens when you run the following?

    C:\Windows\System32\cmd

    And, please run the SET command and post the output here.

    0 comments No comments
  2. _AW_ 64,331 Reputation points Volunteer Moderator
    2022-08-06T05:27:50+00:00

    Just enter: start cmd

    0 comments No comments
  3. Anonymous
    2022-08-07T05:12:56+00:00

    It works.

    This is what i got after running SET:

    Any way to put just CMD?

    0 comments No comments
  4. Anonymous
    2022-08-07T05:13:30+00:00

    Same problem

    0 comments No comments