Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

ExecutionPolicy script is not recognized as an internal or external command #35

Closed
Gordiievskyi opened this issue Sep 25, 2015 · 7 comments

Comments

@Gordiievskyi
Copy link

Hi guys I execute the script(Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force) from folder where you tool is located(disk D/npm-windows-upgrade-master) in cmd(that I run as admin) and see next message:
'Set-ExecutionPolicy' is not recognized as an internal or external command,
operable program or batch file.

Windows 7 64 bit

@felixrieseberg
Copy link
Owner

Simple fix: Run the command from PowerShell!

@mishelen
Copy link

mishelen commented Nov 4, 2015

Dont work for me: and in cmd, and powershell, in all cases script was runned with admin permission, but I get the same error.
I`m also try to run it from npm folder where its located.

PS C:\Users\mishelen\AppData\Roaming\npm> npm-windows-upgrade
npm-windows-upgrade 0.5.1
? This tool will upgrade npm. Do you want to continue? Yes
Scripts cannot be executed on this system.
To fix, run the command below as Administrator in PowerShell and try again:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

Windows 7 64 bit

@tejadivi
Copy link

tejadivi commented Dec 9, 2019

@mishelen run PowerShell as Administrator .... it worked for me.

@DeepthiVangapandu
Copy link

run PowerShell as Administrator .... it also worked for me.

@Lokeshthakur1
Copy link

run PowerShell as Administrato not working

@HellenNamulinda
Copy link

Running cmd as administrator not working for me

@te-lyhourt
Copy link

dont run cmd , run PowerShell as Administrato

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants