If you plan to use PowerShell scripts with Managed Workplace automation, you must ensure that the managed devices are able to execute them. This article outlines how to configure this execution through group policy or locally on each device. 

Configuration Using Group Policy

To configure the execution using group policy follow the steps below:

  1. Launch the Group Policy Management Editor for the Doman
  2. Browse to Computer Configuration > Administrative Templates > Windows Components > Windows PowerShell
  3. Double click Turn on Script Execution
  4. Choose Enabled
  5. Under Options, choose Allow all scripts as the Execution Policy

    clipboard_eceb506384cddd7511e098b50330d2a23.png

  6. Select OK

Local Configuration

To Configure locally, please follow the steps below:

  1. From a command prompt, enter PowerShell by issuing the command powershell
  2. Determine the execution policy by issuing the command get-executionpolicy 
  3. The system will respond advising whether the policy is Restricted (Default) or Unrestricted
  4. To change Unrestricted, issue the command set-executionpolicy unrestricted

    clipboard_edb859e164f5bd67a2e4b3fa2e4f89fd8.png