How to Enable Running Scripts on Windows 10

You can use the Settings app to enable it

by Srishti Sisodia
Srishti Sisodia
Srishti Sisodia
Srishti Sisodia is an electronics engineer and writer with a passion for technology. She has extensive experience exploring the latest technological advancements and sharing her insights through informative... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • Enabling running scripts on Windows 10 allows you to execute and run various types of scripts, such as PowerShell scripts or batch files.
  • You can enable it using the Settings app, PowerShell, Group Policy Editor, or Registry Editor.
enable running scripts on windows 10
XINSTALL BY CLICKING THE DOWNLOAD FILE
To fix various PC problems, we recommend DriverFix: This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:
  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

The ability to run scripts on Windows 10 can empower users with automation, customization, and troubleshooting capabilities.

This guide will guide you through the process of enabling running script on Windows 10, highlighting the benefits and considerations involved.

What are the benefits of enabling running scripts on Windows?

Enabling the execution of scripts can be beneficial in many ways. Some of them are mentioned here:

  • Automation – Allows you to automate repetitive tasks and processes, thereby streamlining operations such as software installations and file management, saving you time & effort.
  • Customization – Enables you to create scripts to modify system settings, personalize the user interface, configure network settings, or tailor applications to your preferences.
  • Troubleshooting and maintenance – It allows you to develop diagnostic scripts that gather system information, check for errors, and perform automated troubleshooting steps.
  • Script-based applications – Ensures you can fully utilize the capabilities of these script-based applications, thereby allowing you to leverage additional features and functionalities.
  • Task streamlining – This allows you to combine multiple tasks or commands into a single script, simplifying complex processes.

Overall, it empowers users with greater control, efficiency, and customization, ultimately improving productivity and system management capabilities.

However, it’s important to note that running scripts can pose security risks if executed from untrusted sources or without proper validation.

How can I enable running scripts on Windows 10?

Before engaging in advanced troubleshooting steps, you should consider performing the following checks:

  • You must have administrative rights to the machine.
  • Check if you have Windows PowerShell installed. If not, download and install it from the Microsoft website.

Once you are through these checks, move to different steps to run scripts on Windows.

1. Use the Settings app

  1. Press Windows + I to open the Settings app.
  2. Go to Update& security.Update & Security enable running scripts on windows 10
  3. From the left pane, select For developers.
  4. Toggle on the switch under Developer Mode.Developer mode on
  5. Locate and expand PowerShell and place a checkmark next to Change execution policy to allow local PowerShell scripts to run without signing. Require signing for remote scripts.Enable script Windows 10
  6. Click Apply.
  7. Close the Settings window and try running the scripts you want.

2. Use Windows PowerShell

  1. Press the Windows key, type powershell and click Open.PowerShell command enable running scripts on windows 10
  2. Copy & paste the following command to enable running scripts on Windows 10 for the current user, and hit Enter: Set-ExecutionPolicy Bypass -Scope CurrentUser -ForceCurrent USER
  3. Type the following command to enable running scripts for the local machine and press Enter: Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force
  4. However, if you are concerned about security, you can enable it on a per-script basis or per-instance basis. For that, copy & paste the following command and hit Enter: Set-ExecutionPolicy Bypass -Scope Process -Force

Now you can run the script on your Windows 10.

3. Use the Group Policy Editor

  1. Press Windows + R to open the Run console.Gpedit.msc enable running scripts on windows 10
  2. Type gpedit.msc and click OK to open the Group Policy Editor.
  3. Navigate to this path: User Configuration\Administrative Templates\Windows Components\Windows PowerShell
  4. From the right pane, double-click Turn on Script Execution to open its Properties.Execution scripts
  5. Select the Enabled option, and under Options, select Allow all scripts from the drop-down for Execution Policy.Enabled and allowed scripts
  6. Click Apply, then OK.

4. Modify the registry entries

  1. Press Windows + R to open to Run dialog box.Regedit enable running scripts on windows 10
  2. Type regedit and click OK to open the Registry Editor.
  3. Navigate to this path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
  4. Locate and double-click the ExecutionPolicy entry to edit the string.All signed
  5. Change the Value data to either AllSigned or RemoteSigned to enable it.
  6. Click OK to confirm the changes.

So, these are methods to enable running scripts on Windows 10. It’s important to exercise caution when enabling script execution, as it can pose security risks.

You must only enable scripts from trusted sources and consider the potential consequences before changing the script execution policy.

If you are still not able to run scripts on PowerShell, then check out this informative guide to find the solutions

Please feel free to give us any information, tips, and your experience with the subject in the comments section below.

Still having issues? Fix them with this tool:

SPONSORED

Some driver-related issues can be solved faster by using a dedicated tool. If you're still having problems with your drivers, just download DriverFix and get it up and running in a few clicks. After that, let it take over and fix all of your errors in no time!

This article covers:Topics: