The most efficient way to resolve the “not recognized as internal command” error is to edit the environment variable and add the appropriate file path there. This is because the command prompt utility examines these paths when you enter a command and then opens the file if it is in one of those directories.
Here are the three easiest ways to fix Java's “not recognized as an internal or external command” error: Install or reinstall Java and the JDK on your computer. Add Java's bin directory to the computer's PATH. Restart the command prompt, terminal window or PowerShell.
To enable Windows PowerShell Integrated Scripting Environment (ISE) Start Server Manager. Click Features and then click Add Features. In Select Features, click Windows PowerShell Integrated Scripting Environment (ISE).
I have just installed Chocolatey via PowerShell, I tried running PowerShell both as myself and as administrator, and if I try running choco or cinst I get the following error:
PS C:\> choco /?
'PowerShell' is not recognized as an internal or external command,
operable program or batch file.
What do I do? I have a feeling this is related to more than just Chocolatey...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With