How to fix error- nodemon.ps1 cannot be loaded because running scripts is disabled on this system, (without security risk)?

I’d recommend using RemoteSigned as opposed to Unrestricted, and limiting the policy to the CurrentUser if possible.

Run Powershell as Admin, and then:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

RemoteSigned: “The default execution policy for Windows server computers.”


Other than that, I wouldn’t worry about it too much, as it’s not intended to be a security mechanism. See this quote from the docs:

“The execution policy isn’t a security system that restricts user
actions. For example, users can easily bypass a policy by typing the
script contents at the command line when they cannot run a script.
Instead, the execution policy helps users to set basic rules and
prevents them from violating them unintentionally.”

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)