Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

'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

like image 890
Manisha Avatar asked Nov 27 '25 03:11

Manisha


2 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

like image 130
Malte Avatar answered Nov 28 '25 15:11

Malte


Just right click on "powershell" then choose "run as adminstrator"

like image 30
Abdallah Mahmoud Avatar answered Nov 28 '25 17:11

Abdallah Mahmoud



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!