How to Run a Shell Script in Mac OS X Using Parallels Mac Management for Microsoft SCCM 2007 and 2012

10 users found this article helpful

Information

A shell script can be executed in Mac OS X using the Software Distribution feature of Parallels Mac Management for SCCM. Detailed instruction about using the Software Distribution feature can be found in the Software Distribution section of the Parallels Mac Management for Microsoft SCCM 2012 administrator’s guides.

To run a script on a Mac:

  1. Create a script file according to your needs and copy it to a directory on a Configuration Manager site server.

    For example:

    C:\Mac-scripts\sample-script.sh
    
  2. When creating a software distribution package, specify the name and path of the folder containing the script file as the Source folder parameter:

    Figure 1. Source folder in Create Package and Program Wizard in Microsoft SCCM 2012

  3. Specify the following command as the Command line parameter:

    sh <script-name>.sh
    

    Figure 2. Command line in Create Package and Program Wizard in Microsoft SCCM 2012




Related articles:

Was this article helpful?

Tell us how we can improve it.