This script initializes ZTI when deploying using Configuration Manager 2012 or Configuration Manager 2007 R3. The script performs the following procedure:

1.   If debugging is activated, the script creates the OSD.Debug file.

2.   The script configures these properties:

·     ScriptRoot is set to the parent folder of the currently running script.

·     DeployRoot is set to the parent folder of ScriptRoot.

·     ResourceRoot is set to DeployRoot.

·     DeploySystemDrive is set to C:.

·     DeploymentMethod is set to SCCM.

3.   When DeployRoot contains :\:

·     The DeployRoot folder is copied to _SMSTSMDataPath\WDPackage

·     ScriptRoot is set to _SMSTSMDataPath\WDPackage\Scripts

·     DeployRoot is set to the parent folder of ScriptRoot

·     ResourceRoot is set to DeployRoot

4.   When Phase is NULL:

·     If the %SystemDrive% environment variable is X:, then DeploymentType is set to NEWCOMPUTER and Phase is set to PREINSTALL. Otherwise, DeploymentType is set to REPLACE and Phase is set to VALIDATION.

·     If the OldComputer.tag file exists in the parent folder of the current running script, DeploymentType is set to REPLACE and Phase is set to VALIDATION. Otherwise, DeploymentType is set to REFRESH and Phase is set to VALIDATION.

For more information about these properties, see the corresponding topics in Properties.

 

Value

Description

Input

Environment variables. Contains the property values, custom property values, database connections, deployment rules, and other information that the scripts require to complete the deployment process

Output

·     ZTISCCM.log. Log file that contains events that this script generates

·     BDD.log. Log file that contains events that all MDT scripts generate

References

ZTIUtility.vbs. Includes support functions and subroutines that the script uses

Location

distribution\Scripts

Use

cscript ZTISCCM.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

_SMSTSMDataPath

˜

 

Architecture

˜

 

BDDPackageID

˜

˜

DeploymentMethod

˜

˜

DeploymentType

˜

˜

DeployRoot

˜

˜

Phase

˜

˜

ResourceRoot

˜

˜

ScriptRoot

˜

˜

ToolRoot

˜

˜

 

Related Topics

Scripts