Objective: Perform and troubleshoot an unattended installation of Windows XP Professional. An unattended installation is one in which a computer installs Windows XP without a person sitting at the console watching the progress, as covered in Chapter 2. To provide information at the points of the installation process that require user input, a script is used. You can use Setup Manager to create a script, or you can type a script in a text file manually. These text file scripts are called "answer files." In addition to using answer files, you can also use Sysprep or RIS to create unattended installations. You should choose to perform unattended installations in the following situations:
A standard image of Windows XP Professional reduces costs of both implementation and maintenance. The implementation savings are obvious because you do not need to have a network administrator watch each installation and input information, which takes a lot of time. Ongoing maintenance costs of a standard configuration are less expensive because network administrators are thoroughly familiar with the configuration of the computer they are helping an end-user troubleshoot, saving time and effort. Because the method of setup for an unattended installation is different from an attended installation, you can expect that some the problems that you encounter are also different. You can encounter many of the same problems that you may have had in an attended installation, such as Stop errors, but you will also have unique problems associated with an unattended method of installation. Problems with Answer FilesYou can use answer files to automate a Windows XP Professional installation, whether the computer is installed from a CD or across a network. Nearly always, answer files are used with network installations. The fact that you can use an answer file with a CD installation can help you troubleshoot a computer that has difficulty connecting to the network. Exam Alert Answer files The exam may refer to answer files as a script, a text file, an answer file, or simply unattend.txt. Read the question and understand the context to be sure that the file being described is the same that you expected. Boot DisksBecause answer files are mainly used with network installations, the first dilemma usually stumbled into is booting to the network and accessing the distribution server files. You can use floppy boot disks, or you can execute the installation from a command line on a computer while it is running a different operating system. The only requirement you have of any existing operating system is that it has access to the network and that you are logged in with a user ID that has permissions to read the i386 folder structure on the distribution server. If you use a boot disk to access the network, you need to have the correct network interface card (NIC) driver for the computer already installed on the floppy disk. When you try to boot a computer with a boot disk that has drivers for one type of NIC while the computer has a different NIC, you will not be able to access the network. Depending on the computer's configuration, you may not even see an error on the screen. PreparationWhen you are conducting a clean installation of Windows XP Professional, you are likely to have better results if you use a boot disk because you can automate preparation tasks such as creating a disk partition and formatting it. If you are upgrading a computer, you should execute the installation only from within the existing operating system. Remember that you should use the Winnt.exe executable when installing from a boot disk. You should use the Winnt32.exe when upgrading an existing operating system. SwitchesBoth the Winnt32.exe and Winnt.exe executables use a variety of switches to control how the Setup program runs. Table 4.3 displays the syntax used for Winnt.exe switches, and Table 4.4 displays the syntax used for Winnt32.exe. Some of the errors that you may encounter during an unattended installation are caused by an incorrectly used switch. For example, you may need to copy a special driver for a peripheral device. If you use the /t switch instead of the /rx switch, you will end up using the network path to the driver as a location for temporary Setup files and you will not have the driver copied locally. Likewise, if you use a Winnt32.exe switch with Winnt.exe, you will not have the results that you intended.
Answer File SpecificationsThe answer file that you use is nearly identical in format to the old INI files used in Windows 3.x. It's a straight text file with headings, parameters, and values. If you don't include a heading, a parameter, and a value for a specific item that you want to install a certain way, Windows XP uses the default installation values for that item. Typos, incorrect headings, incorrect parameter names, or incorrect values cause errors or unexpected results during installation. Spelling counts! For example, you execute the command \\sourceserver\sourcefileshare\i386\winnt /u:a.txt If within the A.txt file you have the following section listed with the express intent of preventing the Out-of-Box Experience (OOBE) from starting after Windows XP installs, the installation will fail: [unattended] UnattendedSwitch=yes The reason that the installation fails is that you misspelled the parameter. The section should read: [unattended] UnattendSwitch=yes A spelling error in an answer file usually does not cause a Windows XP installation to fail unless the error is specifically related to a driver. Most people use Setup Manager to create an answer file. When Setup Manager creates the file, it does not always customize the features that you want to customize. Therefore, you likely must edit the file directly. The best way to troubleshoot your answer file is to make certain that you save your original answer file created by Setup Manager, and save each subsequent version of the answer file. By doing this, and by testing the answer file with each individual customization as you make them, you will be able to pinpoint the specific problem with the file. Problems with Sysprep InstallationsThe System Preparation Tool, or Sysprep, creates a snapshot of a Windows XP Professional workstation, and strips out the unique information for that workstation so that the image can be stamped on another. Sysprep not only can prepare an image of Windows XP Professional, but it can include unusual settings, applications, special application configurations, and even additional files. After preparing the image with Sysprep, you can then use a third-party utility to transfer the image to a target computer. The process is quick and easy to repeat. This is called cloning and it can be either the best thing since sliced bread to your company or your worst nightmare. The problem with cloning is that software image information is often intertwined with hardware information in odd places. When you attempt to clone a source computer onto a target computer that is not identical to the source, the image might function perfectly well, but it also might have results in a few configuration errors or even fail to start. It depends on what is different between the source and target computers and whether Sysprep strips out that particular information or the target computer has true Plug and Play devices. One absolute requirement for cloning Windows XP Professional is that the source computer and the target computer(s) must use the same Hardware Abstraction Layer (HAL). If the target computer needs a different HAL than what's in the image, your cloned installation will most likely fail with a Stop error or the computer will generate odd errors such as hanging every time you instruct it to shut down. Exam Alert Cloning alert Some questions about cloning are included to point out the need to generate cloned images for each different type of computer on the network. Another issue you might experience with Sysprep is the version of the tool that you are using. Service Pack 1 (SP1) and Service Pack 2 (SP2) include updated deployment tools. When you create a source location that incorporates a service pack, you should also use the version of Sysprep that comes with that same service pack. Note Sysprep and domains Sysprep does not work on a computer that is a member of a domain. It works only on a computer that is a member of a workgroup. If you run Sysprep on a computer that has already joined a domain, Sysprep removes it from the domain before preparing the image. If you try to copy encrypted files using the Encrypting File System (EFS) on an NTFS-formatted partition as part of your Sysprep image, you will fail because the Sysprep process makes encrypted files unreadable. The only way to encrypt the files is to execute the encrypting command after the image has been transferred to the target computer. Whenever you use Sysprep, you should assure that the computer functions properly. Step by Step 4.2 leads you through some basic computer functions.
Use cloning when you have hundreds of computers that have identical hardware and need identical software and operating system configurations. If you have a large number of different hardware configurations and/or software and operating system configurations, you should look to using answer files instead. Problems with RIS InstallationsYou can use RIS to install Windows XP Professional on a computer anywhere on your network. The RIS process begins with booting the client computer from a PreBoot eXecution Environment (PXE) network adapter (or a boot disk) and downloading the Windows XP image from a RIS server. RIS images are not the same as Sysprep images. They must be created with a specific toolRiprep.exe. Not only that, but you have to install and configure a server specifically to become a RIS server. That server must be able to participate in Active Directory, so you must have at least one Windows 2000 or Windows Server 2003 Active Directory domain. And finally, you must use NICs that support PXE or a PXE-capable BIOS, or create special RIS boot disks for PCI-bus network interface cards that are on the list supported by Remote Boot Floppy generator (Rbfg.exe) to initiate the RIS download. Because RIS was originally introduced with Windows 2000, there are further considerations based on whether you have a Windows 2000 RIS server or a Windows Server 2003 RIS server. You will run into problems if you attempt to install a Windows XP Professional computer with SP2 via RIS and you do not have the correct service packs for the Windows 2000 or Windows Server 2003 RIS server. For example, a Windows 2000 RIS server with no service packs applied doesn't allow you to create and deploy a Windows XP Professional RIS image until you install the updated RIS tools and apply a service pack to it. If you are implementing a new RIS server with a new RIS image, you can simplify your efforts by updating both the RIS server and the RIS image with the latest service packs appropriate to the system. If you are creating a new RIS image on an existing RIS server, you should ensure that the RIS server has the correct service pack applied (or a later one) to support your new image. One of the problems that you may run across is accidentally trying to use a standard network boot disk to install an RIS image. It's easy to forget to use Rbfg.exe to create the RIS boot disk. Exam Alert Remote boot floppy generator The only floppy that you can use for RIS is the one created by Rbfg.exe. RIS can be used only for clean installations. If you want to upgrade in an unattended fashion, you should use the answer file method. In addition, an RIS server must be authorized before it can be used to install new computers. If you want to install a set of multi-boot computers, or if you want to install the Windows XP Professional operating system on a disk drive other than C:, RIS does not work. |