Share via

'netsh' is not recognized as an internal or external command, operable program or batch file. (this happens with every command)

Anonymous
2025-03-04T08:44:57+00:00

Does anyone know the fix to this? I just randomly opened my laptop one day and it started doing this.

I've tried like most fixes I've seen on the internet so I just came here to see if anyone knows how to fix this.

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
Answer accepted by question author
  1. DaveM121 869.7K Reputation points Independent Advisor
    2025-03-05T17:30:11+00:00

    This is very strange, open the Settings App.

    Go to Accounts.

    Select Access Work or School, is there is a work or school Email listed there?

    1 person found this answer helpful.
    0 comments No comments

13 additional answers

Sort by: Most helpful
  1. _AW_ 67,206 Reputation points Volunteer Moderator
    2025-03-04T14:09:24+00:00

    OK. We need to check the "Path" environment variable.

    Run Command Prompt as administrator and enter:

    rundll32.exe sysdm.cpl,EditEnvironmentVariables
    

    In the dialog that opens, under System variables, scroll down and double click on the PATH Variable.

    In the resulting list there should be: %SystemRoot%\system32 or c:\windows\system32

    If neither are present, click on New and paste in %SystemRoot%\system32

    Click on 'Move up' until it's at the top then click OK.

    Restart the computer for the change to take effect.

    2 people found this answer helpful.
    0 comments No comments
  2. DaveM121 869.7K Reputation points Independent Advisor
    2025-03-04T13:41:31+00:00

    Your screenshot indicates Command Prompt is not run as administrator, your prompt is at C:\Users\topet, if you had run Command Prompt by right clicking its icon and choose 'Run as Administrator, the prompt should be at C:\Windows\System32

    .

    2 people found this answer helpful.
    0 comments No comments
  3. _AW_ 67,206 Reputation points Volunteer Moderator
    2025-03-04T10:44:21+00:00

    If you use the full file path for netsh, does it work?

    e.g Copy and paste the following command into Command Prompt:

    C:\Windows\System32\netsh.exe interface ipv4 show config
    
    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2025-03-04T09:43:28+00:00

    Sorry that's not the problem, its always on administrator, did it right now as well didn't work.

    1 person found this answer helpful.
    0 comments No comments