When attempting to execute a PowerShell package from source the following output is displayed in the sdclient_task log file on the client located in %ldms_local_dir% (ldclient\data)
The targeted device's policy execution is set to "restricted," not allowing the file to run from a share. To view the clients execution policy run the following command in PowerShell:
To successfully execute from a share the PowerShell package properties have to include the following syntax:
There are several parameters associated the ExecutionPolicy command. In this instance I elected the -Bypass parameter.
-- Bypass: Nothing is blocked and there are no warnings or prompts.
- Using the bypass parameter temporarily allows the execution. Once the task is complete, the execution policy will be set back to its previous state.
Please be mindful that execution policies are in place to assist in preventing the execution of scripts that may pose a security risk to your environment. For further details on this topic please view the following article: