Set PowerShell Execution Policy
This Automation Manager object sets the PowerShell execution policy to the desired security level.
Requires PowerShell 5.0
Before using this Automation Manager Object, you must install PowerShell 5.0.
Privileges
Normal
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
Execution Policy Scope | String | Yes | Defines the scope on which the execution policy will be set:
|
Execution Policy | String | Yes | Sets the execution policy to the selected value:
|
Output Parameters
Name | Type | Description |
---|---|---|
Result | Number | Returns a success value of zero or any value other than zero to indicate failure. |
Result String | String | Object execution error details. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
Execution Policy Scope | String | Yes | Local Machine |
Execution Policy | String | Yes | Remote Signed |