Logo
PREGNANCY
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows 7

Automating the Deployment of Windows 7 : Using the Microsoft Deployment Toolkit 2010 (part 2) - Creating a Task Sequence

5/19/2011 11:26:34 AM

3. Creating a Task Sequence

A task sequence is a component that you add to the deployment share. It is formulated as an XML file but, unless you really want to, you never have to look at the XML file. Instead, the Deployment Workbench leads you through the process of creating it.

The task sequence provides a list of tasks that are performed in a specific order to complete the installation. As an example, Figure 1 shows the validation phase of a task sequence with the Validate task selected. This task validates that the system has a minimum amount of memory and minimum processor speed. It can also be configured to check that a minimum amount of disk space is available and even verify that the system that is being overwritten is either a client or a server.

Figure 1. Viewing the Validate task in a task sequence

Several task sequence templates are available. Each of these templates is created with underlying XML files provided by Microsoft. These are the available templates:

  • Sysprep and Capture

  • Standard Client Task Sequence

  • Standard Client Replace Task Sequence

  • Custom Task Sequence

  • Lite-Touch OEM Task Sequence

  • Standard Server Task Sequence

  • Post OS Installation Task Sequence

Each template includes a predefined group of steps organized in phases. When one task completes, control is passed on to the next task until the operation completes.

As an example, Figure 2 shows part of the Standard Client Task Sequence that will be created in the next exercise. This is a typical task sequence, and as you can see, it can include a significant number of steps.

Figure 2. Viewing the properties of a task within a task sequence

In the figure, the State Capture and State Restore phases are opened and the Generate Application Migration File step is selected. Notice that the command-line command is calling one of the scripts that were created when the deployment share was added to the Deployment Workbench. Again, all of this is part of the template. The State Capture phase will automatically capture migration data (if any exists) on the computer, and later the Restore User State phase will automatically restore migration data.

Every step also has options, as shown in Figure 3. You can use the Disable This Step option to disable an option temporarily. As you're testing an image, you may want to try omitting a step or two. Instead of deleting the step, you can disable it, and if things don't work as you expected, you can easily add the step back by simply enabling it. Disabled steps have a dimmed icon.

Figure 3. Viewing the options of a task within a task sequence

In addition, you can modify the response to errors. Normally, an error condition will cause the deployment to fail. However, you may want to ensure the installation continues even if a step fails. For example, if the system is unable to get updates, you may want to allow it to continue and have the updates applied after the installation completes. You can also add advanced task sequence conditions, as shown in the drop-down box.


Exercise: Creating a Task Sequence

  1. Right-click Task Sequences and select New Task Sequence.

  2. Enter Win7ThinImage as the task sequence ID. Enter Windows 7 Ultimate Installation as the Task Sequence Name. Users will see this during the installation. You can also add comments in the Task Sequence Comments section. Users will also see this text during the installation.

  3. Accept the default of Standard Client Task Sequence and click Next.

  4. Select the Windows 7 Ultimate image from the Windows 7 Images install.wim operating system. This was added to the Deployment Workbench in an earlier exercise. Click Next.

  5. On the Specify A Product Key page, select Do Not Specify A Product Key At This Time and click Next.

  6. Enter the name of your organization (or Home Sweet Home) on the OS Settings page. Enter bing.com (or another website address) as the Internet Explorer home page. Click Next.

  7. Enter P@ssw0rd in the Administrator Password and Confirm Administrator Password text boxes. Click Next.

  8. Review the information on the Summary page and click Next. When the operation completes, click Finish.


Leave the Deployment Workbench open to complete the next exercise.

Once a task sequence has been created, it can be modified. You can right-click the task sequence within the Deployment Workbench and select Properties to view the details of the task sequence.

You can add additional tasks to a task sequence, as shown in Figure 4. Notice that there are several different groups of tasks. Each group has additional tasks that can be selected.

Figure 4. Adding additional tasks to a task sequence

In the figure, the Run Command Line task is selected. This allows you to run any command including batch files and scripts. The old scripting mantra comes to mind—if you can imagine it, you can do it with a script. You have very few limitations.

You can also remove tasks with the Remove button and modify the order of tasks using the Up and Down arrows.

3.1. Creating Windows PE Images by Updating the Deployment Share

Once the deployment share has been created, you need to create the Windows PE images. The process is referred to as updating the deployment share.

Exercise: Updating the Deployment Share

  1. Right-click the MDT deployment share, and select Update Deployment Share.

  2. Review the information on the Options page, and accept the default of Optimize The Boot Image Updating Process. Click Next.

  3. On the Summary page, click Next.


When complete, the following image files will have been created in the Boot folder of the deployment share:

  • Lite Touch Windows PE.wim

  • LiteTouchPE_platform.iso

You can then use these files to deploy images to systems. As an example, you could burn the .iso image to a CD and use it to boot a system. This is easily done in Windows 7 by right-clicking the .iso file in Windows Explorer and selecting Burn Disc Image.

When you boot to this media, it will start Windows PE, and ultimately you'll see a display similar to Figure 5. From here you can select Run The Deployment Wizard.

If you follow this Deployment Wizard and click Begin at the end of it, it will partition your system and you will lose all data on the system. Make sure you have saved all of your data before clicking Begin.


Figure 5. Booting to the MDT Deployment Wizard

After clicking Run The Deployment Wizard, you'll be prompted to enter domain credentials, pick a task sequence, and select several other options from the wizard. You can reduce the manual choices by modifying the answer files as much as desired. After you've answered the last question for the wizard, you can select Begin to start the installation.

Other -----------------
- Automating the Deployment of Windows 7 : Using the Microsoft Deployment Toolkit 2010 (part 1) - Installing MDT 2010 & Creating a MDT 2010 Deployment Share
- Deploying Images with Windows Deployment Services (part 3) - Capturing Images with WDS
- Deploying Images with Windows Deployment Services (part 2) - Adding and Configuring WDS
- Deploying Images with Windows Deployment Services (part 1) - WDS Requirements & Deploying Images with WDS
- Automating the Deployment of Windows 7 : Imaging with the Windows Automated Installation Kit (part 3) - Preinstallation Environment & System Image Manager
- Automating the Deployment of Windows 7 : Imaging with the Windows Automated Installation Kit (part 2) - Understanding the Deployment Image Servicing and Management Tool
- Automating the Deployment of Windows 7 : Imaging with the Windows Automated Installation Kit (part 1) - ImageX
- Automating the Deployment of Windows 7 : Choosing a Deployment Strategy
- Automating the Deployment of Windows 7 : Understanding and Designing Images
- Planning for the Installation of Windows 7 : Planning and Managing Client Licensing and Activation (part 2)
- Planning for the Installation of Windows 7 : Planning and Managing Client Licensing and Activation (part 1)
- Planning for the Installation of Windows 7 : Virtualization Considerations (part 3) - Installing Integration Components
- Planning for the Installation of Windows 7 : Virtualization Considerations (part 2) - Windows XP Mode
- Planning for the Installation of Windows 7 : Virtualization Considerations (part 1) - Considering a VDI Environment
- Planning for the Installation of Windows 7 : Designing User State Migration
- Planning for the Installation of Windows 7 : Local Installation
- Planning for the Installation of Windows 7 : Choosing a Windows 7 Edition
- Wireless Networking (part 2) - Connecting to and Managing Wireless Connections
- Wireless Networking (part 1) - Installing and Configuring a Wireless Adapter
- Configuring Dial-Up, Broadband, Wireless, and VPN (part 3)
 
 
Most view of day
- Microsoft Systems Management Server 2003 : Configuring the Software Distribution Component
- Maintaining Security : Monitoring Your Security Settings, Configuring the Windows Firewall
- Extending Dynamics GP with Free Software : Extending Dynamics GP with the Support Debugging Tool, Coloring windows by company
- CorelDRAW X5 : Finding and Saving Important Characters
- Sharepoint 2013 : Office 2013 and an Overview of Integration (part 2) - Opening and Saving to SharePoint
- Microsoft Project 2010 : Fine-Tuning Task Details (part 4) - Adjusting Working Time for Individual Tasks
- Maintaining Desktop Health : Monitoring Reliability and Performance (part 1) - Component Binaries, Opening the Reliability and Performance Monitor, Using Resource Overview
- Managing Windows 7 : Controlling the Power Options
- Sharepoint 2013 : Overview of The Client-Side Object Model and Rest APIs - Client-Side Object Model API Coverage
- SharePoint 2013 Request Management (part 2) - Request Management Administration
Top 10
- Configuring and Troubleshooting IPv6 in Windows Vista (part 4) - Troubleshooting IPv6 Connectivity
- Configuring and Troubleshooting IPv6 in Windows Vista (part 3) - Configuring IPv6 in Windows Vista Using Netsh , Other IPv6 Configuration Tasks
- Configuring and Troubleshooting IPv6 in Windows Vista (part 2) - Configuring IPv6 in Windows Vista Using the User Interface
- Configuring and Troubleshooting IPv6 in Windows Vista (part 1) - Displaying IPv6 Address Settings
- Deploying IPv6 : IPv6 Enhancements in Windows Vista
- Games and Windows 7 : Games for Windows - LIVE (part 2) - Accessing Games for Windows - LIVE from within Compatible Games
- Games and Windows 7 : Games for Windows - LIVE (part 1) - Using the Games for Windows - LIVE Marketplace
- Sharepoint 2013 : Client-side Programming - Working with the REST API (part 3)
- Sharepoint 2013 : Client-side Programming - Working with the REST API (part 2) - Working with the REST API in JavaScript
- Sharepoint 2013 : Client-side Programming - Working with the REST API (part 1) - Understanding REST fundamentals
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro