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.
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. |
Delete | Select an existing powershell script - then click Delete. You will be prompted to confirm deletion. |
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 registry |
Powershell Scripts Usage
Click on New to create a powershell script item.
Notes:
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 MSP Toolshed before adding as custom script.If you have an AntiVirus installed prior to running Powershell Scripts in MSP Toolshed, 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. |
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.