Click to Rate and Give Feedback

  Switch on low bandwidth view
Operating System Media Pre-Execution Hook

Updated: December 1, 2008

The following section describes how to configure boot media, stand-alone media, and PXE to run a script or executable that can interact with the user in Windows PE before the task sequence is selected. This can be used to prompt for information and save it in the task sequence environment before the task sequence is started. For example, you can use this to prompt for user credentials to join the domain.

When the target computer boots, the command-line will be run before policy is downloaded.

To configure media to run a script or program that can interact with the user

  1. Create a TSConfig.INI file that contains the command-line to run. For example:

    [CustomHook]
    CommandLine=”WScript.exe X:\MyScript.vbs”
  2. Create a Windows PE image that contains the TSConfig.ini and any files required in the root folder.

  3. Use the procedure How to Add a Boot Image to Configuration Manager to import the boot image into the Configuration Manager 2007 site.

  4. Create boot media or stand-alone media using the boot image you imported in step 3.

See Also

Did you find this information useful? Please click the following link to send your suggestions and comments about the documentation to the Configuration Manager Doc Feedback alias: SMSdocs@microsoft.com.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker