How to Enable PowerShell Scripts Execution on Windows 10

If PowerShell is blocking you against running scripts, follow these steps to enable PowerShell scripts execution on Windows 10.

PowerShell is really a powerful Windows automation and management tool. From the PowerShell command-line interface, you are able to control and automate just about any part or process of Windows. In fact, there’s a lot of both official and community-driven PowerShell scripts out there on the internet to get work done on Windows 10. When needed, you can create your own scripts too.

Basically, a PowerShell script is nothing but a text file having a bunch of commands and file extension of “.ps1”. Using the script, PowerShell can execute the commands in the file in sequential order to procedure desired results.

Considering how powerful the ability to execute scripts is, PowerShell includes a built-in mechanism to block unwanted or accidental script execution. For example, whenever you try to execute a PowerShell script with default settings, it will show the “cannot be loaded because the execution of scripts is disabled about this system.” error. To enable PowerShell scripts execution, you first need to set the proper execution policy.

If you ever have to execute PowerShell scripts, follow the steps the following to allow PowerShell scripts on Windows 10.

Steps to Enable PowerShell Scripts Execution on Windows 10

To allow PowerShell scripts, stick to the steps given below one after the other.

Press the Windows Key to open the Start menu.
Type “PowerShell”.
Right-click around the PowerShell result and choose “Run as administrator”.
After opening the PowerShell window, execute “get-executionpolicy” to know the current execution policy.
Chances are it will say “Restricted”. This means the scripts are blocked.
Within the PowerShell window, execute the “set-executionpolicy remotesigned” command.
Type “A” next to the confirmation message and press “Enter”.
You’ve changed the execution policy to allow PowerShell scripts.

That’s all. From now on you can execute the scripts created directly on your machine or signed scripts download from the internet or other computers.

If you wish to run unsigned scripts downloaded from the web or other computers, you need to set the execution policy to “unrestricted”. To do that, execute the “set-executionpolicy unrestricted” command within the PowerShell window.

To disable the PowerShell script execution, you can just set the execution policy to restricted. Just execute the “set-executionpolicy restricted” command and you are all set.

That’s all. It’s that easy to enable PowerShell scripts execution in Windows 10. If you’re stuck or take some help, comment below and I will try to assist as much as possible.

Leave a Reply

Your email address will not be published. Required fields are marked *