Powershell Scripts

This feature allows you to have custom powershell scripts as configuration profile items.

Powershell scripts feature is only available with Premium and legacy subscription plans.

You are limited to 200Kb per script.

Powershell Scripts page

Menu Bar options:

New

Select to create a new powershell script.

Edit

Select an existing powershell script - then click Edit to make changes.

Duplicate

Select an existing powershell script - then click Duplicate to create a copy which will default to “Powershell Script Name - Copy” as Name.

Delete

Select an existing powershell script - then click Delete. You will be prompted to confirm deletion.

Show Column Chooser

Selecting allows you to choose which columns to display. Example 4 of the 7 available columns are displayed.

Filter Row

This allows you to search/filter based on the available column data. Example searching for powershell scripts with Name including Cortana:

Click the x to remove filter selection.

 

Powershell Scripts Usage

Click on New to create a powershell script item.

Notes:

  1. powershell.exe will be launched along with the contents of the Powershell Script field.

    There is no validation of the powershell so it should be tested and verified working outside of ezdeploy before adding as custom script.

  2. If you have an AntiVirus installed prior to running Powershell Scripts in ezdeploy, be sure to exclude or otherwise allow Powershell to run in your Antivirus Product. The path used is:

    c:\ezdeploy\ezdservice\downloadcache

 

Powershell Script Settings

Usage

Name

Name of powershell script - (Note: You are limited to alpha-numeric characters, hyphens and spaces for this field)

Description

Description of what the powershell script does

Powershell Script

Powershell command(s). If you have existing .ps1 file - copy contents from file to this field. (Note: You are limited to 200kb in a single PowerShell Script)

Timeout (mins)

Defaults to 10 min. Increase if you know the time to perform custom powershell script will be longer than 10 min and up to 60 min.

Example:

Once you have created and saved your first custom powershell script - you will see new Item Type in the Configuration Profile - Profile Items selection list:

 

And that is how you will access/add your custom powershell scripts to the profile.

 

The content of this site is proprietary and confidential information of Stack Advisors, LLC. It is not intended to be distributed to any third party without the written consent of Stack Advisors, LLC.