VS Code PowerShell - Running scripts is disabled on this system - Issue FIXED

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friends welcome back this is school id help in this tutorial session we are going to focus on problem solving in vs code we have seen a frequent error while running the cell script in visual studio code so this is this agenda of this tutorial guys are you facing these kinds of error look at here on this notepad the powershell running script is disabled on this system powershell script cannot be loaded because running a script is disabled on your system a few guys facing these kind of problems are the symbol similar problem on your visual studio code while running your shell script so we are going to check a quick fix of this in this tutorial session first i will tell you why this error comes this error comes due to default security policy enabled on your system to avoid the unwanted shell script or malicious script execution for better safety and security of your system and now we have to go on the terminal in the visual studio code then we will deactivate that execution policy or we will set it unrestricted for the current user guys let's get started let's fix it together please open your visual studio code editor and we are here and i will first run the shell script and i will show you uh the error here we go and you can see guys here on the terminal we found this error and now to fix this error i need to open the terminal again so go here on the global terminal menu option and click here on the new terminal and now at this place we have to type simple command so this is the command set execution policy hyphen scope then current user unrestricted we are not going to set execution policy unrest and restricted for all users we focusing on the current user only okay so we are allowing only the current user to execute shell script okay this way press enter this is done now we will check this has been fixed or not so again i will go to the terminal and i will run my task which will execute one shell script and here we go through this run task and i just pressed on that and i'm waiting okay task execution is going on and i will perform some activity for which i have written this task so i am deleting something from this file and i have just okay now open the md file again write something here okay this is working properly no error that error has gone now so please try this solution i hope this will work for you as well if you found this tutorial relevant and useful please hit the like button and don't forget to subscribe for now thanks for watching google id help
Info
Channel: Cool IT Help
Views: 67,729
Rating: undefined out of 5
Keywords: Shell Script Execution error in VS Code, Running scripts is disabled on this system, Fix for PowerShell Script cannot be loaded because running, Powershell Cannot Be Loaded Because Running Scripts Is, windows 11 running scripts is disabled on this system, running scripts is disabled on this system windows 10, running scripts is disabled on this system vscode, running scripts is disabled on this system nodemon, ng cannot be loaded because running scripts is disabled on this system
Id: mHV1Yh7McWA
Channel Id: undefined
Length: 3min 39sec (219 seconds)
Published: Mon Apr 11 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.