Solved

Using sysprep to detect hardware configs only

Posted on 2004-08-29
13
1,002 Views
Last Modified: 2007-12-19

I have imaged 1000s of computers using Ghost versions over the years, both from floppy boots and using GhostClient software on the destination computers.

I have never, however, pushed out ONE image to computers that have different hardware configurations at once. (Correction, I've tried that and the computers with different hardware configs barely get past BIOS screen when done being imaged).  

Simply put, I am done with making 40 different images for 40 different Dell models.  I want to send the image I have now out to this set of computers (30 that have XP currently installed (with same hardware config), 30 that have Win2000 installed (with another hardware config).  I have made an image that I am extremely happy with (unfortunately using Dell's factory installed Windows XP - although we have volume license - I have read how people have Windows Activation problems when they complete the Ghost because they used the Dell XP configs rather than their volume license CDs to make the original model. )

I have read about the [SysprepMassStorage] section of the sysprep.inf and it seems that's all I need.  I know nothing here... I need a lot of help.....  Almost a play by play... was there something I needed to do first before creating the image?  Now that I have an image, what do I do to send it out?

Basically - can't I just make it so when the computers are done receiving the image, they reboot and look for new hardware configs, and install the new drivers for them?  That's all I want it to do.  :-)  Am I dreaming?

Thanks in advance...  this is my first time here...
0
Comment
Question by:dpezzotta
  • 6
  • 5
  • 2
13 Comments
 

Author Comment

by:dpezzotta
ID: 11927129

I just realized that I used my Volume License...  so please disregard that part of my question.  That will not be an issue.  Activation key is disabled in this version automatically.
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11927175
This answer file was provided by tstadden, another expert...  Additionally, I have an answer file outlining Dell Mass Storage drivers, if I can find it...

======

There are certain limitations with the use of Sysprep and a third party imaging solution when placing the image in systems with different controllers/motherboards (Hals).  This can be overcome with the proper use of the answer file.  The following addresses this limitation.  (Note the last lines.)

Here's an example SYSPREP.INF with comments:

[Unattended]
UnattendMode = FullUnattended                                    No user Interaction
OemSkipEula = no                                               Display the EULA "Yes to accept" dialog box
ExtendOemPartition = 1        "Grow" the partition to fit the drive (if no other partitions on it)
DriverSigningPolicy=Ignore                  Allow non-certified drivers to install without warning
OemPreinstall=Yes

OemPnPDriversPath=Packages\nic;Packages\audio;Packages\video;Packages\chipset;

' (Which corresponds to C:\Packages on a machine being SYSPREPped)

InstallFilesPath=C:\sysprep\i386
TargetPath=\winnt

[Oem_Ads]
 background=background.bmp

[GuiUnattended]
TimeZone=10                                                              Set the Time Zone to this    preset value
OemSkipWelcome = 1                                                  Bypass Welcome screen
OemSkipRegional = 1                                                   Skip regional options page
OEMDuplicatorstring="XP Pre-Install by Bpecht"          The title of the mini-setup routine

[UserData]
FullName="user"        The name of the machine's owner (leave this line out if not known)
OrgName="CompanyName"               "Workgroup" name (leave this line out if not known)
computername=*                       * indicates a random machine name based on the orgname

[Display]                                                                Pre-define the screen resolution after setup
BitsPerPel=24
Xresolution=1024
YResolution=768
Vrefresh=60

[TapiLocation]                                                            Pre-define the area code (for modems)    
AreaCode=614

[Networking]
InstallDefaultComponents = Yes                                    Don't customize the network settings

[GuiRunOnce]                     Section to install additional applications AFTER Windows Setup  

[data]
UseBIOSToBoot = 1
UnattendedInstall = Yes

;The last 2 sections allow a SYSPREP image to install on a machine with ANY of the drive controller types matching the plug and play IDs of the lines below. You can add other controllers, like Ultra320 SCSI and Serial ATA, to this section of the file.
;Format of this section is:
;   PlugAndPlayID = location of supporting *.INF file
;Any lines ending in MSHDC.INF are for IDE
;Any lines ending in SCSI.INF are for SCSI

[SysPrep]
BuildMassStorageSection=Yes

[SysprepMassStorage]
PCMCIA\*PNP0600=%systemroot%\inf\mshdc.inf
*PNP0600=%systemroot%\inf\mshdc.inf
PCMCIA\KME-KXLC005-A99E=%systemroot%\inf\mshdc.inf
PCMCIA\_-NinjaATA--3768=%systemroot%\inf\mshdc.inf
PCMCIA\FUJITSU-IDE-PC_CARD-DDF2=%systemroot%\inf\mshdc.inf
*AZT0502=%systemroot%\inf\mshdc.inf
PCI\CC_0101=%systemroot%\inf\mshdc.inf
PCI\VEN_10B9&DEV_5215=%systemroot%\inf\mshdc.inf

;End of File


Additional Sysprep Info and Links:

Running Sysprep
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/reskit/prbc_cai_ussz.asp

Sysprep Components
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/reskit/prbc_cai_dkfj.asp

Description of New Features in Sysprep for Windows XP
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q282190

How to Add OEM Plug and Play Drivers to Windows XP
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q314479

HOW TO: Use Sysprep.exe Tool to Automate Successful Deployment of Windows XP
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q302577&

How to Use Sysprep with Windows Product Activation or Volume License Media to Deploy Windows XP
http://support.microsoft.com/?kbid=299840

Deploying Windows XP Part I: Planning
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/deploy/depovg/depxpii.asp

Deploying Windows XP Part II: Implementing
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/deploy/depovg/depxpii.asp

Error After You Move the Windows XP System Disk to Another Computer
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q314082

Common Stop Messages
http://www.microsoft.com/technet/prodtechnol/winxppro/reskit/prmd_stp_tnvo.asp

Disk duplication. Using Sysprep to prepare images for disk duplication allows you to copy fully installed systems onto similar hardware. Sysprep modifies the local computer Security ID (SID) so that it is unique to each computer.
http://www.microsoft.com/windowsxp/pro/using/itpro/deploying/introduction.asp
0
 

Author Comment

by:dpezzotta
ID: 11928773

After 10 hours of different troubleshoots as well as reading the information above, I am almost there.  

I understand it now, but I still do not know precisely what to enter in the sysprep.inf file at the end under [SysprepMassStorage].  I know all my Ghost clients have different IDE devices that are causing the problem once I restore the image (making them not even get past the BIOS screen).  They are all IDE and no SCSI.  I checked those in Device Manager.

What I do not know now is what to actually type for each different IDE device....

HERE IS A SAMPLE LINE THAT WAS GIVEN TO ME FOR AN IDE DEVICE:

           PCMCIA\*PNP0600=%systemroot%\inf\mshdc.inf

Let me get this straight:
1.  The first part (before the "=") is the Plug n Play ID?  How do I find that for each device?

2.  The next part I would literally type "=%systemroot%\inf\mshdc.inf"?  Or would I have to type: "c:\windows\system32\inf\mshdc.inf" ?

3.  Excuse my ignorance here, but this is crazy new for me, and I am fascinated by it.  

4. Finally - what does this actually do in the process?  As the computer is starting up, it actually looks here if it cannot find controllers?  I am so confused!


Hopefully someone can shed some light.

Thanks...  and I have read every link from above and they do not specifically answer this... even the REF file that comes with DEPLOY.cab doesn't tell me everything I need.

0
 

Author Comment

by:dpezzotta
ID: 11929063

I'm back... check it out.  I am posting because I figured someone some day will be in this same bind...

I went to the CMD prompt and at C:\Sysprep\  I typed:    sysprep -bmsd

It added every description my computer had for Plug n Play devices to the sysprep.inf file.... Way more than I needed, but when I compared it to the PnP IDs on my older destination machines, the few I needed were included on the entries in the new sysprep.inf file....

I just did a reseal,  captured a new image... and I am waiting to see if the old Dells will boot up after knowing where their PnP drivers are.  Here's hoping...

0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11930556
*grin*  Very Good!!!  Not as hard as you thought, eh?  
0
 

Author Comment

by:dpezzotta
ID: 11938454

Well, I guess this question remains open...

I am doing something wrong here... I am pretty confident I am doing the sysprep correctly because when I sent the image the same exact model of computer, it runs perfectly.  

Things I am not sure of:

~ I am not 100% sure I am doing the BuildMassStorageSection thing correctly, that is, I have no way of proving the drivers are being installed on the system before it shuts down from sysprep reseal.  I wouldn't know how to run an audit if I tried.  

~ Also, I do not know 100% that my HALs are compatible.  The source computer (the master image) is from a machine with a Halmacpi.dll and the destination is running the Halacpi.dll....  

Does anyone out here work with this regularly and can help?  

I am really behind schedule now... I should just give up and start a new image on those other model computers from scratch... at least I know it would work... I just don't want to be making all these different images forever.

Thanks anyone... :-)




0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11941267
Have you read through this article..  

http://www.winnetmag.com/Article/ArticleID/38950/38950.html
0
 

Author Comment

by:dpezzotta
ID: 11982534

One week and no luck.  Thanks for the above readings, but nothing I have found actually helps me determine MY specific needs.  I paid for this service because I thought if I typed in my specific questions, someone would have an answer.  I am not familiar with how this works, but so far all I have done is read generic "how tos."  I was doing that for days before these readings.

I am going to try one last time before withdrawing from this group.  Here is a specific question.  Hopefully someone will be able to answer it.  

Q:  In my sysprep.inf file, in the [Unattended] section, what should my UpdateUPHAL line read if my MASTER computer (from which the image will be taken) is running an ACPI Multiprocessor with the driver "halmacpi.dll"  and the DESTINATION computers are running what says "Advanced Configuration and Power Interface (ACPI) PC" with the driver "halacpi.dll" ?

I'll start it off:  UpdateUPHAL =


I don't really understand the values of questions on this site, but this sure seems high... I am now a week behind schedule, too.

Thanks anyone...

0
 
LVL 40

Accepted Solution

by:
Fatal_Exception earned 500 total points
ID: 11987031
Sounds like you are imaging a mutliprocessor to a uniprocessor..    Never used the halacpi.dll, but this is how I would do it if it were the hal.dll file..

To create a multiprocessor to uniprocessor image

Copy the Hal.inf and associated Hal files to the location you are using for your Plug and Play device drivers in your distribution folders, for example, \$OEM$\$1\Sysprep\Hal.
In Sysprep.inf, add:
[Unattended]
UpdateUPHAL = "hwid,%SystemDrive%\Sysprep\Hal\Hal.inf"
In the preceding example, hwid is either MPS_UP or ACPI APIC_UP.

Install the operating system from the distribution folders to a multiprocessor computer.
Run Sysprep with the Sysprep.inf created in step 2.
Image the computer.
Place the image on comparable destination computers.

BTW:  remember that all the experts here have other lives (and hopefully jobs of their own) and donate their time to these threads.  We are not getting paid to help users and admins with their issues, so be a little flexible here, please..  :)

FE
0
 

Author Comment

by:dpezzotta
ID: 11987144

Thanks FE ~

Don't get me wrong, I am very very grateful; just confused.  I've never paid for a site before and I thought all the answers were coming from "the company."  Thought I was paying for tech support in a way.  (Guess I should have read that agreement entirely to understand)...  

The info you gave me is very helpful, but just happens to be stuff I've read already and tried myself.  The above UpdateUPHAL excerpt is on plenty of sites - practically word for word; I just don't know which to use MPS_UP or ACPI APIC_UP and don't know the proper hwid considering my hardware.  That's exactly what I was asking.  That's why I was specific in my last thread.

As I said earlier, I valued this at 500 because it was urgent and I thought pretty difficult.  Since you are the only one who could contribute to it so far, I guess it really was that difficult.  I'll accept your answer and kindly bow out of this group.   Tomorrow, my assistant and I are just going to build two more images from the ground up.  It was worth a try but never worked... my deadline is Tuesday.  No more experimenting allowed...  :-)

From now on, I'm back to surfing the www for my answers.  I am SO GRATEFUL for your help, but unfortunately, it just didn't get me what my amateur undertaking needed.  Thank you, though!  Sincerely!

Take care...  

0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11989633
Yes, when I was syspreping a few months ago, I copied that into a sysprep doc I had for future reference.

I really am sorry for not being able to assist you further.  If I had the time, I would setup a test box myself and try the solutions for you.  One of the problems is that there are only a handful of Sysprep experts here that have probably tried what you are doing.  Although I emailed a few that I know of, I see that they did not respond.  Most travel a lot, so they may be out of town on other contracts right now...

Anyway, thanks for the points, although if you are in this situation again, you can ask for a refund of the points and then ask again later.  Just so you know.

Hope you get those images deployed successfully.  I certainly understand being under the gun with a timeline.

FE
0
 

Expert Comment

by:djmaxx007
ID: 26593765
One quick and dirty way I did what you're tying to do is the following:

I assume you have the image of your master machine safely saved away...

1) On your master machine, start out by uninstalling vga drivers/software (catalyst control center, etc), audio drivers/audio control panel, chipset drivers, processor drivers (if applicable, like the dual core optimizer that AMD uses) and whatever else. Use something like RevoUninstaller because it deletes registry files and leftover files on the machine.
2) Go into the device manager and uninstall the leftover items unique to your system. For example: chipset-related components under "System Devices", USB controllers, IDE controllers (if they are different), network adapters, and you get the idea.
3) Clone that to another pc that you need an image for and all you will have to do is update drivers. Since you are using a volume license key, no need to worry about activation. Take about 10 mins for the drivers (assuming you already have the most updated drivers for each model on a saved somewhere like a flash drive) and make an image for that model. Done!

Clone that driver-less hard drive from the master pc to every model and all you will have to do is install the drivers each time you move to a new model and then image it.

Not the cleanest way (hence the quick and dirty), but it works great. So far I have had a 100% success rate on several different model PCs (used the same driverless image for desktops and laptops!). It greatly reduces the time taken up by installing all your software all over again for each new image.

I work at a school district and the images were horrible when I first started working here. Every time we get a new model computer, I've been doing this and it works great. After drivers are installed, I just do Windows updates and make sure everything is running smoothly. Like I said, it has so far. Every now and then I make a fresh image from the Windows CD, but only when things start getting wonky.
0
 

Expert Comment

by:djmaxx007
ID: 26593827
Oh yeah. It obviously won't work if you're moving from a PC with IDE sata drivers to AHCI or vice versa. And this may not work for all of your models, but since you are on a time limit, I'd give it a shot. Sometimes my job destroys my life when we get two or three new models AND a few new student software titles that MUST be pushed out and they need it ASAP. Quick and dirty saves my life.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

12 Experts available now in Live!

Get 1:1 Help Now