This script tattoos the target computer with identification and version information. The script performs the following procedure:

1.   Locate and copy the ZTITatoo.mof file to the %SystemRoot%\System32\Wbem folder. Any preexisting ZTITatoo.mof that exists at the destination will be deleted before starting the copy operation.

2.   Mofcomp.exe will be run using the following command:

%SystemRoot%\System32\Wbem\Mofcomp.exe -autorecover %SystemRoot%\System32\Wbem\ZTITatoo.mof.

3.   For all deployment methods (LTI, ZTI, and UDI), these deployment details are written for all deployment methods to the registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Deployment 4:

·     Deployment Method is set to the deployment method being used and can be set to LTI, ZTI, or UDI, depending on the deployment method being performed.

·     Deployment Source is set to the source for the deployment and can be set to OEM, MEDIA, or the value in the DeploymentMethod property.

·     Deployment Type is set to the DeploymentType property.

·     Deployment Timestamp is set to the current date in WMI date format.

·     Deployment Toolkit Version is set to the Version property.

4.   For LTI deployments, these deployment details are written  to the registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Deployment 4:

·     Task Sequence ID is set to the TaskSequenceID property.

·     Task Sequence Name is set to the TaskSequenceName property.

·     Task Sequence Version is set to the TaskSequenceVersion property.

5.   For all Configuration Manager deployments (ZTI and UDI for Configuration Manager 2012 or Configuration Manager 2007 R3), these deployment details are written to the registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Deployment 4:

·     OSD Package ID is set to the _SMSTSPackageID task sequence variable.

·     OSD Program Name is always set to "*".

·     OSD Advertisement ID is set to the _SMSTSAdvertID task sequence variable.

6.   For LTI deployments where an image is being captured, these deployment details are written to the registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Deployment 4:

·     Capture Method is set to the deployment method being used and can be set to LTI, ZTI, or UDI, depending on the deployment method being performed.

·     Capture Timestamp is set to the current date in WMI date format.

·     Capture Toolkit Version is set to the Version property.

·     Capture Task Sequence ID is set to the TaskSequenceID property.

·     Capture Task Sequence Name is set to the TaskSequenceName property.

·     Capture Task Sequence Version is set to the TaskSequenceVersion property.

7.   For all Configuration Manager deployments (ZTI and UDI for Configuration Manager 2012 or Configuration Manager 2007 R3) in which an image is being captured, these deployment details are written to the registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Deployment 4:

·     Capture OSD Package ID is set to the _SMSTSPackageID task sequence variable.

·     Capture OSD Program Name is always set to "*".

·     Capture OSD Advertisement ID is set to the _SMSTSAdvertID task sequence variable.

Note   This script is not designed to run on Windows PE.

 

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

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

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

References

·   Mofcomp.exe. Command-line .mof file compiler

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

Location

distribution\Scripts

Use

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

_SMSTSAdvertID

˜

 

_SMSTSPackageID

˜

 

_SMSTSSiteCode

˜

 

DeploymentMethod

˜

 

DeploymentType

˜

 

Version

˜

 

TaskSequenceID

˜

 

TaskSequenceName

˜

 

TaskSequenceVersion

˜

 

 

Related Topics

Scripts