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

Deploying powershell scripts via SCCM package

$
0
0

Hi All,

I would like to ask for a command that I can be use to deploy a powershell script that will install SNMP features and community string. I already have a powershell script that can be perfectly run manually.

* "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -command ".\SNMPserver2008 R2.ps1"
* powershell.exe -executionpolicy bypass -command ".\SNMP server2008 R2.ps1"
* powershell.exe -executionpolicy bypass -file "\server1\OSD\utility scripts\SNMP server2008 R2-other.ps1"

I tried the above commands but none successfully added SNMP feature on test server.. Report: "Status of a specified package and program deployment" showed that the test server received the package, but failing to install and didn't rerun even the configuration used  "Rerun for failed deployment"





Viewing all articles
Browse latest Browse all 4762

Trending Articles



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