Microsoft KB Archive/304992

= How to deploy Microsoft Windows Preinstallation Environment from an RIS server by using PXE-enabled clients =

Article ID: 304992

Article Last Modified on 12/11/2006

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)

-



This article was previously published under Q304992



SUMMARY
This article describes how to deploy the Microsoft Windows Preinstallation Environment (Windows PE) from a Remote Installation Services (RIS) server for a Pre-Boot Execution Environment (PXE) start.



MORE INFORMATION
There are two methods that you can use to deploy Windows PE from a RIS server. The first method uses a RAM disk device to deploy Windows PE from the RIS server. The second method deploys a Windows PE image from a Microsoft Windows XP or Microsoft Windows Server 2003 CD-based image. You must use this second method only if you have older versions of Windows PE or if you do not have a Windows Server 2003-based RIS server. This second method opens many file handles from the RIS server. Therefore, this method reduces the performance of the RIS server when you start multiple instances of Windows PE. You may also experience time-out errors.

For more information about how to deploy Windows PE from RIS Servers, see the latest Winpe.chm file. This file is included with the Windows PE CD and with the OEM Preinstallation Kit (OPK) CD.

Before you use the methods that are described in this article, you must make sure that you have the following items:
 * A customized Windows PE International Organization for Standardization (ISO) image that is created from the Windows PE CD or from the OEM Preinstallation Kit (OPK) CD.
 * A RIS server that is running Windows Server 2003 with Service Pack 1 (SP1).
 * A Windows PE CD or an OEM Preinstallation Kit (OPK) CD.

Method 1: Deploy Windows PE from a RIS server by using a RAM disk
 On the RIS server, locate the \RemoteInstall\Setup\ \Images folder. Create a subfolder for Windows PE. For example, type the following at a command prompt:



Note In this step,  is the placeholder of the hard disk drive on which RIS is installed. is the language of the Windows PE image. Create a subfolder in the \ folder that is named Platform, where   is i386 or amd64. For example, type the following command at the command prompt: md winpe\i386  Copy the customized Windows PE .iso image file that you created earlier to the \  folder, where   is i386 or amd64. For example, type the following command at the command prompt:

copy :\Work\Winpex86.iso  :\RemoteInstall\Setup\English\Images\Winpe\i386

Note  is the placeholder of the hard disk that contains the Windows PE image. Also,  is a placeholder for the hard disk partition on which RIS is installed. Create a subfolder in the \ \ folder that is named Templates. For example, type the following command at the command prompt:

md winpe\i386\templates

 Locate the Platform folder of the Windows PE image, and then copy Ntdetect.com and Startrom.com to the Windows PE\ \Templates folder. For example, type the following commands at the command prompt:







Note In this step,  is the placeholder of the hard disk that contains the Windows PE image and   is a placeholder for the hard disk partition on which RIS is installed.

 Copy the \ \Setupldr.exe (not Setupldr.bin) file from the Windows PE image to the \ \ \templates folder, and then rename Setupldr.exe to Ntldr. For example, run the following command at the command prompt:

copy setupldr.exe :\RemoteInstall\Setup\English\Images\winpe\i386\templates\ntldr

.

Note In this step,  is a placeholder for the hard disk partition on which RIS is installed.</li>  Create a text file that is named Winnt.sif in the \ \ \Templates folder by using the following text. [SetupData] BootDevice = &quot;ramdisk(0)&quot; BootPath = &quot;\platform\System32\&quot; OsLoadOptions = &quot;/noguiboot /fastdetect /minint /rdexportascd /rdpath=%INSTALLPATH%\%MACHINETYPE%\ &quot;

Architecture = &quot;platform&quot; [RemoteInstall] Repartition = No [OSChooser] Description = &quot;brief description&quot; Help = &quot;longer description&quot; LaunchFile = &quot;%INSTALLPATH%\%MACHINETYPE%\templates\startrom.com&quot; ImageType = Flat Version = &quot;5.2 (0)&quot; </li> Start a RIS client, and then select the operating system image that you created.</li></ol>

Notes <ul> RAM disk method supports only x86 and x64-based Windows PE ISO images. For Itanium (IA-64)-based Windows PE ISO images use Method 2.</li> You can put the i386 and amd64 folders within the same folder on a RIS server. For example, you can create the following folder structure:

\RemoteInstall\Setup\English\Images\Winpe\i386 \RemoteInstall\Setup\English\Images\Winpe\Amd64

</li> You can give the Winnt.sif file any name that you want as long as the file name extension is .sif.</li> The &quot;Repartition = No&quot; entry in the Winnt.sif file avoids a warning from the Client Installation Wizard (OSChooser) about the disk being erased.</li> The text for the &quot;Description&quot; and &quot;Help&quot; entries can be any information that you want to include.</li> The &quot;LaunchFile&quot; and &quot;ImageType&quot; entries must not change.</li> Restart the client, and then go into PXE startup. After you log on, select the Maintenance and Troubleshooting option in the Main menu. &quot;Windows PE in RAMDisk,&quot; or whatever other description exists in the .sif file, appears as an option. Select this option, and then press ENTER.

The computer starts Windows PE by using the RAM disk.</li></ul>

Method 2: Deploy Windows PE from RIS server in legacy flat method
<ol> On the RIS server, type the following command at a command prompt:

RISetup.exe –add

When you are prompted for a source, point RISetup to the Windows operating system CD that you want to use. The choice of the Windows operating system depends on the version of Windows PE that you add to the RIS server. For Windows PE 2004, use Windows XP Professional Service Pack 2. For Windows PE 2005, use Windows Server 2003 Standard Edition Service Pack 1.</li> Browse the location where RISetup installed the image. For example, the location may resemble the following:

\\ \ \REMINST\Setup\ \Images

Note In this step, the  placeholder represents the RIS server name. The placeholder represents the name of the shared folder that contains the image. The  placeholder represents the language version of the image.</li> Open the  subfolder in the image that you created, where   represents i386, amd64, or IA-64.</li> Open the  folder on the CD or network share that contains Windows PE files, where   represents i386, amd64, or IA-64.</li> Copy the contents of the Windows PE  folder to the   folder of the image that you just opened.</li> When you are prompted to overwrite the files, click Yes to all.</li> <li>Open the Templates folder in the  folder to which you copied Windows PE   contents.</li> <li>Open the RIStndrd.sif file in a text editor. On the line that starts with OSLoadOptions, add the /minint option.</li> <li>Copy the drivers (*.inf and *.sys) for the network adapter to the  folder that was created by RISetup.</li> <li>Stop and start the BinlSvc service on the RIS server. For example, type the following commands at a command prompt:

net stop binlsvc

net start binlsvc

</li> <li>Start a RIS client, and then select the operating system image that you created in step 1.</li></ol>

Notes <ul> <li>If you do not copy the network drivers to the  folder, you may receive the following error message:

The operating system image you selected does not contain the necessary drivers for your network adapter. Try selecting a different operating system image. If the problem persists, contact your system administrator. Setup cannot continue. Press any key to exit.

</li> <li>If you use Windows Management Instrumentation (WMI)-enabled Windows PE images, make sure that the share that contains the Windows PE image is marked as read-only. Otherwise, Windows Management Instrumentation (WMI) Tester (WBEMTest) may report error 0x80041014. This will make sure that other clients that connect will not error out when they try to enable WMI.</li> <li>The maximum number of simultaneous installations that can be performed from a RIS server is 75.</li> <li>We recommend that you disable Setupapi logging when you use this method. For more information about how to disable Setupapi logging, click the following article number to view the article in the Microsoft Knowledge Base:

822570 You experience long Startup times when you start WinPE by means of a Remote Installation Services server

</li></ul>

Add Windows PE to the RIS Maintenance and Troubleshooting tools
You can add Windows PE to the list of tools that are available in the Maintenance and Troubleshooting section of the Client Installation Wizard. When you add Windows PE to the list of RIS tools, you specify that the Windows PE is used for installation, maintenance, and troubleshooting tasks instead of being used as a desktop operating system.

To add Windows PE to the list of RIS tools, follow these steps: <ol> <li>In the Templates folder of the Windows PE image, find the RIStndrd.sif file.</li> <li>Open the RIStndrd.sif file in a text editor.</li> <li>In the [OSChooser] section, change the ImageType = &quot;Flat&quot; entry to ImageType = &quot;winpe&quot;.</li> <li>Move the Winbom.ini file from the  folder of the Windows PE image to the root folder of the image.

Note If you do not follow this step and run the factory.exe command together with the -minint switch or the -winpe switch, Windows PE displays a dialog box that asks you to restart Windows PE after it starts.</li> <li>Open the Group Policy Management Console (GPMC), right-click the domain or organizational unit that you want to use, and then click Create and Link a GPO Here.</li> <li>In the New GPO dialog box, type a name for the Group Policy object (GPO), and then click OK.</li> <li>Right-click the GPO, and then click Edit.</li> <li>In Group Policy Object Editor, locate and expand the following container:

User Configuration\Windows Settings\Remote Installation Services

.</li> <li>In the right pane, double-click Choice Options.</li> <li>In the Choice Options Properties dialog box, under Tools, click Enabled, and then click OK.</li> <li>Close the Group Policy Object Editor.</li> <li>In GPMC, click the domain or organizational unit to which the GPO that you created earlier is linked.</li> <li>In the right pane, click the GPO that you created, and then click Move Link Up until the link order for the GPO is lower than any GPOs that have conflicting settings.

The GPO with the lowest link order takes precedence over GPOs with higher link orders.</li></ol>

Notes
 * Only Windows Server 2003-based RIS servers support this procedure.
 * Although the Windows PE image appears in the Maintenance and Troubleshooting section of the Client Installation Wizard, it does not appear on the Tools tab of the Remote-Installation-Services Properties dialog box on the RIS server.
 * The default settings of the Default Domain Policy GPO on a Windows Server 2003-based domain disable all options except Automatic Setup in the Choice Options Properties dialog box. To override the default settings, make sure that the GPO that you create has a lower link order than the Default Domain Policy GPO.

Keywords: kbenv kbhowto kbsetup KB304992

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.