Quantcast
Channel: Ivanti User Community : All Content - Software Distribution
Viewing all articles
Browse latest Browse all 1056

PowerShell Script Fails (Run From Source)

$
0
0

Issue:


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)


sdclient_task.png



Reason:


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:

 

Get-ExecutionPolicy -list

 


list.png


 

Solution:


To successfully execute from a share the PowerShell package properties have to include the following syntax:


bypass.png



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:

https://technet.microsoft.com/en-us/library/hh847748.aspx


Viewing all articles
Browse latest Browse all 1056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>