Windows Powershell Running Scripts Is Disabled Solution In Visual Studio Code Node JS
Recently I was trying a small project in free time in Node JS and while executing a script through Visual Studio Code, I got following error in Windows Powershell.
cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.~~~~~~~~ CategoryInfo : SecurityError: (:) [], PSSecurityException FullyQualifiedErrorId : UnauthorizedAccess
To fix scripts running permissions issue, find your Powershell app on Windows. Right click on it and open it in Administrator mode.
Once its opened, enter following command
Set-ExecutionPolicy RemoteSigned
Once it is entered, it will show you following prompt
C:\windows\system32\> Set-ExecutionPolicy RemoteSigned Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y
Type Y and hit enter. Again try running your script, and now it should work.
Once your work is done, you can set back policy to restricted using following command.
Set-ExecutionPolicy Restricted
Again, when prompted, press Y and hit enter.
Please let me know if this fixed your issue. Do share it with your friends and colleagues.
GPT 5.4: The Next-Generation AI Model Transforming Reasoning, Coding, and Productivity Artificial Intelligence is evolving…
GPT-5.3 Instant is OpenAI's latest ChatGPT model update, prioritizing smoother conversations, fewer refusals, and higher…
Are you tired of scrolling endlessly through Google results trying to find clear, trustworthy answers?…
In recent years, the process of software development has rapidly evolved—developers demand smarter tools and…
India has emerged as one of the fastest-growing and most significant markets in the global…
On October 6, 2025, OpenAI unveiled AgentKit, a unified suite of tools designed to help developers and…
This website uses cookies.