Published: December 20, 2007
The scripts used in LTI and ZTI reference properties that determine the process steps and configuration settings used during the deployment process. This reference section can be used to help determine the correct scripts to include in actions and the valid arguments to provide when running each script. The following information is provided for each script:
-
Name. Specifies the name of the script.
-
Description. Provides a description of the purpose of the script and any pertinent information regarding script customization.
-
Input. Indicates the files used for input to the script.
-
Output. Indicates the files created or modified by the script.
-
References. Indicates other scripts or configuration files that are referenced by the script.
-
Location. Indicates the folder where the script can be found. In the information for the location, the following variables are used:
-
program_files. This variable points to the location of the Program Files folder on the computer where Microsoft Deployment is installed.
-
distribution. This variable points to the location of the Distribution folder for the deployment point.
-
platform. This variable is a placeholder for the operating system platform (x86 or x64).
-
Use. Provides the command line and options that can be specified.
-
Arguments and description. Indicate the valid arguments to be specified for the script and a brief description of what each argument means.
-
Properties. The properties referenced by the script.
On This Page
BDD_Autorun.wsf
BDD_Welcome_ENU.xml
Credentials_ENU.xml
Credentials_scripts.vbs
DeployWiz_Definition_ENU.xml
DeployWiz_Initialization.vbs
DeployWiz_Validation.vbs
LiteTouch.vbs
LiteTouch.wsf
LTIApply.wsf
LTICleanup.wsf
LTICopyScripts.wsf
LTIGetFolder.wsf
LTISysprep.wsf
NICSettings_Definition_ENU.xml
Summary_Definition_ENU.xml
Summary_scripts.vbs
Wizard.hta
WizUtility.vbs
ZeroTouchInstallation.vbs
ZeroTouchInstallation.wsf
ZTIApplications.wsf
ZTIAppXmlGen.wsf
ZTIBackup.wsf
ZTIBde.wsf
ZTIBIOSCheck.wsf
ZTIConfigure.wsf
ZTIConfigureADDS.wsf
ZTIConfigureDHCP.wsf
ZTIConfigureDNS.wsf
ZTIConnect.wsf
ZTICopyLogs.wsf
ZTIDiskpart.wsf
ZTIDiskUtility.vbs
ZTIDrivers.wsf
ZTIGather.wsf
ZTIGroups.wsf
ZTILangPacksOnline.wsf
ZTIMoveStateStore.wsf
ZTINextPhase.wsf
ZTINICConfig.wsf
ZTINICUtility.vbs
ZTIOSRole.wsf
ZTIPackages.wsf
ZTIPatches.wsf
ZTIPrereq.vbs
ZTICONFIGMGR.wsf
ZTISetVariable.wsf
ZTITatoo.wsf
ZTIUserState.wsf
ZTIUtility.vbs
ZTIValidate.wsf
ZTIWindowsUpdate.wsf
ZTIWipeDisk.wsf
BDD_Autorun.wsf
This script displays a dialog box that indicates the user inserted deployment media created by the Microsoft Deployment process (such as a bootable DVD or a removable hard disk). The message is displayed for 15 seconds. If no action is taken, the script starts LiteTouch.vbs.
For more information about LiteTouch.vbs, see the corresponding topic in the “Scripts” section of this reference.
| Value | Description |
| Input | None |
| Output | None |
| References | LiteTouch.vbs. Initiates LTI. |
| Location | distribution\Scripts |
| Use | None |
Arguments
| Arguments | Description |
| None | None |
Properties
BDD_Welcome_ENU.xml
This .xml file contains the script code and HTML layout for the Welcome to Windows Deployment page that is displayed at the start of the Deployment Wizard. This .xml file is read by Wizard.hta, which runs the wizard pages embedded in this .xml file.
| Value | Description |
| Input | None |
| Output | None |
| References | -
NICSettings_Definition_ENU.xml. Allows the user to provide configuration settings for network adapters. -
RecEnv.exe. If this utility exists, the user is prompted to determine if they want to launch Windows Recovery Environment (Windows RE). -
WPEUtil.exe. Initializes Windows Preinstallation Environment (Windows PE) and network connections; initiates LTI. |
| Location | distribution\Tools\platform |
| Use | mshta.exe Wizard.hta BDD_Welcome_ENU.xml |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| KeyboardLocale | .gif) | |
Credentials_ENU.xml
This .xml file contains the script code and HTML layout for the Specify credentials for connecting to network shares wizard page in the Deployment Wizard. This .xml file is read by Wizard.hta, which runs the wizard pages embedded in this .xml file.
Note This wizard page is only displayed if there is a failure while validating the predefined user credentials.
| Value | Description |
| Input | None |
| Output | None |
| References | Credentials_scripts.vbs |
| Location | distribution\Scripts |
| Use | mshta.exe Wizard.hta /NotWizard /definition:Credentials_ENU.xml [/ValidateAgainstDomain:domain | /ValidateAgainstUNCPath:uncpath] </DoNotSave> </LeaveShareOpen> |
Arguments
| Value | Description |
| /ValidateAgainstDomain:domain | Specifies the domain in which the credentials exist (as specified in domain). |
| /ValidateAgainstUNCPath:UNCPath | Specifies the shared network folder to be used to validate the credentials by connecting to the folder (as specified in UNCPath). |
| /DoNotSave | Does not write the properties to a file; just connects to the path. |
| /LeaveShareOpen | If UNC path is specified, then does NOT delete the share if successful. |
Properties
Credentials_scripts.vbs
This script parses the arguments that were provided when loading the Credentials_ENU.xml file into the Deployment Wizard. It also performs user credential validation. This script is read by the Credentials_ENU.xml file.
For more information about Credentials_ENU.xml, see the corresponding topic in the “Scripts” section of this reference.
| Value | Description |
| Input | None |
| Output | Event message are written to these log files: |
| References | None |
| Location | distribution\Scripts |
| Use | <script language="VBScript" src="Credentials_scripts.vbs"/> |
Arguments
Properties
| Name | Read | Write |
| UserCredentials | | .gif) |
DeployWiz_Definition_ENU.xml
This .xml file contains the script code and HTML layout for each wizard page in the Deployment Wizard. This .xml file is read by Wizard.hta, which runs the wizard panes embedded in this .xml file. This .xml file contains the following wizard panes:
-
Welcome to the Windows Deployment Wizard
-
Select a task sequence to execute on this computer
-
Specify the product key needed to install this operating system
-
Choose a migration type
-
Configure the computer name
-
Join the computer to a domain or workgroup
-
Specify where to save your data and settings
-
Specify whether to restore user data
-
Specify where to save a complete computer backup
-
Packages
-
Locale selection
-
Set the time zone
-
Select one or more applications to install
-
Administrator password
-
Specify whether to capture an image
-
Specify the BitLocker configuration
-
Specify credentials for connecting to network shares
-
Ready to begin
| Value | Description |
| Input | None |
| Output | None |
| References | |
| Location | distribution\Scripts |
| Use | None |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| ComputerName | .gif) | |
| DeployRoot | .gif) | |
| DeployTemplate | .gif) | |
| DeploymentMethod | .gif) | |
| DoCapture | .gif) | |
| ImageBuild | .gif) | |
| ImageFlags | .gif) | |
| JoinDomain | .gif) | |
| OSGUID | .gif) | |
| SkipAdminPassword | .gif) | |
| SkipApplications | .gif) | |
| SkipAppsOnUpgrade | .gif) | |
| SkipBitLocker | .gif) | |
| SkipCapture | .gif) | |
| SkipComputerBackup | .gif) | |
| SkipComputerName | .gif) | |
| SkipDeploymentType | .gif) | |
| SkipDomainMembership | .gif) | |
| SkipLocaleSelection | .gif) | |
| SkipPackageDisplay | .gif) | |
| SkipProductKey | .gif) | |
| SkipSummary | .gif) | |
| SkipTaskSequence | .gif) | |
| SkipTimeZone | .gif) | |
| SkipUserData | .gif) | |
| UserDomain | .gif) | |
| UserID | .gif) | |
| UserPassword | .gif) | |
DeployWiz_Initialization.vbs
This script initializes the pages in the Windows Deployment Wizard (stored in DeployWiz_Definition_ENU.xml). It also contains functions and subroutines that are called by the Windows Deployment Wizard during an LTI-based deployment.
For more information about DeployWiz_Definition_ENU.xml, see the corresponding topic in the “Scripts” section of this reference.
| Value | Description |
| Input | -
Applications.xml. Contains a list of available applications. -
DomainOUList.xml. Contains a list of domain OUs. -
LocationServer.xml. Contains a list of available deployment points. -
Packages.xml. Contains a list of available packages. -
TaskSequences.xml. Contains a list of task sequences. -
Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | Event message are written to these log files: |
| References | None |
| Location | distribution\Scripts |
| Use | <script language="VBScript" src="DeployWiz_Initialization.vbs"/> |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| Architecture | .gif) | |
| Applications | .gif) | |
| BDEInstall | .gif) | |
| ComputerbackupLocation | .gif) | |
| DeploymentType | .gif) | |
| DeployRoot | .gif) | |
| DomainAdmin | .gif) | .gif) |
| DomainAdminDomain | .gif) | .gif) |
| DomainAdminPassword | .gif) | .gif) |
| ImageBuild | .gif) | |
| ImageFlags | .gif) | |
| ImageLanguage | .gif) | |
| ImageProcessor | .gif) | |
| IsServer | .gif) | |
| KeyboardLocale | .gif) | |
| LanguagePacks | .gif) | |
| LanguagePacks1 | .gif) | .gif) |
| LocalDeployRoot | .gif) | |
| OSCurrentBuild | .gif) | |
| OSVersion | .gif) | |
| OverrideProductKey | .gif) | |
| ProductKey | .gif) | |
| SkipCapture | .gif) | |
| TaskSequenceID | .gif) | |
| TimeZone | .gif) | |
| TimeZoneName | .gif) | |
| TSGUID | .gif) | |
| UDDir | .gif) | |
| UDShare | .gif) | |
| UserDataLocation | .gif) | |
| UserDomain | .gif) | |
| UserID | .gif) | |
| UserLocale | .gif) | |
| UserPassword | .gif) | |
DeployWiz_Validation.vbs
This script initializes and validates the information entered in the pages of the Windows Deployment Wizard (stored in DeployWiz_Definition_ENU.xml). This script contains functions and subroutines that are called by the Windows Deployment Wizard during an LTI-based deployment.
For more information about DeployWiz_Definition_ENU.xml, see the corresponding topic in the “Scripts” section of this reference.
| Value | Description |
| Input | -
OperatingSystems.xml. Contains the list of operating systems available for deployment. -
Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | None |
| References | Credentials_ENU.xml. Prompts the user for credentials that will be used when connecting to network resources. |
| Location | distribution\Scripts |
| Use | <script language=”VBScript” src=”DeployWiz_Validation.vbs”/> |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| DeploymentType | .gif) | |
| DeployTemplate | | .gif) |
| ImageProcessor | | .gif) |
| OSGUID | | .gif) |
| OSVersion | .gif) | .gif) |
| UserCredentials | .gif) | |
| UserDomain | | .gif) |
| UserID | | .gif) |
| UserPassword | | .gif) |
LiteTouch.vbs
This script is called by the Windows Deployment Wizard to initiate LTI. The script:
-
Removes the C:\MININT folder (if it exists).
-
Checks that the target computer meets the requirements for running the Windows Deployment Wizard by calling ZTIPrereq.vbs.
-
Starts the Windows Deployment Wizard by running LiteTouch.wsf.
For more information about ZTIPrereq.vbs and LiteTouch.wsf, see the corresponding topics in the “Scripts” section of this reference.
| Value | Description |
| Input | None |
| Output | None |
| References | |
| Location | distribution\Scripts |
| Use | cscript LiteTouch.vbs </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
LiteTouch.wsf
This script is called by LiteTouch.vbs and responsible for controlling the LTI deployment process. This includes:
For more information about LiteTouch.vbs, see the corresponding topic in the “Scripts” section of this reference.
| Value | Description |
| Input | -
task_sequence_file .xml. Contains the tasks and sequence of tasks for the LTI deployment process. -
Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | |
| References | -
BDD_Welcome_ENU.xml. Displays the Deployment Wizard Welcome page for LTI deployment. -
CMD.exe. Windows Command Processor for running external commands while debugging the deployment. -
DeployWiz_Definition_ENU.xml. Displays the Deployment Wizard pages for LTI deployment. -
Diskpart.exe. Utility that allows the automated management of disks, partitions, and volumes. -
LTICleanup.wsf. Performs cleanup tasks after deployment completes. -
RecEnv.exe. If this utility exists, the user is prompted to determine if they want to launch Windows RE. -
Regsvr32.exe. Registers files (.dll, .exe, .ocx, and so on) with the operating system. -
Summary_Definition_ENU.xml. Displays the summary results for the LTI deployment. -
TsmBootstrap.exe. Task sequence BootStrap utility. -
ZTIUtility.vbs. Includes support functions and subroutines used by the script. |
| Location | distribution\Scripts |
| Use | BDDRun.exe “wscript.exe ScriptDirectory\LiteTouch.wsf </debug:value>” |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| _SMSTSPackageName | | .gif) |
| Architecture | .gif) | .gif) |
| DeployDrive | .gif) | .gif) |
| DeploymentMethod | .gif) | .gif) |
| DeploymentType | .gif) | .gif) |
| DeployRoot | | .gif) |
| DeploySystemDrive | .gif) | .gif) |
| ImageLanguage001 | .gif) | |
| JoinDomain | .gif) | |
| JoinWorkgroup | .gif) | |
| KeyboardLocale | .gif) | .gif) |
| OSDAdapterCount | .gif) | |
| Phase | .gif) | .gif) |
| ResourceDrive | .gif) | .gif) |
| ResourceRoot | .gif) | .gif) |
| RetVal | | .gif) |
| SkipBDDWelcome | .gif) | |
| SkipFinalSummary | .gif) | |
| SkipWizard | .gif) | |
| TaskSequenceID | .gif) | .gif) |
| UILanguage | | .gif) |
| UserLocale | | .gif) |
| WelcomeWizardCommand | .gif) | |
| WizardComplete | .gif) | |
LTIApply.wsf
This script is responsible for installing a Windows PE image, Windows XP image, or Windows Vista image to the target computer. The Windows PE image is used to collect information about the target computer and to run the deployment tasks on the target computer.
| Value | Description |
| Input | OperatingSystems.xml |
| Output | -
LTIApply.log. Log file that contains events generated by this script. -
LTIApply_wdsmcast.log. Log file that contains events generated by the Wdsmcast utility. -
BDD.log. Log file that contains events generated by all Microsoft Deployment scripts. |
| References | -
ZTIUtility.vbs. Includes support functions and subroutines used by the script. -
Bootsect.exe. Applies a boot sector to the hard disk. -
ImageX.exe. A utility used to create and manage Windows Imaging Format (.wim) files. -
Wdsmcast.exe. A utility used by target computers to join a multicast transmission. |
| Location | distribution\Scripts |
| Use | cscript LTIApply.wsf </pe> </post> </debug:value> |
Arguments
| Value | Description |
| /pe | Uses the process for installing the Windows PE image on the target computer. |
| /post | Cleans up unnecessary files after the installation of an image. |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| Architecture | .gif) | |
| DeployRoot | .gif) | |
| OSGUID | .gif) | |
| OSVersion | .gif) | |
| ImageBuild | .gif) | |
| ImageProcessor | .gif) | |
| SourcePath | | .gif) |
| TaskSequenceID | .gif) | |
| UserDomain | .gif) | |
| UserID | .gif) | |
| UserPassword | .gif) | |
| WDSServer | .gif) | .gif) |
LTICleanup.wsf
This script removes any files or configuration settings (such as scripts, folders, registry entries, or automatic logon configuration settings) from the target computer after the deployment process completes.
| Value | Description |
| Input | Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | |
| References | |
| Location | distribution\Scripts |
| Use | cscript LTICleanup.wsf </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| DeployRoot | .gif) | |
| DeploySystemDrive | .gif) | |
| ImageBuild | .gif) | |
| OSVersion | .gif) | |
LTICopyScripts.wsf
This script copies the deployment scripts for the LTI-based and ZTI-based deployment processes to a local hard drive on the target computer.
| Value | Description |
| Input | None |
| Output | |
| References | |
| Location | distribution\Scripts |
| Use | cscript LTICopyScripts.wsf </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
LTIGetFolder.wsf
This script displays a dialog box that allows the user to browses to a folder. The selected folder path is stored in the FolderPath environment variable.
| Value | Description |
| Input | Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | None |
| References | |
| Location | |
| Use | cscript LTIGetFolder.wsf |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| DefaultFolderPath | .gif) | |
| FolderPath | | .gif) |
LTISysprep.wsf
This script prepares the target computer for running Sysprep, runs Sysprep on the target computer, and then verifies that Sysprep ran successfully.
| Value | Description |
| Input | Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | |
| References | |
| Location | distribution\Scripts |
| Use | cscript LTISysprep.wsf </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| Architecture | .gif) | |
| DoCapture | .gif) | |
| OSCurrentBuild | .gif) | |
| SourcePath | .gif) | |
NICSettings_Definition_ENU.xml
This .xml file contains the script code and HTML layout for the Configure Static IP Network Settings wizard page in the Windows Deployment Wizard. During an LTI deployment, the Wizard.hta reads this .xml file and runs the embedded wizard page that prompts for the required network addressing configuration. If the team member chooses to not supply static IP addressing configuration, the deployment scripts will default to using DHCP to obtain the required network configuration.
| Value | Description |
| Input | None |
| Output | None |
| References | ZTINICUtility.vbs. Includes support functions and subroutines used by the script. |
| Location | distribution\Scripts |
| Use | None |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| OSDAdapter0DNSServerList | | .gif) |
| OSDAdapter0DNSSuffix | | .gif) |
| OSDAdapter0Gateways | | .gif) |
| OSDAdapter0IPAddressList | | .gif) |
| OSDAdapter0MacAddress | | .gif) |
| OSDAdapter0SubnetMask | | .gif) |
| OSDAdapter0WINSServerList | | .gif) |
| OSDAdapterCount | | .gif) |
Summary_Definition_ENU.xml
This .xml file contains the script code and HTML layout for the Deployment Summary wizard page in the Windows Deployment Wizard. During an LTI deployment, the Wizard.hta reads this .xml file and runs the embedded wizard page that displays the summary results for the LTI deployment. This .xml file contains the following wizard pages:
| Value | Description |
| Input | None |
| Output | None |
| References | Summary_Scripts.vbs. Includes support functions and subroutines used by the wizard pages embedded in this .xml file. |
| Location | distribution\Scripts |
| Use | None |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| SkipFinalSummary | .gif) | |
| RetVal | .gif) | |
Summary_scripts.vbs
This script is called by the Summary wizard page of the Windows Deployment Wizard. It contains functions and subroutines that are used for initialization and validation.
| Value | Description |
| Input | Environment Variables. Contains the property values, custom property values, database connections, deployment rules, and other information required by the scripts to complete the deployment process. |
| Output | Event message are written to these log files: |
| References | None |
| Location | distribution\Scripts |
| Use | <script language=”VBScript” src=”Summary_Scripts.vbs”/> |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| DeploymentType | .gif) | |
| RetVal | .gif) | |
Wizard.hta
This Hypertext Application (HTA) displays the Windows Deployment Wizard pages.
| Value | Description |
| Input | Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | |
| References | |
| Location | |
| Use | mshta.exe Wizard.hta </definition:filename> </NotWizard> </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
| /NotWizard | Used to bypass wizard page prompts. |
| /Definition:filename | Specifies the .xml file that is to be loaded into the wizard. |
Properties
| Name | Read | Write |
| WizardComplete | .gif) | |
WizUtility.vbs
This script contains functions and subroutines that are referenced by the various Windows Deployment Wizard scripts.
| Value | Description |
| Input | Environment Variables. Contains the property values, custom property values, database connections, deployment rules, and other information required by the scripts to complete the deployment process. |
| Output | |
| References | LTIGetFolder.wsf. Script file that provides a BrowseForFolder dialog box to the user. |
| Location | |
| Use | <script language="VBScript" src="WizUtility.vbs"/> |
Arguments
| Value | Description |
| None | None |
Properties
| Name | Read | Write |
| DefaultFolderPath | | .gif) |
| FolderPath | .gif) | |
| OSVersion | .gif) | |
| UserCredentials | | .gif) |
ZeroTouchInstallation.vbs
This script is run to initiate the ZTI deployment process. The script:
For more information about ZTIPrereq.vbs and ZeroTouchInstallation.wsf, see the corresponding topics in the “Scripts” section of this reference.
| Value | Description |
| Input | None |
| Output | None |
| References | -
BDDRun.exe. Runs a command that requires user interaction. -
Regsvr32.exe. Registers files (.dll, .exe, .ocx, and so on) with the operating system. -
TsmBootStrap.exe. Task sequence bootstrap utility. -
ZTIGather.wsf. Gathers the properties and processing rules that control the deployment process. -
ZTINicConfig.wsf. Configures network adapters. -
ZTIUtility.vbs. Includes support functions and subroutines used by the scripts in this file. -
ZTIPrereq.vbs. Used to determine if the target computer meets the prerequisites for deploying a new operating system. -
ZeroTouchInstallation.wsf. Initiates the ZTI deployment process. |
| Location | distribution\Scripts |
| Use | cscript ZeroTouchInstallation.vbs </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
ZeroTouchInstallation.wsf
This script is responsible for controlling the ZTI deployment process. This includes running the ZTI deployment process using the appropriate task sequence file.
Note This script is initiated by ZeroTouchInstallation.vbs
| Value | Description |
| Input | -
task_sequence_file .xml. Contains the tasks and sequence of tasks for the ZTI deployment process (where task_sequence_file is the name of the task sequence file). -
Environment Variables. Contains the list of property values, custom properties, database connections, deployment rules, and other information required by the scripts to complete the deployment process. The environment variables are populated by ZTIGather.wsf. |
| Output | |
| References | -
BDDRun.exe. Runs a command that requires user interaction. -
TsmBootStrap.exe. Task sequence bootstrap utility. -
ZTIGather.wsf. Gathers the properties and processing rules that control the deployment process. -
ZTIUtility.vbs. Includes support functions and subroutines used by the script. |
| Location | distribution\Scripts |
| Use | cscript ZeroTouchInstallation.wsf </debug:value> |
For more information about ZTIUtility.vbs, ZeroTouchInstallation.vbs, and task_sequence_file, see the corresponding topics in the “Scripts” section of this reference.
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| _SMSTSPackageName | | .gif) |
| Architecture | .gif) | |
| DeployDrive | .gif) | .gif) |
| DeploymentMethod | .gif) | .gif) |
| DeploymentType | .gif) | .gif) |
| DeployRoot | .gif) | .gif) |
| DeploySystemDrive | | .gif) |
| OSDAdapterCount | .gif) | |
| OSDInstallPackage | .gif) | |
| OSDPackageID | .gif) | |
| OSDPackagePath | .gif) | |
| OSVersion | .gif) | |
| Phase | .gif) | .gif) |
| ResourceDrive | | .gif) |
| ResourceRoot | .gif) | |
ZTIApplications.wsf
This script will initiate an installation of applications that have been configured on the Deployment Workbench Applications node. This script will not attempt to install any application that:
-
Does not support the target computer’s platform type.
-
Does not support the target computer’s processor type.
-
Has an uninstall entry in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.
Note If the listed application has any dependant applications defined, this script will attempt to install those dependant applications prior to installing the listed application.
| Value | Description |
| Input | -
Applications.xml. Contains a list of applications to be installed. This file is created by Deployment Workbench. -
Environment Variables. Contains the property values, custom property values, database connections, deployment rules, and other information required by the scripts to complete the deployment process. |
| Output | |
| References | |
| Location | distribution\Scripts |
| Use | cscript ZTIApplications.wsf </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| Architecture | .gif) | |
| ApplicationGUID | .gif) | |
| DeploymentMethod | .gif) | |
| InstalledApplications | .gif) | .gif) |
| ResourceDrive | .gif) | |
| ResourceRoot | .gif) | .gif) |
| SMSTSRebootRequested | | .gif) |
| SMSTSRetryRequested | | .gif) |
ZTIAppXmlGen.wsf
This script generates an .xml file, ZTIAppXmlGen.xml, for use when automatically capturing user data (documents) that are associated with installed applications.
This script accomplishes this task by enumerating through the HKEY_CLASSES_ROOT\Software\Classes registry key and capturing any applications that:
-
Are not associated with one of these file extensions: .mp3, .mov, .wma, .wmv, .chm, .evt, .evtx, .exe, .com, and .fon.
-
Are not associated with a Microsoft Office system, such as the 2007 Microsoft Office System or Microsoft Office 2003.
-
Have a valid open handler listed at: HKEY_CLASSES_ROOT\ application \shell\open\command.
| Value | Description |
| Input | Environment Variables. Contains the property values, custom property values, database connections, deployment rules, and other information required by the scripts to complete the deployment process. |
| Output | -
ZTIAppXmlGen.xml. Contains a list of applications that are installed on the target computer. -
ZTIAppXmlGen.log. Log file that contains events generated by this script. -
BDD.log. Log file that contains events generated by all Microsoft Deployment scripts. |
| References | ZTIUtility.vbs. Includes support functions and subroutines used by the script. |
| Location | distribution\Scripts |
| Use | cscript ZTIAppXmlGen.wsf </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| USMTMigFiles | .gif) | .gif) |
ZTIBackup.wsf
This script performs a backup of the target computer using the ImageX utility. The backup is stored in the location specified in the BackupDir and BackupShare properties. For more information about these properties, see the corresponding topics in the “Properties” section of this reference.
| Value | Description |
| Input | Environment Variables. Contains the property values, custom property values, database connections, deployment rules, and other information required by the scripts to complete the deployment process. |
| Output | -
ZTIBackup.log. Log file that contains events generated by this script. -
ZTIBackup_imagex.log. Log file that contains events generated by ImageX.exe. -
BDD.log. Log file that contains events generated by all Microsoft Deployment scripts. |
| References | -
ImageX.exe. A utility used to create and manage .wim files. -
Reg.exe. Console Registry Tool for reading and modifying registry data. -
ZTIUtility.vbs. Includes support functions and subroutines used by the script. |
| Location | distribution\Scripts |
| Use | cscript ZTIBackup.wsf </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| BackupDir | .gif) | |
| BackupDisk | .gif) | |
| BackupDrive | .gif) | |
| BackupFile | .gif) | |
| BackupPartition | .gif) | |
| BackupShare | .gif) | |
| ComputerBackupLocation | .gif) | |
| DeploymentMethod | .gif) | |
| DeploymentType | .gif) | |
| DoCapture | .gif) | |
| ImageFlags | .gif) | |
| TaskSequenceID | .gif) | |
ZTIBde.wsf
This script installs and configures BitLocker Drive Encryption on the target computer.
Note The BitLocker Drive Encryption configuration is limited to New Computer and Upgrade Computer scenarios that have hard disks configured with a single partition.
| Value | Description |
| Input | -
BdeFixDiskPart.txt. Answer file used by the Diskpart tool to adjust drive letter assignments. -
Environment Variables. Contains the property values, custom property values, database connections, deployment rules, and other information required by the scripts to complete the deployment process. |
| Output | -
ZTIBde.log. Log file that contains events generated by this script. -
ZTIBdeFix_diskpart.log. Log file that contains events generated by the Diskpart tool. -
BDD.log. Log file that contains events generated by all Microsoft Deployment scripts. |
| References | -
BdeHdCfg.exe. Manages the BitLocker Drive Encryption configuration. -
Diskpart.exe. Utility that allows for the automated management of disks, partitions, and volumes. -
ZTIDiskUtility.vbs. Includes support functions and subroutines used by the script. -
ZTIUtility.vbs. Includes support functions and subroutines used by the script. |
| Location | distribution\Scripts |
| Use | cscript ZTIBde.wsf </debug:value> |
Arguments
| Value | Description |
| /debug:value | Outputs the event messages to the console and to the .log files. If the value specified in value is: -
TRUE, event messages are sent to the console and the .log files. -
FALSE, event messages are sent only to the .log files (this is the behavior when the argument is not provided). |
Properties
| Name | Read | Write |
| AdminPassword | .gif) | |
| BDEDriveLetter | .gif) | |
| BDEDriveSize | .gif) | |
| BDEInstall | .gif) | |
| BDEInstallSuppress | .gif) | |
| BDEKeyLocation | .gif) | |
| BDEPin | .gif) | |
| BDERecoveryKey | .gif) | |
| BDERecoveryPassword | .gif) | |
| BDESecondPass | .gif) | .gif) |
| BdeWaitForEncryption | .gif) | |
| ComputerName | .gif) | |
| DeploymentMethod | .gif) | |
| DeploymentType | .gif) | |
| OSDBitLockerCreateRecoveryPassword | .gif) | |
| OSDBitLockerMode | .gif) | |
| OSDBitLockerRecoveryPassword | .gif) | |
| OSDBitLockerStartupKey | .gif) | |
| OSDBitLockerStartupKeyDrive | .gif) | .gif) |
| OSDBitLockerTargetDrive | ![]()
|