Enum WindowsPowerShellExecutionPolicy
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents the PowerShell execution policy.
public enum WindowsPowerShellExecutionPolicy
Fields
AllSigned = 2
Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
Bypass = 5
Nothing is blocked and there are no warnings or prompts.
RemoteSigned = 3
Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
Restricted = 1
Does not load configuration files or run scripts. "Restricted" is the default execution policy.
Undefined = 6
Removes the currently assigned execution policy from the current scope. This parameter will not remove an execution policy that is set in a Group Policy scope.
Unknown = 0
The execution policy is unknown.
Unrestricted = 4
Loads all configuration files and runs all scripts. If you run an unsigned script that was downloaded from the Internet, you are prompted for permission before it runs.