Windows PowerShell implements script security to keep unwanted scripts from running in your environment. You have the option of signing your scripts with a digital signature to ensure that scripts that run are from a trusted source.
The policy has five (
Unrestricted) different states to be set in five different scopes (
Here is a short description of the different policies and what they can or can't do:
Undefined: There is no execution policy set for the current scope
Restricted: No script either local, remote, or downloaded can be executed
AllSigned: All scripts that are run require to be digitally ...