Why my command prompt is not recognizing 'netstat' as a command

I want to figure out my running ports in Windows 10, but when I write command

C:\> netstat 

in the console, I get the following error

'netstat' is not recognized as an internal or external command,
operable program or batch file.

or output of echo %PATH% as and of echo %PATH EXT%

6

2 Answers

It sounds like NetStat is no longer registered. You can check by going to My Computer - Properties - Advanced - Environment Variables - Path. If it is not there you can add it, just make sure you use the entire path when you do.

Did you mess around with the PATH variables?

Right click This PC → Properties → Advanced System Settings → Advanced tab → Environment Variables

In System variables, edit Path

Make sure that these paths are defined in the Path variable:

C:\WINDOWS\system32

C:\WINDOWS

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like