Solved

Windows 7 WIM Deployment

Posted on 2013-01-29
11
1,194 Views
Last Modified: 2013-02-20
Hi.

Recently I have been researching deployment methods for Windows 7 in order to speed up our installs. To start with, this is what I have done so far...

- Set up a 'base' system. Installed Windows 7 Professional 64-bit with all Windows Updates, additional programs, runtimes etc. Ran Sysprep with oobe and generalize and shut down.

- Created a Windows PE disk with Imagex on. Booted this on the 'base' system and captured a WIM file.

- Obtained an ISO of Windows 7 Professional 64-bit and extracted it with 7-zip. Removed the install.wim file from the sources folder and replaced it with my custom wim - also called install.wim

- Used ImgBurn to create a new iso (also tried using a bootable USB).

Booting from this all seems to go well at first.
- Copying Files
- Expanding files
- Installing features
- Completing installation
All of this completes, then it restarts the system. Upon restarting it gets to "setup is starting services" then throws the below error message.

"Windows could not finish installing the system. To attempt resume configuration, restart the computer."

Restarting the computer just re-creates the error again and again.


I'm stuck as to what is causing this error. Any ideas? Can you spot anything I have done incorrectly?
0
Comment
Question by:KTBerwick
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 13

Expert Comment

by:Gabriel Clifton
Comment Utility
Could be sysprep corruption, sysprep did not completely before shutdown or something not configured correctly in the unattend.xml. On the base system where you created the image and ran the sysprep from, what does it do if you boot it up normally?
0
 

Author Comment

by:KTBerwick
Comment Utility
For some unknown reason it never came to mind to boot up the base system and see if it actually works. Such an obvious thing to check as well!

Unfortunately I can't check until tomorrow since I'm not in the same building any more.

Is it essential to create an unattend.xml file? I did not create one during this process.
I don't mind inputting the Username, time zone, update preferences etc manually so I left it out (for now anyway). Didn't want to add more complications in something I already know little about.
0
 
LVL 13

Expert Comment

by:Gabriel Clifton
Comment Utility
The sysprep uses the unattend.xml to help make it generic again.
0
 

Author Comment

by:KTBerwick
Comment Utility
In that case I will definitely look into making the unattended.xml file.

An very odd development...

If I reboot the system into safe mode it gets to the same stage and tells me the installation cannot be completed in safe mode, as you would expect. When I reboot again, normally this time, it opens this Windows Installation screen back up:
- Copying Files
- Expanding files
- Installing features
- Installing updates
- Completing installation

They are all marked as completed apart from the last entry. After about 30 seconds it reboots the computer and the installation completes! All my installed programs and updates are there, everything seems as expected.

Done another fresh install (in a VM) and exactly the same thing happened. Seems like something is getting stuck and going into safe mode dislodges it.

So I guess I'm getting to where I wanted but in a very weird way.
0
 
LVL 13

Expert Comment

by:Gabriel Clifton
Comment Utility
That is strange considering that I cannot think of anything in safemode that will "dislodge" the final step.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:KTBerwick
Comment Utility
Me neither. Very strange indeed but hey it works.

I'l try creating another image in the next few days and see how that goes. I need a Home Premium image anyway.
0
 
LVL 22

Assisted Solution

by:Adam Leinss
Adam Leinss earned 500 total points
Comment Utility
Why not use MDT 2012 from Microsoft?  It's all wizard driven and includes everything you need "in-the-box".
0
 

Accepted Solution

by:
KTBerwick earned 0 total points
Comment Utility
Thank you very much for suggesting MDT. I used it to create another WIM of Win 7 Home Premium and it was a LOT easier.

I have figured out the cause of this error message and a solution.

It was nothing to do with capturing and deploying the image. Sysprep was not completing fully because of AVG Antivirus that I had installed. I uninstalled AVG and replaced with MSE before running Sysprep again. This time it went without a hitch.


 I used this method to find out what was causing the error...


This issue is caused by certain registry keys that are either:

a) Larger than 8kb

b) Set with incorrect permissions

c) Corrupt in some way


When you see the error message, do the following:

1.) Push Shift+F10 to get to a command prompt

2.) Navigate to C:\windows\Panther

3.) Find the Setup.etl file and find a way to copy this file off of the system (I copied it to the D:\ partition and used Ghost to gather that partition and get the file off)

4.) Copy the setup.etl file from the corrupted system to another computer that has Windows 7.  Put it on the root of C:\ for easiest access.

5.) Open a Command Prompt on the Windows 7 computer.

6.) Navigate to the root of C:\ (or wherever you saved the file)

7.) Type "tracerpt setup.etl -o logfile.csv"

8.) Close the command prompt and open up logfile.csv in your text editor of choice.

9.) Look through the log file (towards the end probably) for messages that say "Failed to process reg key or one of it's decendants"  For me, the exact eror looked like this: "Failed to process reg key or one of its descendants: [\REGISTRY\MACHINE\SOFTWARE\ESET\ESET Security\CurrentVersion\Plugins\01000200\Profiles\@My profile]"  If you search for "reg key" or "failed to process" you should find the failure.

10.) Remove this software from your image, or find out how to get the registry key that is failing to work properly.

Credit to Jeff Harrison on TechNet for this solution.
0
 
LVL 22

Expert Comment

by:Adam Leinss
Comment Utility
Interesting!  I added that to my notes.
0
 
LVL 16

Expert Comment

by:Mike T
Comment Utility
Hi,

You've pretty much got there on your own with help from Jeff, so well done.

For anyone reading the solution in future, there were two uneccessary steps: 1 - the bait and switch with install.wim, 2 - putting apps in the original image.

Unfortunately antivirus products wreak havoc with OS deployment, so avoid installing until the OS is done.

Using MDT instead is by far the easiest, quickest way to achieve all the above, as you've found. Checkout the customsettings.ini file for serious automation if you need it.

Mike
0
 

Author Closing Comment

by:KTBerwick
Comment Utility
It fixed my problem.
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Suggested Solutions

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
OfficeMate Freezes on login or does not load after login credentials are input.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

763 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now