How to add a Powershell Script as a Package?

Description

This document provides you the steps required to add a Powershell Script as a software package using Endpoint Central.

Steps

To add a Powershell Script as a software package, follow the steps mentioned below:

  1. Navigate to Software Deployment >> Packages and click on "Add Package >> Windows".
  2. Enter the name of the package as desired, and select "EXE / APPX / MSIEXEC / MSU"
  3. Select the license type as "Non Commercial".
  4. For uploading the script in "Locate Installable", there are two ways:
    • From Shared Folder: If you have the script in a shared folder, you can choose this option and upload the .ps1 file.
    • From Local Computer: If the script is on the computer via which you're accessing the console, choose this option and upload the .ps1 file.
  5. Once the file has been uploaded, enter the following script under "Installation Command with Switches/Arguments":
    "< powershell.exe -ExecutionPolicy RemoteSigned -File (name-of-the-script-file) > "
  6. Click on "Add Package"

You have successfully created a package for the powershell script.

To successfully deploy the package kindly refer this page