This script is used to create a virtual hard disk (.vhd or .avhd) file on the target computer and mount the .vhd file as a disk. Then, other portions of the LTI deployment process deploy the Windows operating system and applications to the newly created virtual hard disk. The script processes are as follows:
· The Class_Initialize method is used to initialize the VHDInputVariable variable.
· Validate that VHDCreateSource is defined and locates the source .vhd file (if specified).
· Generate a random .vhd file name if VHDCreateFilename equals RANDOM or "" (null).
· Verify that the folder exists where the .vhd file (specified in VHDCreateFileName) is to be created.
· Create the .vhd file using the values in VHDCreateSizePercent, VHDCreateSizeMax, and VHDCreateType.
· Create a differencing disk (if specified) using the value in VHDCreateDiffVHD.
· The newly created .vhd file and the optional differencing disk are mounted.
· The disk number of the mounted virtual hard disk is returned.
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 |
· ZTIVHDCreate.log. Log file that contains events that this script generates · BDD.log. Log file that contains events that all MDT scripts generate |
References |
· ZTIDiskUtility.vbs. Includes support functions and subroutines the script uses · ZTIUtility.vbs. Includes support functions and subroutines that the script uses |
Location |
distribution\Scripts |
Use |
cscript ZTIVHDCreate.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 |
VHDCreateDiffVHD |
˜ |
|
VHDCreateFileName |
˜ |
|
VHDCreateSizeMax |
˜ |
|
VHDCreateSource |
˜ |
|
VHDCreateType |
˜ |
|
VHDDisks |
|
˜ |
VHDInputVariable |
˜ |
|
VHDOutputVariable |
˜ |
|
Related Topics