How to enable execution of PowerShell scripts

Often time system administrators are asked to make company-wide changes. These can be very hard to do unless you run a PowerShell script.  Many scripts that you write or find online are unable to run with a generic error message saying you need to enable execution of PowerShell scripts.  This article shows very briefly how to fix this.

PowerShell command needed to enable execution of PowerShell scripts

Enter the following commands within PowerShell run as administrator:

Set-ExecutionPolicy Unrestricted

enable execution of powershell scripts

You need to have administrative rights to the computer/server you are using in order for this command to run successfully.

Now that you have run this command, you can take advantage of some of the following scripts: