Cisco Cisco Process Orchestrator 3.1 User Guide

Page of 786
 
13-230
Cisco Process Orchestrator 3.1 User Guide
 
Appendix 13      Using Adapters 
  Windows Adapter
Defining the Execute Windows Script Activity
Use the Execute Windows Script activity to specify a Windows script and the target directory on which 
to execute.
Note
To ensure this Windows activity executes properly, verify that the Remote Registry service is enabled on 
your machine. 
Step 1
In the Process Editor Toolbox, choose Microsoft Windows > Execute Windows Script and drag and 
drop the activity onto the Workflow pane.
Step 2
Click the General tab and enter the appropriate information.
Step 3
Click the Script tab to define the properties specific to the activity, including:
  •
Local working directory on target—Enter the path to the local working directory on the Windows 
target where the script will be executed.
  •
Script arguments—Enter the collection of argument values for the script. Multi-line script 
arguments are not supported.
  •
Script to execute on target—Enter the actual script code to use to execute an activity on the specified 
local working directory on the Windows target computer.
  •
Wait for script to complete or time out in—Enter a value or use the scroll buttons to specify the time 
frame to wait for the action to complete.
Select the time unit link to adjust the time unit (seconds, minutes, or hours).
  •
Select this check box if script accesses remote resources—Check this check box to indicate that the 
script will access remote resources
  •
Fail on non-zero return code—Check this check box configure the activity to fail when a return code 
having a non-zero value is received. 
Step 4
Complete the appropriate information in the remaining tabs as necessary, then click Save to complete 
the activity definition.
Viewing Results
Click the instance display-only tabs to view the Windows script and the target directory on which the 
script was executed. See also, 
Adding a Script Argument
Script arguments are a property for Windows script and command activities. The Add button on these 
activities launches the Select Argument to Add dialog box for users to specify the script arguments to be 
added to the list on the specified Windows activity.
Step 1
On the appropriate Windows activity property page, click Add.
Step 2
Enter the appropriate script argument value for the script in the text field or click the Reference tool to 
select from the list.
  •
String Dialog box can contain standard string text