Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to set the PowerShell Execution Policy via Windows Registry

Posted on 04/02/202017/08/2026 Christian By Christian No Comments on How to set the PowerShell Execution Policy via Windows Registry
  1. Home
  2. Windows Server
  3. How to set the PowerShell Execution Policy via Windows Registry
PowerShell

In this article, we will discuss “How to set the PowerShell Execution Policy via Windows Registry”. PowerShell is a cross-platform task automation and configuration management framework, consisting of a command-line shell and scripting language. Please see Determine the execution policy configured on Windows PC, and How to install and update PowerShell version 7 on Windows and Linux.

Unlike most shells, which accept and return text, PowerShell is built on top of the .NET Common Language Runtime (CLR), and accepts and returns. NET objects. PowerShell is configured to prevent the execution of PowerShell scripts on Windows systems by default.

To run commands, one of the following systems must be taken into consideration.

HKEY_CURRENT_USER\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell

Set the string value ExecutionPolicy to one of the following values:

  • Restricted
  • AllSigned
  • RemoteSigned
  • Unrestricted and
  • Undefined. 

To change the execution policy for the LocalMachine scope, Navigate to the path as shown below.

Execution Policy

Currently, no value is set and none is currently available. To set the string value ExecutionPolicy to one of the following values:

Moreover, Create a new string and enter any ExecutionPolicy value you desire as below. Restricted, AllSigned, RemoteSigned, Unrestricted, Undefined. 

Nonetheless, Create a new string and name it ExecutionPolicy. Now enter the desired value.

Screenshot of Windows Registry Editor showing the path to Microsoft PowerShell with the ExecutionPolicy value being set to 'Unrestricted'.

Press okay afterwards and that is all. Please see how to Mitigate Windows Print Spooler Remote Code Execution Vulnerability, and how to Prevent Automatic Driver Updates in Windows and Xen-Orchestra

FAQs on PowerShell Execution Policy

Is it possible to bypass the PowerShell execution policy for a specific script?

You can bypass the execution policy for a specific script by adding the -ExecutionPolicy Bypass parameter when running the script in the PowerShell command line.

How can I change the PowerShell execution policy on my system?

To change the PowerShell execution policy, open PowerShell as an administrator and use the Set-ExecutionPolicy cmdlet followed by the desired policy, such as RemoteSigned or Unrestricted.

What is the default execution policy in PowerShell, and how can I check it?

The default execution policy is typically set to Restricted. You can check the current execution policy by running the command Get-ExecutionPolicy in a PowerShell window.

Can I make changes to the execution policy permanently, or do they apply only for the current session?

Changes to the execution policy can be made permanently using the Set-ExecutionPolicy cmdlet with the -Scope parameter set to MachinePolicy. This ensures that the policy is applied globally and persists across sessions.

Furthermore, I hope you found this blog post on how to set the PowerShell Execution Policy via Windows Registry helpful. However, please let me know in the comment session if you have any questions.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Server Tags:change PowerShell execution policy Windows, configure PowerShell execution policy registry key, disable PowerShell execution policy registry, enable PowerShell scripts via registry, how to modify PowerShell policy in registry, How to set PowerShell execution policy via Windows Registry, PowerShell, PowerShell execution policy registry path, PowerShell registry execution policy bypass, PowerShell version 7, RegistryEditor, set execution policy machine level registry, set PowerShell execution policy registry, Windows 10, Windows Registry, Windows registry PowerShell script policy settings

Post navigation

Previous Post: How to set Execution Policy via Windows PowerShell
Next Post: How to set up System Insights on Windows Admin Center

Related Posts

  • screenshot 2020 03 26 at 22.14.14
    How to create a scheduled task with Windows Admin Center Windows Server
  • mbamclient
    How to deploy MBAM Client as part of a Windows Deployment Windows Server
  • Fix Boot Failed UEFI SCSI Device on HyperV
    How to Fix Boot Failed UEFI SCSI Device on HyperV Virtualization
  • How to Find Out Which Users Are Logged on Windows Server
    How to Find Out Which Users Are Logged on Windows Server Windows
  • connect to RDP automatically
    RDP Configuration Settings: Connect automatically to RDP session Windows
  • Repository Path in Veeam Scale Out Backup Repository e1779138897770
    Fix broken Repository Path in Veeam Scale-Out Backup Repository Backup

More Related Articles

Secure Boot 2023 Compliance for wds e1781352448233 Secure Boot 2023 Compliance Across WinPE, MDT, WDS, and ADK: Boot Chain Alignment and PXE Validation [Final Part] Windows
dgfhjm How to fix DISM Error 87: The package is unknown Windows Server
windows 10 desktop 1 Active Directory Forest – Trees and Domain and Sites Windows Server
Fix windows Update corruption e1786450279443 How to fix Update Error 0x800f0831 in Windows or Windows Server Windows
article 1280x720.78eff5c4 How to reset your built-in Local Administrator password in Windows 10 Windows Server
windows server 2019 logo How to create a Windows Server reference image using WDS Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • goland
    How to install Golang on a Linux System Linux
  • NortonEvents
    View and Clear or Print Norton Security Events on a Mac Anti-Virus Solution
  • banner
    How to Back Up and Restore the Windows Registry Windows
  • Remote Desktop 2 1
    How to install RDS via Quick Start Deployment: Install, Publish, Update, and Uninstall Remote Desktop Web Client Web Server
  • HyperV and vSwitch creation
    Install HyperV and Configure vSwitch on Windows Server with PowerShell Virtualization
  • image 28
    How to monitor your website uptime and status using Uptime Configuration Management Tool
  • AWS Budgets
    How to create AWS Budget AWS/Azure/OpenShift
  • Featured image 2
    How to delete Windows old folder in Windows 11 Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,747 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.