Mike's Tech Head Blog

What’s a Tech-Head? Well, hard to explain, but they do use technology where ever it is possible, even if it is not very smart or even needed…

Google Ads

On My Twitter now...

Loading...

News

Tags

Community

Recent Posts

Archives

Recommended Links

Email Notifications

How to create a Windows 7/2008R2 Reference Image for deployment? – Part 1

There seems to be some kind of confusion on how to create reference images (or golden images, just another name). There has to be one way for each and every one, or does it.

I have decided to create a series of post on “how-to” on Ref Images and this is the first one.

What is a Ref Image?

Reference Image, Custom Image, Golden Image, well same stuff different name. It is when you take the image from Microsoft and add patches, applications and settings and then redeploy it. Now, there are some rules that must be followed and one is that the image must be sysprepped when deploying it. So that basic steps are:

  • Install the OS
  • Install Applications
  • Install Patches
  • Tweak it
  • Sysprep & capture

Seems pretty easy, but, there are a bunch of “but’s” here that is for sure. Since Windows Vista things have changed. Now what we get is an “Image”, it’s a wim file, so we do not really need to create one, we could use the WIM file as is and we also have Offline Servicing and that means that we could take the WIM file, mount it, update it with patches and save the WIM file and now deploy it and there are other real cool features that we can do, more on that later. Before we begin, there are some rules you need to follow:

The image must be sysprep:ed, otherwise it is not supported nor does it work correctly in the long run. This is NOT an option, you simply MUST sysprep the image.

The ref image should be created on a “neutral” computer system, and that means a Virtual Machine. There are two reasons here, short-term and long-term.

Short-term: Running on a VM makes it easier and faster, you can undo, test, re-test and do whatever stunt you need to. Running an a VM means that it require less infrastructure (I run my lab on my laptop).

Long-term: If you create the ref image on a new fast laptop/desktop, it will work, trust me. But you will most likely have problems later on, Why?. When you install Windows on a computer it will adjust itself to that particular model, regarding settings and drivers, some of these drivers will also install software and that is fine, well. When you capture the image you need to sysprep it first and that process is supposed to “generalize” the OS and it does. But every vendor does not really handle a sysprep the way they should. Applications that was installed as a part of a driver does not always gets “uninstalled” and that will be a problem when deploying on other hardware, vendor, version and so on. It works perfect if you want to have one image per model and per OS, but that will be like going back into the stone age.

Use Thin images as much as possible. It is much easier to add applications at deployment time instead of doing it in the image, the “only” reason I can figure to be a good reason is to save time, meaning it is much faster to install the app in ref image and the deploy the image. Well isn't that obvious?, No, many apps are being updated so often that when ever you deploy the image there will be a new version of that app and the first thing that happens is that the old app will uninstall and then install the new version, well that takes time. So when ever you think of adding an app to the image, think twice and focus on the question “Do I really save time doing this”

Do not try to solve every problem you have, just make it work and then add more and more things you need, but first just make it work. Think versions, V1, V2 and V3. Version number one is the “look it works, almost” and version number 2 is “It works, just some minor stuff to fix” and version number 3 is “WOW, Awesome”, (in most cases I never do V3)

It should e automated, creating ref images manually takes to much time, it is boring and the “human error factor” is the biggest issue and there for it should be as automated as possible

There are some things you need: (You don’t need the trial if you already have the OS of course)

Time to prepare your Image-Creation-System

We are now going to install WAIK, MDT, create a deployment share, import OS, create a task sequence, create boot images and the  we are done. After this you will be able to boot a VM, run the wizard and select to install a Ref Image including sysprep and capture. 

  • Install WAIK using default settings (next, next, next…)
  • Install MDT 2010 using default settings (next, next, next…)
  • Using Deployment Workbench - Right click on Deployment Shares and select
    • Create a Deployment Share
    • Location  = C:\MDTBuildLab
    • Share Name = MDTBuildLAB$
    • Share Description = MDT Build LAB
    • Click next on rest of the questions…
    • image
  • Using Deployment Workbench – Right click on the Operating system node and select “Import Operating system”
    • Browse to the DVD for the OS and import it using default settings
  • Using Deployment Workbench – Right click on the Task Sequences node and select “New Task Sequence”
    • Task sequence ID = RW7X86 (if the ref image is going to be Windows 7 x86 as an example)
    • Task sequence name = Ref – Windows 7 x86
    • Task Sequence Template = Standard Client Task Sequence
    • Operating System = Select Windows 7 x86 (if that is what you want)
    • Do not specify product key
    • OS Settings
      • Full Name = A name
      • Organization = A Org
      • Home page = Any
    • Do not specify the local Administrator Password
  • Right click on the task sequence you just created and select properties and enable Windows Update (It is disabled by default)
    image
  • Using Deployment Workbench – Right click on “MDT Build LAB” and select “Properties”
    • On the Windows PE x86 settings and on Windows PE x64 Settings
      • Check – Generate a Lite Touch bootable ISO image (This way we will be able to boot the VM on a ISO image and that is MUCH faster then booting over PXE)
  • Using Deployment Workbench – Right click and select update and wait

Done, we are ready to install a ref image. Create VM in Hyper-V, VMware or whatever you are using, attach the ISO file (They are in the C:\MDTBuildLAB\Boot folder, be sure to use the correct ISO. The x86 will only install X86 OS and x64 will only install x64 OS)

Next time I will spend more time on how to automate the process

/mike

Comments

Peter said:

Can you in the next post please go over on how to fix SP1 with lang packs and Offcie 2010 (time savers) :)

# March 23, 2011 8:35 AM

Sam Stamey said:

Hey Mike, great post. If a person is using SCCM and MDT would they still setup the MDT process like this and use MDT for image capture and SCCM to deploy or do you recommend doing it all from within SCCM?

Thank you,

Sam

# March 23, 2011 2:45 PM

Scott said:

Michael,

Great start to your blog.....I'm often asked "why don't you add this app or that app to your ref. build?" and I can now come up with the answer....the uninstall of the app prior to the install of the update will take time so keeping it thin hopefully will save time in the end...

thanks

Scott

# March 23, 2011 2:46 PM

Cliff Woodward said:

Hi Mike,

Great tutorial. I'm currently looking at ways to deploy 500 Windows 7 images across our business and I will be using MDT to carry out this task.

Quick question for you if I may:

Can I use Microsoft Virtual PC 2007 to create my reference image?

Best Wishes,

Cliff

# March 23, 2011 3:42 PM

Onno Meijer said:

Very interesting! I've done this numerous times voor XP, but just getting round to making the ref image voor Win7. I'm especially interested in how to deal with the activation in the ref image. So I'm looking forward to your next article!

# March 27, 2011 9:44 AM

Mikael Nystrom said:

Hey, big response on this post and yes I will cover

- Activation: Easy, you never activate a Ref Image. Instead it is activated during deployment on the final destination. That also means that if I need a new ref image I just create a new one, since it is an automated process I don’t have to do anything manually anyway

-Virtual PC 2007: Yes, you can use that, it does not matter what virtualization platform you use as long as it is virtualized. The only issue I have with VPC2007 is that I cannot do 64 bit images in that, so I would prefer to use one of the others, Hyper-V, VMware or Virtual Sandbox

-SCCM: YES!!! You always do Ref Images in MDT, EVEN if you have SCCM, SCCM is great to deploy, not so great on creating ref images.

-SP1, L-Pack and Office: Yes that will be covered in the next part.

# April 3, 2011 7:33 PM

JE said:

PART 2 PART2 !!!!!

# April 18, 2011 2:03 AM