[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Deploy Windows installation to many machines

Posted on 2011-05-03
Medium Priority
Last Modified: 2012-05-11

I need to deploy a Windows Vista Enterprise installation to five machines, currently my machine is a virtual machine in VMWare Workstation and I need to deploy to five machines in hosts or other virtual machines.

I was used the sysprep -generalize but whe two machines are in network at same time the Active Directory blocks the second one to start up.

How can I deploy these five machines.

Question by:jbernier_aio
  • 4

Accepted Solution

Zouleous earned 2000 total points
ID: 35517532
You shouldn't have run sysprep while it was on the domain.  Sysprep and then take the image.  Once the image is deployed the machine can then be joined to the domain.

Technically it is possible to sysprep a domain joined machine, but Microsoft does not support this probably for the same reason you are running in to a problem with it.

According to Microsoft you should be using WAIK (Windows Automated Installation Kit) tools to do this if you only have 5 machines.  Personally I prefer a more automated solution like MDT (Microsoft Deployment Toolkit), but I already have MDT setup in my environment.  Probably not worth the time to setup MDT and learn for just 5 machines in your case.  So here's my recommendation for you:

Start up a VM with that image, take it off the domain, and redo sysprep from a command line:
c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /shutdown

Download and install WAIK to a technician computer from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=696dd665-9f76-4177-a811-39c26d3b3b34

Once you install WAIK it will have a folder for it in your start menu.  Look for the documenation folder and open the file "Step-by-Step - Basic Windows Deployment for IT Pros".  Skip to Step 3: Creating Bootable Windows PE Media.  Follow the instructions from there to boot up the reference VM in WinPE and capture an image of it with imagex /capture to a network share.  Then on each of the 5 VMs boot them using your WinPE media. run diskpart,  and deploy that image from the network share with imagex /apply.  Then use Bcdboot to copy the boot files to your windows directory of the image.  That Step-by-Step document will detail the process.

Expert Comment

ID: 35517631
If you have already deployed your image to all the other VMs you might be able to just disable their network interfaces, boot them up, remove them from the domain, and sysprep each of them.  Then enable the network interfaces,  boot them up, and rejoin to the domain for each one.

Keep in mind either method is flawed because you will end up with an image that will probably work, but because you initially joined it to the domain before sysprep then you may have group policy that was applied to that initial image.

Ideally you should rebuild the image and this time sysprep it before you join the reference image to the domain.

Expert Comment

ID: 35517660
I mispoke in that last sentence.  What I should have said was:

Ideally you should rebuild the image and this time sysprep it before you deploy the image to the other VMs and THEN join the domain.

Author Comment

ID: 35689139
Thanks, but no one method works

I was recovered the original machine, join out from domain and run sysprep sysprep.exe /oobe /generalize /shutdown and next deploy my five virtual machines with VMWare tools.

The machines start and reconfigure again asking for host name, user name and next join in to domain and creates machines in domain, but problems begin with share folder, share files and printers. Its impossible add printer, when can access share folder and open files its impossible to save them.

Thanks for any additional help.

Expert Comment

ID: 35697363
The only other thing you could do from an imaging standpoint is rebuild the image, sysprep it, and copy the image to the VMs.

With that said, I'm kind of surprised it didn't work.  You may have something else going on.  Did you have the reference machine fully configured in production before you started this process?  I'm inclinded not to trust that reference image.  Microsoft recommends reference images get built fully automated partly for this reason.  In other words the OS gets installed with an unattend.xml, applications installed, Windows updates installed, and sysprep completed all automated and hands off.  This ensures consistency in the image and takes out the element of human error as much as possible.  MDT would allow you to automate the reference image build.

If you don't have experience with MDT then you should probably redo the reference image manually.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question