Script Commands
App Portal 2020 R1
The Commands and Actions > Script Commands view lists the current commands and a summary of their settings. Double-click a command name to edit the command.
Commands and Actions > Script Commands View
To create a new command, click the New Command button. The New Command dialog box opens.
New Command Dialog Box
The New Command dialog box includes the following properties:
Command |
Description |
||||||
Command name |
Specify the name of the command. This command name will appear in the menu list. |
||||||
Command description |
Describes the command. The description shows when you hover over the command name in the menu list. |
||||||
Execute From Server |
When this option is selected, the command will be executed from the server using the security context of the service account. Server commands are exposed as actions that can be invoked at different stages during the request process and also on workflow steps. See Request Management > Request Actions for global actions and the Actions tab when editing a request for request specific actions. |
||||||
Execute From Client |
When this option is selected, the command will be executed from the client using the client’s security. The browser must allow client side Active X content. |
||||||
Command File |
Defines the command to execute. Server command files are uploaded to the web server and stored in the Uploads\Commands directory. The command accepts numerous variables available listed under the Command Arguments Variables. Sample command syntax is:
ping ##Name0##
NewMainframeAccount.vbs computer:##Netbios_Name0## user:##User_Name0## The following is a sample of a client command on the Support Tools tab:
|
||||||
Command Argument Variables |
Variables that are available for use in the Command arguments field. Select a variable and click Add to add the variable to the Command arguments field. |
||||||
Command arguments |
Defines the syntax that should be appended after the command file. Available variables are supplied in the drop down lists. Sample command syntax: ##Name0## computer:##Netbios_Name0## user:##User_Name0## |
||||||
Strip HTML from arguments |
Select to remove HTML commands from arguments. |
||||||
Category |
Select a category for the command. The categories appear as menu items as shown for the Test category shown in the image above (in the Command File description). Note:Only available when Execute From Client is selected. |
||||||
Pick Image |
Select an image to represent the command. Note:Only available when Execute From Client is selected. |
||||||
Collection filter |
Select a collection to filter the command based on collection membership. The computer must be present in the specified collection for the command to be visible. This is useful for filtering commands based on OS, installed software, or other criteria. Note:Only available when Execute From Client is selected. |
||||||
Visible |
Allows you to hide the command without deleting it. Note:Only available when Execute From Client is selected. |
App Portal / App Broker 2020 R1 Administration GuideAugust 2020 |