Configuration Manager 2012 and Configuration Manager 2007 R3 require packages to be numbered sequentially starting with PACKAGES001, with no gaps in the number sequence. Otherwise, installation will fail.

This script allows you to define and name variables using identifying information about the program to run—for example, ComputerPackages100, ComputerPackages110, or CollectionPackages150. Then, when this script is run, Configuration Manager 2012 or Configuration Manager 2007 R3 finds all variables that match a pattern (for example, all variable names that contain the string Packages) and builds a sequential list, without gaps, using the base name PACKAGES.

For example, if the following variables were defined (using computer variables, collection variables, or in CustomSettings.ini or the MDT DB, for example):

·     ComputerPackages100=XXX00001:Program

·     ComputerPackages110=XXX00002:Program

·     CollectionPackages150=XXX00003:Program

·     Packages001=XXX00004:Program

After the script runs, the list would be:

·     PACKAGES001=XXX00004:Program

·     PACKAGES002=XXX00001:Program

·     PACKAGES003=XXX00002:Program

·     PACKAGES004=XXX00003:Program

Configuration Manager 2012 or Configuration Manager 2007 R3 would then be able to run all four programs.

 

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

·     ZTICoalesce.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 ZTICoalesce.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.)

/CoalesceDigits:value

Specifies the number of digits that need to be provided when creating the numbering sequence. For example, a value of:

·     2 would create PACKAGE03

·     3 would create PACKAGE003

The default value if this argument is not provided is 3.

 

Properties

Name

Read

Write

CoalescePattern

˜

 

CoalesceTarget

˜

 

 

Related Topics

Scripts