Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Set up Application to Run Powershell Script

$
0
0

I have a couple Powershell scripts that push out settings for specific applications that are deployed through SCCM 2012 R2.  I want to set up these Powershell scripts to run as part of a separate application that has dependencies set up on the application the Powershell deployed settings are for.  I am using the following in the "Installation Program" line of the "Deployment Type" of the application:

"Powershell.exe -command Set-ExecutionPolicy unrestricted -force;.\ApplicationSettings.ps1;Set-ExecutionPolicy restricted -force"

The application keeps failing with error  0x87D00324 which seems to be related to the detection method.  Thing is the script doesn't even run so the problem doesn't only have to do with the detection method.  The Powershell scripts run fine when run manually on the client computers.  

Any ideas on what I am doing wrong?  Am I using the correct command to run the Powershell scripts in the application?

Thanks in advance for any help.  



Viewing all articles
Browse latest Browse all 4762

Trending Articles



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