MDT 2013 - Part II: Create a Deployment Task Sequence and Deploy a Custom Windows Server 2012 R2 Base OS Image
Published Sep 20 2018 02:32 AM 2,205 Views

First published on TechNet on Aug 11, 2014

Hey there Mike Hildebrand here with Part Two of this MDT series. To catch up, go here and read Part One and then come back …

Picking up where we left off, we had MDT setup and running and we'd captured an image of a reference server system.

In Part Two, we'll create a Task Sequence with some custom elements and use it to deploy the reference image we created in Part One onto a physical and a virtual machine.

Let's get crackin…

 

Create a Deployment Task Sequence

 

Open the MDT Workbench UI and right-click "Task Sequences" and choose "New Task Sequence" to launch the Wizard:

  1. As mentioned in Part One, use a solid standard for your Task Sequence IDs and Names, and description/comments fields for who/what/when
    1. Compare the screenshot below to the same screen in Part One – one has a little info; one has a lot of info
    2. Charity's Tip here – "keep it simple"

  2. Choose "Standard Server Task Sequence" for the Template…

  3. Choose the customized WIM that was captured earlier…

  4. Depending on your media and licensing situation, you can enter a key here or plan to use a KMS system for activation…
    1. Charity's Tip – if your company has Volume License Keys, DON'T enter one here – you'll only need a Product Key here if you're using MSDN or retail box software that came with a product key
    2. Volume License Media will activate against a properly configured KMS or AD-Based Activation system once the deployment completes
      1. Charity has a great post on KMS here - http://blogs.technet.com/b/askpfeplat/archive/2013/02/04/active-directory-based-activation-vs-key-m...

  5. Enter the desired information for these fields…

  6. Enter a password for the local Administrator account or choose to get prompted for one when you build a system
    1. This should be considered a 'one-time use' password, only used by this specific build process to auto-login during the build process.
      1. The password information is obfuscated in the deployment process but it should be considered 'discoverable'
    2. Do not use one of your corporate standard passwords here
    3. Be sure you execute your normal local administrator password change processes on the deployed OS once the deployment is complete

  7. Review the Summary and click Next… then Finish.

 

Customize the New Deployment Task Sequence

 

We now have a Task Sequence but we need to add some additional Task Sequence "Actions" to meet our needs.

I'm going to use the 'Apply Network Settings' Action to specify a particular IP address for a DNS server, but use DHCP to get the IP address for the machine:

  1. Right-click the new Task Sequence in the MDT UI and choose 'Properties' then click the Task Sequence Tab.
  2. Click the "Add" drop-down
  3. Choose "Settings" > "Apply Network Settings"

  4. Use the Up/Down green arrow buttons to position the Apply Network Settings action AFTER the PostInstall group of actions.
  5. Then, use those same buttons to move the Restart Computer action that was in the Postinstall group to AFTER your Apply Network Settings action (see the screenshot below)
    1. These steps make sure the NIC settings get applied at a point when the deployment is far enough along that the OS can 'see' the NIC but before an OS reboot might prevent the settings from sticking.

  6. Highlight the "Apply Network Settings" action and click the "star" button to start the Network Settings Wizard:

  7. Give the entry a name – 'NIC' in the example here
  • This names the first network adapter in the OS, usually defined in the OS as 'Local Area Connection'

 

8.  Leave the setting to 'Obtain an IP address automatically' selected

9.  Select the DNS tab

    •  Select 'Use the following DNS Servers'

    • Click the yellow 'star' and enter the IP address of the desired DNS server in the blank
    • Click Add > OK

10.  Note the entry now on the "Properties" tab. Click Apply.

11.  Click the OS Info tab

12.  Click 'Edit Unattend.xml'

  • The first time you do this to a given OS image, the image is 'cataloged' and this takes several minutes …

13.  Eventually, the "Windows System Image Editor" dialog box will open the Unattend.XML file associated with this Task Sequence.

14.  Expand/drill-down in the Answer File section (middle pane of the UI) until you get to '4 specialize'

15.  Drill-down into that as shown in the screenshot to get to the 'copyProfile' setting and set it to "true"

    1. This is the magic moment where many of our customizations from our base image will get copied over to the Default User profile during the new OS deployment ( most-notably, the customized Start screen layout )
    2. Any user who logs into the new system will get a profile created that is based on that Default user profile and those settings/configs will be set

  • Unrelated-but-interesting note: TimeZone shown here is a legacy setting and doesn't apply to OSes beyond Vista
16.  Review any warnings you get at the bottom then close the dialog box … in my case, the warnings are not applicable or of concern.

 

Deploy the Image via the Customized Deployment Task Sequence

Burn the bootable "LiteTouchPE" ISO image for the appropriate architecture to a USB stick for a physical deployment or simply mount the ISO in a VM for a virtual deployment

  • Note – this ISO does NOT include the entire WIM/image, this is just a boot image to initiate pulling down the customized build/image

.

 

For this first deployment example, I deployed to a virtual machine (booted via the mounted ISO file).

  1. Click the 'Run the Deployment Wizard…' button…

  2. Enter credentials to allow connection back to the MDT server/share and click OK:

  3. The MDT Rules are then processed…

  4. Choose the custom Deployment Task Sequence we created earlier
    1. Note the details that display here for the name and "comments" we provided when we created the Task Sequence.
    2. If I'd listened to Charity, it would be simple, yet clearly informative – do whatever works for you and your org/standards

  5. Enter the desired settings for Computer name and domain join info
    1. You can define the OU, too – nice touch, MDT dev team!
      1. Just make sure you use the correct LDAP path, in the correct "distinguished name" format

  6. Note, per the Rules I defined in Part One, locale settings are indeed grayed out and my time zone defaults to CST (I am able to change it, if desired).

  7. Expand the details and review – this simple step helped me avoid wasted time several times due to mistakes – then click Begin.
    1. Note: if you dig deeper into MDT, you can automate or pre-populate most (all) of the prior prompts via the customsettings.ini and/or bootstrap.ini files
    2. That is more advance and out of scope for this blog series.

  8. The deployment begins…

  9. There will be several reboots and auto-logins as the process continues…

 

 

 

 

  • NOTE: I saw this fly-out appear during the build process but I didn't touch anything and the deployment process handled it fine, continuing on without user intervention:

 

Finally (hopefully?), you'll end up here, logged in and with a "Success" dialog box.

Click Finish to close the box and review your deployment:

    • Desktop color? Check!
    • Desktop icons? Check!
    • BG info? Check!

 

Start screen layout? Check!

    • Remember, this comes from the DEPLOYMENT Task Sequence edit of the Unattend.XML we did above - where we set the 'CopyProfile' entry to TRUE. This is NOT edited/set in the 'CAPTURE' Task Sequence from Part One
    • This took me a bit to comprehend - I thought I needed to 'capture' the Start screen
    • However, the Start screen and other profile settings are included in a captured OS.
    • It is when we DEPLOY the OS that we need to tell the deployment process "copy the profile."

Note - you can only deploy a pre-defined customized Start screen on certain versions of Windows:

    • Any GUI Windows Server 2012 or newer version
    • Windows 8.x Enterprise
    • Windows 8.x Pro that is domain-joined

 

Addendum – "What if I want to enter static IP settings on a given build?"

Well, the MDT folks have you covered here, too. This ain't their first build rodeo J

For this second deployment example, I deployed to a physical machine booted from the LiteTouch ISO burned to USB media.

  • Most of the screen-shots here (except the last one) are from a VM due to the ease of capturing them.

     

  1. At the Welcome screen, click 'Configure with Static IP Address…' at the bottom…

  2. Uncheck the 'enable DHCP' box and that will light up the NIC settings fields.
  3. Enter the NIC settings you want and click Finish…

  4. Click the "Run the Deployment Wizard …" button and continue on…

  5. Once the deployment completes, you'll see your static NIC settings you defined above are now set on your system. Awwwwwe YEEEAAAAHHH

 

Well folks, there you have it. MDT 2013 via a fairly simple, yet realistic "customized" Server OS deployment process. I hope you find MDT as amazing as I did - and I only scratched the surface.

If you haven't explored this tool yet but are curious, I hope the MDT posts on our blog get you going - you can do some great things without too much over-head or ramp-up time.

Kudos to the folks who work on the MDT (or BDD as it was once called) now and over the years! Here's a blog you should check out by folks who live and breathe deployment: http://blogs.technet.com/b/deploymentguys/

 

Super-thanks to Heath L., Charity, Kyle and Joao for their help in nailing down some of the technical details for this series, as well as my enterprising buddy, "Half-marathon" Crawford.

 

Cheers!

Version history
Last update:
‎Feb 19 2020 08:49 PM
Updated by: