Powershell Script to Create Registry Files to Change Powershell Execution Policy


Thought Leadership & Events

In a prior post, I showed you how to manually configure your computer to enable ExecutionPolicy so you can run Powershell scripts.  To make it even better, I now have a powershell script that will create the .REG files you need so all you have to do is run the script and double-click on the file.  The script also shows some other pretty cool tricks like opening a dialog box to get a folder path and creating a text file.  Simply Copy and paste the following code into PowerShell or PowerShell ISE and watch the magic 🙂