Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 2000

Specifying New Drivers on Unattended Win2K Pro Installs


RSS
Subscribe to Windows IT Pro | See More Installation Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Improved $OEM$ features let you easily script installs even if the installation CD-ROM lacks needed hardware drivers

As I explain in my 1998 series of columns about unattended installations, Windows NT 4.0 lets you script unattended network-based installs even when the installation CD-ROM doesn't include a hardware driver that your system needs. (For a list of the articles in that series, see "Related Articles in Previous Issues," page 158.) Scripting an unattended install for such a case isn't easy, however—every hardware driver you want to add requires you to perform numerous steps and extensively edit your installation script.

Because Windows 2000 incorporates Plug and Play (PnP), including new or updated drivers in an unattended network-based Win2K installation is much easier than in NT 4.0. You can easily tell Win2K to automatically install devices such as sound cards and video capture hardware, even if the devices' drivers aren't on the installation CD-ROM. (Of course, you must have Win2K drivers for the devices; when it comes to driver support, we Win2K users are still afterthoughts compared with Windows 98 users.)

Unattended Network-Based Win2K Installs
When you install Win2K from a network, you don't need to use the installation CD-ROM. The basic steps for doing a network-based unattended Win2K installation are as follows:

  1. Create the network distribution share, copy the contents of the i386 folder (i.e., the Win2K installation files) to the share, and set permissions on the share.
  2. Add a $OEM$ folder so that you can customize the installation (I explain this step later).
  3. Use Setup Manager, as I explain in "Unattended Installs with Windows 2000 Professional," June 2000, and further enhancements, which I explain later, to create answer files, which are simple ASCII text files.
  4. Create a 3.5" disk that contains the necessary drivers and enough of the OS to let you boot a machine that has an empty hard disk, get on the network, and access the network distribution share. After you boot to the network share, execute the Winnt command to start the scripted install.

This procedure is basically unchanged from the NT 4.0 procedure, although some details are different.

The biggest difficulty in the entire process is the last step: making a bootable 3.5" disk that contains enough code to let you access a network share. I wish I could tell you that you can easily create this disk, but you can't. What I've found works best is simply to use Microsoft Network Client 3.0 for MS-DOS, which Microsoft includes in the NT Server 4.0 CD-ROM's \clients subdirectory. By including a minimum of programs and doing a bit of fiddling, you can usually cram enough Win98 code (or better yet, DOS 6.0 code, if you still have a copy) and the Network Client for MS-DOS onto a disk to let you access the distribution share. However, I rarely succeed in building the disk with TCP/IP, so you might consider instead creating a NetBEUI-based network client and running NetBEUI on the server that holds the network distribution share. I realize that this approach isn't the perfect answer for many people, but remember that you have other ways to put Win2K on a system, including Remote Installation Services (RIS), the Microsoft System Preparation Tool (Sysprep), and the CD-ROM-and-3.5"-disk approach that I describe in "Unattended Installs with Windows 2000 Professional."

What I want to highlight in this column, however, are the new $OEM$ features that Win2K affords. Remember that NT 4.0 lets you create a directory called $OEM$ inside the network distribution share's i386 directory, and $OEM$ in turn lets you do some neat things. Inside the \i386$OEM$ directory, you can place setup bitmaps, logos, extra hardware drivers, and commands for Setup to run after NT 4.0 has installed. To tell NT 4.0's Setup to look for the \i386\$OEM$ folder, you simply include the command OEMPREINSTALL=YES in the answer file's [Unattended] section.

Win2K offers these abilities and a few more. Without a doubt, one of the most valuable of Win2K's enhancements is that you can easily add new hardware drivers to an unattended-install script.

Adding Drivers with Win2K's $OEM$
Suppose you've just purchased a new video board—a board so new that the Win2K CD-ROM doesn't include drivers for it. If you use an answer file to do an unattended installation for your computer, the installation will stop at some point and Setup will ask you for the driver for your new video board. An installation that requires input from you is hardly unattended. What can you do?

You can create a directory under \i386\$OEM$, name the directory anything you like, and put the Win2K drivers for your new video board into the directory. (Before you put your unattended-install script into production, test the drivers to make sure they're Win2K-compatible.) Exactly what makes up a Win2K video driver varies. Some video drivers consist simply of two files—one with the .sys extension and another with the .inf extension. Other video drivers load entire desktop control utilities. You'll generally find your video board's complement of driver files on the 3.5" disk or CD-ROM that comes with the board, in a folder named Win2000 or something similar. Then, add the OEMPnPDriversPath command to the answer file's [Unattended] section. This command tells Setup to look in the directory that OEMPnPDriversPath points to if Setup can't otherwise find a needed driver.

For example, suppose I've got a new video board called the PixelPainter whose Win2K drivers consist of the files pixpaint.sys and pixpaint.inf. I create a directory called \i386\$OEM$\extravideo on the network distribution share and put both driver files into that directory. Suppose also that I have a working answer file named script.inf. I add the command

OEMPnpDriversPath="extravideo"

to script.inf's [Unattended] section.

   Previous  [1]  2  Next 


Reader Comments
It is possible to use TCP/IP for the 3.5 startup disk. You have to zip the necessary network file using a utillity like PKZip. You can than use zip2exe to create an executable which you copy to a ramdrive during startup.
You have to setup MS-Net 3.0 to a drive using the same drive letter as the ramdrive later uses. So, it is possible, but it requires even more 'fiddling'. Good luck!



Sjaak Monasso April 11, 2002


I want to do this from a cd. Can I add drivers to a windows 2k install and install it using a cd and not a network server.

Vincent Langer April 26, 2004


Vincent this website gives good details on creating a bootable CD.

http://www.petri.co.il/windows_2000_xp_sp_slipstreaming.htm

Mark McConnell May 10, 2004


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing