Get PowerShell Execution Policy

This object returns the computer and user-level policy. This allows you to know if the policy is set to restricted, unrestricted, remotesigned, etc.

Requires PowerShell 5.0

Before using this Automation Manager Object, you must install PowerShell 5.0.

Privileges

Normal

Input Parameters

None

Output Parameters

Name Type Description
Machine Execution Policy String This is the policy set at the computer level.
Current User Policy String This is the policy set at the user level (for the user under which the object is executed).
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

No input parameters required.

Example Output Parameters

Name Type Example
Machine Execution Policy String Restricted
Current User Policy String Restricted