Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'PowerShell' is not recognized as an internal or external command

Tags:

People also ask

How do you fix is not recognized as an internal or external command?

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.

How do you fix Java is not recognized as an internal or external command?

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.

How do I enable PowerShell commands?

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...