MDT Deployment Wizard Panes for Installing OS Roles and Features
My customer is deploying Windows Server 2008 R2 using MDT Lite Touch Installation. The wanted to have a way to select the operating system Roles and Features during the Deployment Wizard in a way similar to how the Install Roles and Features step works in the task sequence editor:
To that end, I created two Deployment Wizard panes. One allows you to select OS Roles and Role Services and one allows you to select OS Features:
When selections are made, the OSRoles, OSRoleServices, and OSFeatures MDT properties are populated based on the selected items. For these panes to actually do anything during the task sequence, there must be an Install Roles and Features step in the State Restore phase of the task sequence with no items selected. Also, the OSRoles, OSRoleServices, and OSFeatures properties can be pre-set in CustomSettings.ini (or the MDT database) and the values in those properties will show up as checked items in these panes. You can use the SkipOSRoles and SkipOSFeatures custom properties to skip either pane.
I have included in the attachment a standalone Wizard file (Roles_Features_Definition_ENU.xml), its associated script library file (DeployWiz_Roles_Features_Custom.vbs), and a launch wrapper script (Roles_Features.wsf) that runs ZTIGather.wsf and then launches this wizard. If you copy these files to your MDT Scripts folder and run
cscript Roles_Features.wsf
from that folder, this custom wizard will be launched and will allow you to test drive using these panes without running a deployment.
If you decide that you would like to use these in the main Deployment Wizard, just do the following:
Copy DeployWiz_Roles_Features_Custom.vbs to the MDT Scripts folder.
Copy the SelectRoles and SelectFeatures panes from Roles_Features_Definition_ENU.xml to the desired location in DeployWiz_Definition_ENU.xml.
Add DeployWiz_Roles_Features_Custom.vbs as a Global Initialization in DeployWiz_Definition_ENU.xml as shown in red below:
<Wizard>
<Global>
<CustomStatement><![CDATA[ document.title = "Windows Deployment Wizard" ]]></CustomStatement>
<CustomStatement><![CDATA[ window.resizeTo 700,500 ]]></CustomStatement>
<Initialization>DeployWiz_Initialization.vbs</Initialization>
<Initialization>DeployWiz_Roles_Features_Custom.vbs</Initialization>
<Validation>DeployWiz_Validation.vbs</Validation>
</Global>
None of the Roles_Features*.* files are needed to use the panes in the main Deployment Wizard. They are simply for taking the panes for a usability test drive.
Please note that this has only been tested with MDT 2010 Update 1 and may not work with earlier versions of MDT.
Disclaimer: The information on this site is provided "AS IS" with no warranties, confers no rights, and is not supported by the authors or Microsoft Corporation. Use of included script samples are subject to the terms specified in the Terms of Use .
This post was contributed by Michael Murgolo, a Senior Consultant with Microsoft Services - U.S. East Region.
Comments
Anonymous
January 01, 2003
Les deployments guys viennent de publier un billet intéressant permettant d’offrir deuxAnonymous
January 01, 2003
Très impressionnant. Is there a way to uninstall a feature (installed by default) or better not to install a feature ?Anonymous
January 01, 2003
Hi Ric,
The wizard pane I provided here is no longer necessary with current versions of MDT (2012 Update 1 or 2013). The MDT team "borrowed" my idea and incorporated it into MDT. :-) If your task sequence has the Install Roles and Features step in it you should see the built-in Wizard page for this.
Michael MurgoloAnonymous
September 07, 2010
Thanks Very good jobAnonymous
September 10, 2010
This is full of AWESOME! Good job, nice post, thanks for sharingAnonymous
January 20, 2015
Hi great Idea sadly I cannot get it to work I copy the said files as per your Instruction however Im not to sure where place the panes with the roles and features definition file.... when I run the script I simply get a blank deployment wizard with no roles of features to select HELP!!