'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
'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
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: