From: Subject: Unattended Install of Windows 2000 Date: Mon, 24 Feb 2003 08:34:53 +0100 MIME-Version: 1.0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://www.uh.edu/windows2000/docs/Unattended_Install.html X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Unattended Install of Windows 2000

Unattended Install of Windows 2000

Karl Bernard, University of Houston, Information = Technology,=20 Security and Disaster Recovery

 

Overview

Unattended installations provide a very stable and surprisingly quick = way to=20 deploy Windows 2000 Professional and a most line of business = applications. With=20 a little work and planning, an unattended installation can be used to = deploy=20 anywhere from five or ten computers to hundreds of computers.

Unattended installation of Windows 2000 is quite similar to that of = NT 4.=20 When getting ready for an installation of Windows 2000 it is helpful to = read as=20 much of the documentation that can be found about Windows 2000 = installations and=20 the different tools and methodologies supported by Microsoft. Attending = as many=20 of the trainings and TechNet briefings that Microsoft presents = throughout the=20 year is also very helpful.

Unattended installation of Windows 2000 from a = CD-ROM

The easiest way to create an unattended installation of Windows 2000 = is=20 initiated by booting from the
Windows 2000 CD-ROM and using a=20 WINNT.SIF file on a floppy as the answer file.

To install Windows 2000 using a bootable CD
(
Paraphrased from Chapter 25 of the Windows 2000 = Server=20 Resource Kit)

  1. Create a Winnt.sif file on a floppy similar to the example = below.=20
    1. Be sure to include the extra [Data] section. This section = is=20 NOT in a standard unattend.txt.=20
    2. Most of the other parameters are as outlined later in the = section about=20 the unattend.txt file.
  2. Set the system BIOS to boot from CD-ROM.=20
  3. Boot the system from the Windows 2000 CD.

2. When the blue text-mode screen with "Windows 2000 Setup" is = displayed,=20 place the floppy disk containing the Winnt.sif file into the = floppy disk=20 drive.

  1. After the computer reads from the floppy disk drive, remove the = floppy=20 disk. Setup will now run from the CD as specified by the Winnt.sif=20 file.

Note The bootable CD-ROM method requires that all necessary = files be=20 on the CD-ROM. Uniqueness Database Files (UDFs) cannot be used with this = method.

Winnt.sif

(must be located on a floppy)

[Unattended]

UnattendMode=3DFullUnattended

OemSkipEula=3DYes

OemPreinstall=3DYes

TargetPath=3D\WINNT

FileSystem=3DConvertNTFS

Repartition=3DYes

ExtendOemPartition=3D1

[Data]

UnattendedInstall=3DYes

MSDosInitiated=3DNo

AutoPartition=3D1

[GuiUnattended]

AdminPassword=3DYourPassword

OEMSkipRegional=3D1

TimeZone=3D20

OemSkipWelcome=3D1

[UserData]

FullName=3D"Information Technology - TSS"

OrgName=3D"University of Houston"

ComputerName=3DTheTest

ProductID=3D" XXXXX- XXXXX - XXXXX = - XXXXX -=20 XXXXX "

[Display]

BitsPerPel=3D16

Xresolution=3D800

YResolution=3D600

Vrefresh=3D72

[Identification]

JoinWorkgroup =3D UH_IT

[Networking]

InstallDefaultComponents=3DYes

Network-Based Unattended installation of Windows 2000

The Network Boot Disk

The easiest way to distribute an unattended installation of NT 4.0 or = Windows=20 2000 is via the network and the easiest protocol to set up is NetBEUI. = Although=20 TCP/IP is an option, NetBEUI is by far the easiest to setup and = configure. It is=20 also a bit faster.

Also important for an unattended installation is automating as many = of the=20 preparation tasks as possible =97 deleting existing partitions, creating = a new=20 partition, rebooting machine, formatting the new partition, and finally = starting=20 the network-based installation. The installation itself is started using = winnt.exe with the following switches: WINNT.EXE = /S:Z: /T:C=20 /U:Z:\$oem$\setup\unattend.TXT = /UDF:%1,Z:\$oem$\setup\unattend.UDF

 

The Answer File (unattend.txt)

The first step to create an unattended install is installing the = Win2K=20 resource kit (conveniently supplied on the Win2K CD!) on an available NT = 4/Win2000 machine and then using Setup Manager to create an initial = answer file=20 (unattend.txt), Unique Database File (UDF, also called UDB), as well as = the=20 distribution share itself. MS suggests naming the distribution share = "i386". The=20 next step is to modify the answer file =97 the default answer file will = not create=20 a totally unattended, silent installation, with the product ID supplied = by the=20 install, join the NT 4 domain and etc. Perhaps the best guide for = modifying the=20 answer file is: "Microsoft Windows 2000: Guide to Unattended Setup". = Within this=20 139-page document can be found the proper sections and associated = parameters to=20 accomplish a fully unattended installation. The following example of an = answer=20 file is similar to what is used at the Central Site student = lab:

Unattend.txt

[Unattended]

UnattendMode=3DFullUnattended

OemSkipEula=3DYes

OemPreinstall=3DYes

TargetPath=3D\WINNT

FileSystem=3DConvertNTFS

ExtendOemPartition=3D1

[GuiUnattended]

AdminPassword=3DMyPassWord

OEMSkipRegional=3D1

TimeZone=3D20

OemSkipWelcome=3D1

[UserData]

FullName=3D"Information Technology - TSS"

OrgName=3D"University of Houston"

ComputerName=3D*

ProductID =3D XXXXX- XXXXX - XXXXX - XXXXX - XXXXX

[Display]

BitsPerPel=3D16

Xresolution=3D800

YResolution=3D600

Vrefresh=3D72

[OEM_Ads]

Logo =3D mylogo.bmp

[Identification]

DoOldStyleDomainJoin =3D YES

JoinDomain =3D UH_IT

[Networking]

InstallDefaultComponents=3DYes

 

Explanation of selected parameters

The parameters in the [unattended] section provide answers to = the=20 questions that the user is prompted for during a "hand" install. The = more=20 parameters that are specified in the answer file, the more unattended = and=20 specific the installation. When planning for a fully automated = installation,=20 there are certain minimum requirements in the answer file. The primary=20 parameters needed to accomplish this are: = UnattendMode=3DFullUnattended and=20 OemSkipEula=3DYes, and OemPreinstall=3DYes =97 these are = the main steps=20 that must be taken to insure that the installation doesn=92t halt and = wait for=20 user input. Other important answers that need to be supplied are the = parameters=20 under [UserData], specifically FullName=3Dyour name = here and=20 OrgName=3Dyour organization fields, as well as=20 ProductID=3DXXXX=85. If omitted, these will also cause the = installation to halt, requesting user input.

Perhaps the most elusive, and yet most important parameter (when = installing=20 in a non-Active Directory/NT4 legacy domain) is = DoOldStyleDomainJoin=3DYes,=20 in the [Identification] section, which is an undocumented switch = to allow=20 the machine to join an NT 4 domain, in an unattended fashion, without = supplying=20 a UserID and password within the answer file. This is an undocumented = switch=20 that was found on Microsoft.public.win2000.setup_deployment = (which can be=20 easily subscribed to from anywhere using the = msnews.Microsoft.com=20 NNTP server) using www.deja.com/usenet.

The Unique Database File (UDF)

Another parameter that is necessary for a completely unattended = install is=20 the computer name, represented in the answer file by:=20 ComputerName=3DMyComputer. As in NT 4 unattended = installations, this=20 parameter can be supplied in a separate file called the Unique Database = File (or=20 UDF). This parameter can be set according to "Unique ID=92s" in the UDF = so that=20 the unattended install can be more flexible for installing machines with = different user data and other unique factors.

Unattend.udf

[UniqueIds]

pc1 =3D UserData

pc2=3DUserData

pc3=3DUserData

pc4=3DUserData

pc5=3DUserData

[pc1:UserData]

ComputerName=3Dcsitewin2k01

[pc2:UserData]

ComputerName=3Dcsitewin2k02

[pc3:UserData]

ComputerName=3Dcsitewin2k03

[pc4:UserData]

ComputerName=3Dcsitewin2k04

[pc5:UserData]

ComputerName=3Dcsitewin2k05

 

Preparing and Installing Applications during an Unattended=20 Installation

The next step, in an unattended installation is determining the = easiest way=20 to automate or script the installation of the application. Some common = methods=20 that usually work, depending on the application, are:

    1. Copy all files required for the installation onto a network = share =97=20 preferably on the same machine as your Windows 2000 distribution = share.=20
    2. Installing the application on a reference machine by starting = the=20 installation from the command line with=20 \\server\share\directory\SETUP.EXE -R.=20
    3. After installation completes, search for a file named=20 "SETUP.ISS", which will normally be found in the=20 c:\winnt directory.=20
    4. Copy "SETUP.ISS" into the share\directory with the = installation=20 files.=20
    5. When setting up the software on the new machine, start the setup = in a=20 batch file with \\server\share\directory\SETUP.EXE=20 -S.
    1. Microsoft Office 2000 is customized using the Custom Install = Wizard,=20 which is a free utility that can be downloaded from Office 2000 = "Toolbox"=20 at: http= ://www.microsoft.com/office/ork/2000/appndx/toolbox.htm.=20 The Office Resource Kit (ORK) has full instructions about the = process. The=20 resultant command line to install Office 2000 that we use at the=20 Central-Site Lab is \\server\share\setup.exe /wait=20 TRANSFORMS=3D\\server\share\MyCustom.MST /qb-.=20
    2. McAfee (Network Associates) VirusScan 4.5 is also a Microsoft = Installer=20 (MSI) package and is customized using the Installation = Designer=20 (contact Zachary Thierry at UH Software Licensing about how to = obtain a=20 copy). Once customized, the installation is started from the command = line=20 using: \\server\share\setup /qb /i.