Setting PowerShell scripting permissions

By Allen Stoner

PowerShell 2.0 is Microsofts way to enhance the old stand by command prompt for scripting. For some reason though the default install defaults to not allowing the execution of scripts. You just need to change a permission to allow the PowerShell to execute scripts.

#Check the Execution permissions
get-executionpolicy

#Change the execution policy  -  You may need to run this as administrator to have the permissions to access the registry key needed.
set-executionPolicy RemoteSigned
#Doing this will pop a box saying it could be unsafe to allow scripts to run.  It's your call, but if you want to run the scripts your going to need to allow it.

Setting PowerShell scripting permissions  (1611 Views)