Custom deployment code can be called directly from any point within a task sequence; this gives access to the usual task sequence rules and options.
To add the custom deployment code to an existing task sequence
1. Copy the custom deployment code to the deployment_share\Scripts folder (where deployment_share is the fully qualified path to the deployment share).
2. Click Start, and then point to All Programs. Point to Microsoft Deployment Toolkit, and then click Deployment Workbench.
3. In the Deployment Workbench console tree, go to Deployment Workbench/Deployment Shares/deployment_share/Task Sequences (where deployment_share is the name of the deployment share to configure).
4. In the details pane, click task_sequence (where task_sequence is the name of the task sequence that runs the custom code).
5. In the Actions pane, click Properties.
6. In the task_sequence Properties dialog box, click the Task Sequence tab.
7. In the console tree, go to group (where group is the group to add the task sequence step).
8. Click Add, click General, and then click Run Command Line.
9. In the console tree, click Run Command Line, and then click the Properties tab.
10. In the Name box, type name (where name is a descriptive name of the custom code).
11. On the Properties tab, in the Command line box, type command_line (where command_line is the command to run the custom code—for example, cscript.exe %SCRIPTROOT%\CustomCode.vbs).
12. In the Start in box, type path (where path is the fully qualified path to the working folder of the custom code; typically, this is the same path specified in the Command line box), and then click OK.
The newly created task sequence step appears in the list of task sequence steps.
Related Topics