'Set-ExecutionPolicy' is not recognized as an internal or external command, operable program or batch file while installing chocolaty

Viewed 35057

'Set-ExecutionPolicy' is not recognized as an internal or external command, operable program or batch file. getting this error while trying to install chocolaty through cmd

1 Answers

Set-ExecutionPolicy is a PowerShell Cmdlet. You should run it in a PowerShell (Admin-) Session, not in cmd.

Take a look at the installation instructions from chocolatey.org. Official chocolatey documentations is pretty good, as I think:

https://chocolatey.org/install#individual

Related