How To Change The PowerShell Script Execution Policy Via Group Policy Object (GPO)

We’ve all been there, you go to run a script on a new server or a computer that you don’t use often and you get the dreaded red error. After a facepalm and re-running PowerShell as administrator, you use Set-ExecutionPolicy to allow you to run your script. Well, no more! Anthony also hates setting the execution policy every time he runs a script, so witness how easy it is to set your PowerShell execution policy using Group Policy!