MDT automates the removal (uninstallation) of operating system roles and features in Windows using the Uninstall Roles and Features task sequence step. This task sequence step must be run in the target operating system, not in Windows PE.

For ZTI task sequences that are not created using the MDT task sequence templates, ensure that you run the Use Toolkit Package and Gather task sequence steps prior to running the Install Roles and Features task sequence step. The Install Roles and Features task sequence step depends on the Use Toolkit Package and Gather task sequence steps.

Note   Before uninstalling roles or features, remove all dependent roles or features.

To configure the Uninstall Roles and Features task sequence step type to install Windows roles and features

1.   Edit task_sequence_name (where task_sequence_name is the name of the task sequence to which you want to add the task sequence step) for:

·     LTI as described in Configure the Task Sequence Properties Task Sequence Tab

·     ZTI using Configuration Manager 2012 as described in Configuring ZTI Task Sequence Steps in Configuration Manager 2012

·     ZTI using Configuration Manager 2007 R3 as described in Configuring ZTI Task Sequence Steps in Configuration Manager 2007 R3

2.   Add a new task sequence step based on the Uninstall Roles and Features task sequence type for:

·     LTI on the Task Sequence tab (In the task sequence hierarchy, click Add, point to Roles, and then click Uninstall Roles and Features.)

·     ZTI in the task sequence hierarchy (Click Add, point to MDT, and then click Uninstall Roles and Features.)

3.   On the Properties tab, configure the settings listed in Table 174 based on the requirements of your organization, and then click OK.

Table 174. Configuration Settings on the Properties Tab of the Uninstall Roles and Features Task Sequence Step Type

Setting

Description

Name

Type a name for the task.

Description

Type a description of the task.

Select the operating system for which roles are to be uninstalled

Select the target operating system to be deployed from the following list:

·     Windows 7

·     Windows 8

·     Windows Server 2003

·     Windows Server 2008

·     Windows Server 2008 Core

·     Windows Server 2008 R2

·     Windows Server 2008 R2 Core

·     Windows Server 2012

·     Windows Server 2012 Core

Select the roles and features that should be uninstalled

Select the check box next to the roles or features to be uninstalled.

Tip   You can click Select All to select all the roles and features or click Select None to clear all the roles and features.

 

For information on how to install Windows roles and features, see Configure Install Roles and Features Task Sequence Steps.

Related Topics

Configuring Roles and Features Task Sequence Steps