Easy How to Enable Running Scripts in Windows 11


How to enable running scripts in Windows 11 | How to enable running scripts in visual studio code | Running Scripts is disabled on this system vscode| Windows Powershell script execution|

In this article we are going to guide you step by step on how to enable running scripts in Visaul Studio Code on Windows devices. In almost all Windows run PC’s and laptops running windows scripts is primarily disabled. But it can easily be enabled just by typing some commands in our Windows Powershell.

What does the running scripts error has to say:

This error generally occurs when you try to install any package using the Windows Powershell and you have running scripts disabled. It looks something like this : File cannot be Loaded because Running Scripts is Disabled on this System in Windows Powershell

The error shows File [filename] cannot be loaded because running scripts is disabled on this system. For more information see about _Execution_Policies at https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2

running-scripts-disabled-error
Running Scripts is Disabled
Image Source : Google Images

How to Enable Runnning Scripts in Windows 11- Video Solution

How to Enable Running Scripts in Windows 11/10

To enable running scripts in your Windows 11 or Windows 10, just follow these simple steps

Step 1 :

Go to your start menu and type “cmd”. Right click on “Command Promt” and select run as administrator.

Step 2 :

Type in the first command promt “Get-ExecutionPolicy -List” and hit Enter.

Step 3 :

Type in the second command “Set-ExecutionPolicy Unrestricted” and hit Enter again.

Step 4 :

Among the following options shown select “Y” and hit Enter.

Step 5 :

Now type in the third and final command “Set-ExecutionPolicy Unrestricted -Force” and hit Enter.

Conclusion

So this kind of error usually comes when remote signed certificates are not enabled or your user account does not have enough permission to execute that script .We hope this tutorial and video guide will actually help you in solving issues related to windows powershell execution policy or to enable/disable running scripts in Windows 11. Well this process will work for Windows 11, Windows 10 as well as Windows 8/8.1 and Windows 7 also.


Leave a Comment