Solved

Two Windows 7's in Boot Manager after ImageX wim imaging

Posted on 2011-09-19
8
2,462 Views
Last Modified: 2012-05-12
For some reason I get two Windows 7 options in the Windows Boot Manager after I clean in Diskpart and apply a .wim to the C-Drive and make bootable and reboot.
I'm imaging Dell laptop's that already had Windows 7 on them.

My script first runs diskpart:
SELECT DISK 0 
CLEAN
Create partition primary size=220373
SELECT PARTITION 1 
format quick fs=ntfs label="Windows 7"
ACTIVE 
ASSIGN letter=C
EXIT

Open in new window


It then simply applies the image:
net use T: \\WDSServer.Domain.com\c$\images /user:me@mydomain.com
g:\Imagex /apply T:\win7.wim 1 c:\
c:\windows\system32\bcdboot c:\windows /l en-us

Open in new window



Then I reboot and have to choose the first "Windows 7" option in the Windows Boot Manager to proceed with loading Windows 7.

Any way to fix this so I don't have to manually remove the 2nd entry within Windows?
0
Comment
Question by:garryshape
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 5

Expert Comment

by:dumpsterdivingdave
ID: 36561215
Can you post a copy of the BCD showing the two entries?
0
 

Author Comment

by:garryshape
ID: 36561306

Windows Boot Manager
--------------------
identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device                  partition=C:
description             Windows Boot Manager
locale                  en-US
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default                 {4778351e-863e-11e0-9db5-0025646233b0}
resumeobject            {4778351d-863e-11e0-9db5-0025646233b0}
displayorder            {4778351e-863e-11e0-9db5-0025646233b0}
                        {4778351a-863e-11e0-9db5-0025646233b0}
toolsdisplayorder       {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout                 30

Windows Boot Loader
-------------------
identifier              {4778351e-863e-11e0-9db5-0025646233b0}
device                  partition=C:
path                    \windows\system32\winload.exe
description             Windows 7
locale                  en-US
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence        {4778351f-863e-11e0-9db5-0025646233b0}
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \windows
resumeobject            {4778351d-863e-11e0-9db5-0025646233b0}
nx                      OptIn

Windows Boot Loader
-------------------
identifier              {4778351a-863e-11e0-9db5-0025646233b0}
device                  locate=custom:12000002
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  en-US
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoveryenabled         No
osdevice                locate=custom:22000002
systemroot              \Windows
resumeobject            {47783519-863e-11e0-9db5-0025646233b0}
nx                      OptIn
0
 
LVL 5

Accepted Solution

by:
dumpsterdivingdave earned 500 total points
ID: 36562155
How was the WIM captured/created?  Was it done from another computer or this computer?

It looks like when the WIM was captured, the BCD entry from imagex was also captured.  What you could try doing is mount the WIM file using imagex /mountrw image.wim 1 C:\Mountpoint and load the BCD file and see if that duplicate entry is also present there.  If so, delete it, and then use imagex /unmount C:\Mountpoint /commit.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:garryshape
ID: 36562725
Yeah that must be it. Duplicate existing in the system that was imaged. I'm not sure what image that was. I think after fixing it and then re-capturing it we should be good.

Thanks!
0
 

Author Comment

by:garryshape
ID: 36584087
Well I'm not sure why but I'm still getting two "Windows 7" entries on Boot Manager when I boot up.
I fixed this issue in MSConfig under Boot by deleting the entry .

1st says "Windows 7 (C:\windows) : Current OS; Default OS
2nd says "Windows 7 (\Windows)"

I had deleted 2nd entry and then ran sysprep and captured image to .wim file accordingly. Then I ran diskpart on the same laptop and cleared all and re-created, then applied the .wim I just saved, and sure enough upon booting up, 2 Windows 7 entries... :(
0
 
LVL 5

Expert Comment

by:dumpsterdivingdave
ID: 36584453
it sounds like it is creating a sysprep partition to boot from to capture the image, but is also capturing that partition as well (which it shouldn't).

If you use imagex to mount the wim on a host computer (just mount, not deploy) and then edit the boot file and commit the changes, you should be able to then push the image and only have one entry in the BCD.
0
 

Author Comment

by:garryshape
ID: 36591257
Ah ok, well I'm not sure how to edit the boot file.
I searched the mount point directory for a .bcd file but didn't find one.
It's an actual file, right? I cannot figure out its name.extension
0
 
LVL 5

Expert Comment

by:dumpsterdivingdave
ID: 36593690
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
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 Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

749 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