This script installs server roles for target computers that are running Windows operating systems. The script reads the OSRoles, OSRoleServices, and OSFeatures properties to determine what should be installed.

Note   This script is intended to be called only by the Install Roles and Features and Uninstall Roles and Features task sequence steps. Calling this script directly is not supported.

 

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

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

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

References

·     CMD.exe. Allows running of command-line tools

·     OCSetup.exe. Adds or to removes Windows optional components

·     ServerManagerCmd.exe. Installs, configures, and manages Windows Server 2008 roles and features

·     Sysocmgr.exe. Adds or removes Windows components

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

Location

distribution\Scripts

Use

cscript ZTIOSRole.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.)

/Uninstall

If provided, this argument indicates that the roles and features will be uninstalled. If not provided, the script assumes the roles and features will be installed.

 

Properties

Name

Read

Write

IsServerCoreOS

˜

 

OSFeatures

˜

 

OSRoles

˜

 

OSRoleServices

˜

 

OSVersion

˜

 

SMSTSRebootRequested

 

˜

 

Related Topics

Scripts