Skip to content

TechDirectArchive

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

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

Determine the execution policy configured on Windows PC

Posted on 12/02/202127/08/2026 Christian By Christian No Comments on Determine the execution policy configured on Windows PC
  1. Home
  2. Windows
  3. Determine the execution policy configured on Windows PC
Graphic illustrating PowerShell Execution Policy, featuring code outputs and a person using a laptop with multiple screens displaying web pages and coding information.

The default configuration of Windows systems prevents the execution of PowerShell scripts by configuring the PowerShell execution policy. This safety feature is implemented to control the conditions under which PowerShell loads configuration files and runs scripts. This feature helps prevent the execution of malicious scripts. Please see “how to set the PowerShell Execution Policy via the Windows Registry settings“. In this article, you will learn how to determine the execution policy configured on a Windows PC.

You may also find this article interesting “How to Set Execution Policy via Windows Settings“. Below are the various values of policies that exist.  Also, see how to upgrade Path and In-Place Upgrade for VBR v13 and Known Fixes, how to upgrade Veeam Backup and Replication 12.3, and how to upgrade Veeam Backup and Replication v12.3 to v13 on Windows

What is the PowerShell Execution Policy?

The execution policy isn’t a security system that restricts user actions. For example, users can easily bypass a policy by typing the script contents at the command line when they cannot run a script. Instead, the execution policy helps users set basic rules and prevents them from violating them unintentionally.

The PowerShell Execution Policy determines whether scripts can run on your Windows device. By default, PowerShell sets the execution policy to Restricted, which means that scripts will not run. Windows PowerShell has four different execution policies.

Please see Restrict IP Address Range on Windows PC, Best MacBook you can find in the year 2022, how to Mitigate Windows Print Spooler Remote Code Execution Vulnerability, and How to install and update PowerShell version 7 on Windows and Linux.

Determine the execution policy configured on a Windows PC

To see the effective execution policy for your PowerShell, first, open an elevated Powershell window, accept the UAC, and enter the below Powershell command.

Windows Start menu showing various applications with arrows pointing to 'Windows PowerShell' and 'Run as administrator' options.

To reveal the effective execution policy for your PowerShell session use “Get-ExecutionPolicy“. Today’s precarious security environment allows attackers to take advantage of newly discovered vulnerabilities. As depicted below, the default policy is set to “unrestricted.”

The effective execution policy is determined by execution policies that are set by “Set-ExecutionPolicy” and Group Policy settings. See this guide for more information on “how to set Execution Policy via Windows PowerShell“

Get-ExecutionPolicy
Windows PowerShell interface displaying the Get-ExecutionPolicy command with output showing 'Unrestricted'.

To display the execution policies for each scope in the order of precedence, use “Get-ExecutionPolicy -List“.

PowerShell window displaying the execution policy list, highlighting that the LocalMachine execution policy is set to 'Unrestricted'.

FAQs

What is the purpose of PowerShell Execution Policy?

The PowerShell Execution Policy is designed to control the security levels for script execution. It helps prevent the execution of malicious scripts and ensures a secure environment.

What are the available PowerShell Execution Policy levels?

PowerShell provides several execution policy levels, including Restricted, AllSigned, RemoteSigned, Unrestricted, and Bypass. Each level offers a different degree of script execution control.

How can I check the current PowerShell Execution Policy?

You can check the current PowerShell Execution Policy by using the Get-ExecutionPolicy cmdlet. This command will display the current policy setting for the session.

How do I change the PowerShell Execution Policy?

To change the PowerShell Execution Policy, use the Set-ExecutionPolicy cmdlet followed by the desired policy level. You may need to run PowerShell with administrator privileges to make this change.

I hope you found this blog post helpful on how to determine the execution policy configured on Windows PC. If you have any questions, please let me know in the comment session.

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 Tags:check execution policy on Windows PC, determine execution policy Windows, execution policy levels in Windows, find execution policy via PowerShell, get current PowerShell execution policy, how to check execution policy Windows, PowerShell, PowerShell execution policy command, PowerShell Set-ExecutionPolicy, PowerShell version 7, run scripts on Windows, view execution policy settings, Windows, Windows 10, Windows 11, Windows execution policy configuration, Windows Server 2016

Post navigation

Previous Post: What to know about the servicing stack update and latest cumulative update in Windows
Next Post: Install Synaptic Package Manager: Handle packages in Ubuntu

Related Posts

  • banner 3
    How to Enable or Disable SuperFetch in Windows 11 Windows
  • Test your webcam and microphone before meeting
    How to Test Your Webcam And Microphone Before Meeting Windows
  • WIinG
    Capture and Record your Screen in Windows 10 with Xbox Game Bar Windows
  • winSEARCH
    Hide or Remove Search Button from Windows 10 Taskbar Windows
  • install python 3 and pip
    How to upgrade and downgrade PIP on Windows Windows
  • Clone a Virtual Machine via Export and Import
    Clone a VM via Export and Import: Copy Virtual Hard Disk on Hyper-V Virtualization

More Related Articles

banner How to Check and Reset Network Data Usage in Windows 11 Network | Monitoring
image 43 Configure GPS location “Google Map” on your Android Studio Emulator Windows
Featured image Black screen issue How to Fix Black Screen Issues on Windows 11/10 Windows
Feature image How to search Group Policy for a specific Setting in Windows 10 and 11 Windows
Screenshot 2022 04 02 at 22.17.10 How to Install Kubectl on Windows 11 Windows
Install error 0x800700b7 How to fix Windows update Install error 0x800700b7 Windows

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

  • centos feature
    How to change the system time zone under RedHat and CentOS Linux
  • Synology Diskstaion update to latest version 7.3
    Download and update Synology DiskStation NAS to DSM 7.3 Storage
  • create Microsoft 365 Account
    How to create Microsoft 365 Account Network | Monitoring
  • windows admin center banner 825x400 1 1
    How to install or update and uninstall extensions in Windows Admin Center Windows Server
  • VMware and HyperV are not compatible
    How to fix VMware and HyperV are not compatible Virtualization
  • WonderFox Video Watermark
    Install and use WonderFox Video Watermark Windows
  • Banner 1 e1781003668538
    How to Assign a Public IP to Azure Virtual Machine (VM) AWS/Azure/OpenShift
  • VBR upgrade to 13.1
    Strategic breakdown and step by step guide to upgrading to VBR 13.1 Backup

Subscribe to Blog via Email

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

Join 1,746 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.