Microsoft KB Archive/824184

= How to set up Automated System Recovery on a Windows Server 2003-based computer that is running Remote Installation Services =

PSS ID Number: 824184

Article Last Modified on 4/1/2005

-

The information in this article applies to:


 * Microsoft Windows Server 2003, Standard Edition
 * Microsoft Windows Server 2003, Enterprise Edition

-





In this task

 * Introduction
 * Requirements
 * Setting up the RIS Server to use ASR
 * Creating an ASR backup set
 * Installing the new build image on the RIS Server



INTRODUCTION
This step-by-step article describes how to set up Automated System Recovery (ASR) on a Microsoft Windows Server 2003-based computer that is running Remote Installation Services (RIS).

back to the top



Requirements
To fully automate the RIS process, the following components and conditions are required:  A Windows Server 2003-based RIS server. Pre-Boot eXecution Environment (PXE) boot capability on all client computers. Access to the DHCP service, the DNS service, and the Active Directory directory service in the domain. A computer that has not been previously prestaged in Active Directory. A default Group Policy that is set for an automatic installation for all clients. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316663 How to modify the Default Group Policy for Remote Installation Services



back to the top

<div class="moreinformation_section">

Setting up the RIS server to use ASR
<ol> Set up the RIS server to support automation of the F12 PXE boot that executes the ASR restore option. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Verify the BIOS boot order on the RIS server and on each of the client computers. Position the hard disk first in the boot order, and then position the PXE option second in the boot order.</li> Rename the current Startrom.com file as Startrom.bak (for backup purposes). This file is located in the \\RISserver\Reminst\OSChooser\I386 folder on the RIS server,</li> Rename the Startrom.n12 file as Startrom.com. This file is located in the \\RISserver\Reminst\OSChooser\I386 folder on the RIS server. The new version of Startrom.com automates the process when the user presses F12 to prompt Trivial File Transfer Protocol (TFTP) for the initial download.</li></ol> </li> Make backups of the following files, and then rename them in the \\RISserver\Reminst\OSChooser\Language folder:  Rename Welcome.osc as Welcome.bak.</li> Rename Login.osc as Login.bak.</li> Rename Install.osc as Install.bak.</li> Rename Warning.osc as Warning.bak.

</li></ul>

Note As a best practice, make a backup copy of each .osc file before you make any changes in the \\RISserver\Reminst\OSChooser\Language folder.</li> Edit the following .osc files on the RIS server: <ol style="list-style-type: lower-alpha;">  Welcome.osc <OSCML> <META KEY=ENTER HREF=&quot;LOGIN&quot;> <META KEY=F3 ACTION=&quot;REBOOT&quot;> <META KEY=ESC HREF=&quot;LOGIN&quot;> <META KEY=F1 HREF=&quot;LOGIN&quot;> <TITLE> Client Installation Wizard                                           Welcome</TITLE> <FOOTER> [ENTER] continue </FOOTER> <META ACTION=AUTOENTER> <BODY left=5 right=75>

Welcome to the Client Installation Wizard. This Wizard helps you quickly and easily set up a  new operating system on your computer. You can also use this Wizard to keep your computer up-to-date and to troubleshoot computer hardware problems.

In the Wizard, you are prompted to use a valid user name, password, and domain name to log on   to the network. If you do not have this information, contact your network administrator before continuing. </BODY> </OSCML> Copy this code to the \\RISserver\Reminst\OSChooser folder, and then save the file as Welcome.osc. After you add &quot;META ACTION=AUTOENTER&quot; to this code, the user does not have to press ENTER in the Client Installation Wizard because this action is automated. </li>  Login.osc <OSCML> <TITLE> Client Installation Wizard                                             Logon</TITLE> <FOOTER> [ENTER] continue     [ESC] clear     [F1] help     [F3] restart computer</FOOTER> <META KEY=F3 ACTION=&quot;REBOOT&quot;> <META KEY=F1 HREF=&quot;LOGINHLP&quot;> <META KEY=ESC HREF=&quot;LOGIN&quot;> <META ACTION=&quot;LOGIN&quot;> <META ACTION=AUTOENTER> <BODY left=5 right=75>

Type a valid user name, password, and domain name. You may use the Internet-style logon format (for example: someone@example.com).

<FORM ACTION=&quot;CHOICE&quot;> &nbsp&nbspUser name: <INPUT NAME=&quot;USERNAME&quot; MAXLENGTH=255 TYPE=TEXT VALUE=*****> &nbsp&nbsp&nbspPassword: <INPUT NAME=&quot;*PASSWORD&quot; TYPE=PASSWORD MAXLENGTH=20 VALUE=*****> Domain name: <INPUT NAME=&quot;USERDOMAIN&quot; VALUE=%SERVERDOMAIN% MAXLENGTH=255> </FORM>

Press the TAB key to move between the User name, Password, and Domain name fields.

You are connected to %SERVERNAME% </BODY> </OSCML> Copy this code to the \\RISserver\Reminst\OSChooser\Language folder, and then save the file as Login.osc. The two values that you must add to the Login.osc file instead of ***** are the user name and the password for the client. For example, if your user name is &quot;ristest&quot; and your password is &quot;deploy,&quot; these two lines will appear as follows: &nbsp&nbspUser name: <INPUT NAME=&quot;USERNAME&quot; MAXLENGTH=255 TYPE=TEXT VALUE=ristest> &nbsp&nbsp&nbspPassword: <INPUT NAME=&quot;*PASSWORD&quot; TYPE=PASSWORD MAXLENGTH=20 VALUE=deploy><BR>

Note If you do not prestage computers in your environment, the user name that you create for RIS must have both of the following permissions:  Read</li> Create Computer Objects</li></ul> </li> <li> Install.osc <OSCML> <META KEY=ESC ACTION=&quot;REBOOT&quot;> <META KEY=ENTER ACTION=&quot;REBOOT&quot;> <META ACTION=AUTOENTER> <TITLE> Client Installation Wizard                          Installation Information</TITLE> <FOOTER> [ENTER] continue</FOOTER> <BODY left=5 right=75>

The following settings will be applied to this computer installation. Verify these settings before continuing.

Computer account:                %MACHINENAME%

Global Unique ID:                %GUID%

Server supporting this computer: %SERVERNAME%

To begin Setup, press ENTER. If you are using the Remote Installation Services boot floppy, remove the floppy disk from the drive and press ENTER to continue. </BODY> </OSCML> Copy this code to the \\RISserver\Reminst\OSChooser\Language folder, and then save the file as Install.osc. When you add &quot;META ACTION=AUTOENTER&quot; to this code, the user does not have to press ENTER in the Client Installation Wizard because this action is automated. </li> <li> Warning.osc <OSCML> <META KEY=ENTER HREF=&quot;INSTALL&quot;> <META KEY=ESC HREF=&quot;CHOICE&quot;> <META KEY=F3 ACTION=&quot;REBOOT&quot;> <META SERVER ACTION=&quot;WARNING&quot;> <META ACTION=AUTOENTER> <TITLE> Client Installation Wizard                                            Caution</TITLE> <FOOTER> [ENTER] continue     [ESC] cancel                      [F3] restart computer</FOOTER> <BODY left=5 right=75>

<FLASH> <PRE> * * * C A U T I O N * * * </PRE> </FLASH>

<BOLD> <PRE> All data on the hard drive will be deleted! </PRE> </BOLD>

Before the new operating system is installed, this computer's hard drive must be repartitioned and formatted. All existing data on the drive will be deleted during this process.

To continue, press ENTER. To cancel the installation, press ESC. </BODY> </OSCML> Copy this code to the \\RISserver\Reminst\OSChooser\Language folder, and then save the file as Warning.osc. When you add &quot;META ACTION=AUTOENTER&quot; to this code, the user does not have to press ENTER in the Client Installation Wizard because this action is automated. </li></ol> </li> <li>Set the Group Policy to allow only automatic RIS setup installations. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, point to All Programs, point to Administrative Tools, and then click Active Directory Users and Computers.</li> <li>Right-click your domain or the organizational unit where the policy that you want to edit is applied, and then click Properties.</li> <li>Click the Group Policy tab.</li> <li>Click Default Domain Policy, and then click Edit.</li> <li>In the left pane, expand User Configuration, and then expand Windows Settings.</li> <li>Click Remote Installation Services.</li> <li>In the right pane, double-click Choice Options.</li> <li>In the Choice Options Properties dialog box, select the following options: <ul> <li>Under Automatic Setup, click Disabled.</li> <li>Under Custom Setup, click Disabled.</li> <li>Under Restart Setup, click Disabled.</li> <li>Under Tools, click Enabled.</li></ul>

Then click OK.</li> <li>Close the Group Policy Object Editor, and then click OK in the Properties box for your domain.</li></ol> </li></ol>

back to the top

<div class="moreinformation_section">

Creating an ASR backup set
To create an ASR backup that is set to a tape backup or to create an ASR backup that is set to the \\RISserver\Reminst\Setup\English\Images\ folder as Asr.bkf by using the Backup utility in Windows Server 2003, follow these steps: <ol> <li>Create a new Windows Server 2003 CD-based image on the RIS server, and name the image folder the same as the corresponding computer name.</li> <li>On the computer that performs the ASR backup, map network drive Z to the folder on the RIS server that contains the image that you created. When you restore the image with ASR later, it automatically locates the correct files from the Asr.sif file and the Mapdrv.cmd file on network drive Z. For example, map the \\RISserver\Reminst\Setup\English\Images\ folder to network drive Z on the computer where the ASR backup is performed.</li> <li>Click Start, point to All Programs, point to Accessories, and then click Backup.</li> <li>To create an ASR backup set in the Backup or Restore Wizard, do one of the following

Note By default, the Backup or Restore Wizard starts, unless it is disabled. <ol style="list-style-type: lower-alpha;"> <li>To create an ASR backup set in the Backup or Restore Wizard, click to select All information on this computer in the What do you want to backup? area.</li> <li>If the Backup or Restore Wizard is disabled, create an ASR set in Advanced Mode. In the Backup Utility dialog box, click ASR Wizard on the Tools menu, and then follow the instructions that appear on your screen.</li></ol> </li></ol>

back to the top

<div class="moreinformation_section">

Installing the new build image on the RIS server
NoteYou must first create a CD-based image of the operating system that you want to use for ASR. In all cases with RIS images, you must create a CD-based image that provides backup files for subsequent RIPrep, ASR, or WinPE images that you might create. Therefore, for every operating system that you use for ASR, RIPrep, or WinPE images, you must have a CD-based image that corresponds to the binary version of that operating system. For example, you might need an image that corresponds to Windows Server 2003, Windows Server 2003 Service Pack 1, and so on. To install the new build image on the RIS server, follow these steps: <ol> <li>Click Start, and then click Run.</li> <li>Type risetup.exe, click OK, and then follow the steps to complete the wizard.

Note If this is a clean install of the volume that contains the build images, set the Tool.osc file so that the Tools image (Tools.osc) can be selected automatically. This can be done in either of the following two ways: <ol style="list-style-type: lower-alpha;"> <li>If there is only one Tools image on the RIS server, remove the &quot;NOAUTO&quot; text from the default Tools.osc file.</li> <li> If there is more than one Tools image, leave the &quot;NOAUTO&quot; text unchanged. The following OSCML section from the default Tools.osc file shows where the &quot;NOAUTO&quot; text is located: <OSCML> <META KEY=F3 ACTION=&quot;REBOOT&quot;> <META KEY=F1 HREF=&quot;TOOLSHLP&quot;> <META KEY=ESC HREF=&quot;CHOICE&quot;> <META SERVER ACTION=&quot;ENUM TOOLS CMDCONS&quot;> <TITLE> Client Installation Wizard                                            Tools</TITLE> <FOOTER> [ENTER] continue     [ESC] go back     [F1] help     [F3] restart computer</FOOTER> <BODY left=5 right=75> <BR> <BR> Use the arrow keys to select one of the following options: <BR> <P left=8> <FORM ACTION=&quot;LAUNCH&quot;> <SELECT NAME=&quot;SIF&quot; NOAUTO SIZE=12> %OPTIONS% </SELECT> </FORM> </P> <BOLD>Description:</BOLD>&nbsp&nbsp <TIPAREA> </BODY> </OSCML> </li></ol>

If this is not a clean install of the volume that contains the build images or if the Tool.osc file has been modified, you must select the Select old menu screens option during RIS setup to make sure that the Tool.osc file is not overwritten.</li> <li>Copy the build image to a new name in the current folder. The name of the new image folder is not important, but it will be used to identify where bits are copied in the future. For example, the first image is located in E:\RemoteInstall\Setup\English\Images\Win.Net–ADS, and the copied image is located in E:\RemoteInstall\Setup\English\Images\ BK-ADS.

NoteWhen you copy the CD-based image, you do not want to modify the image that is required for the backup files. Therefore, you must copy the CD-based image into a new folder and use the following naming convention to rename the image:

ASR

indicates that this image is used for an ASR. identifies the exact computer that this ASR backup/disaster recovery image belongs to. (Because ASR images are computer-specific, the images can only be used for the computer installation that they were originally created from). specifies the operating system version for this image.</li> <li> Update the Ristndrd.sif file that is located in the \\RISserver\Reminst\Setup\English\Images\ASR \i386\Templates folder so that the copied image supports ASR, and then rename the file Asr.sif. Do not confuse this Asr.sif file with the actual Asr.sif file that the Windows Server 2003 Backup utility generates.

Note Modify the Ristndrd.sif answer file in the newly created ASR image folder, not in the CD-based image folder that you originally created by using the Risetup.exe tool and copied from.

The following sample Asr.sif file contains the specific changes that you must make to the [OSChooser] section to support a Tools (ASR) image: [data] floppyless = &quot;1&quot; msdosinitiated = &quot;1&quot; OriSrc = &quot;\\%SERVERNAME%\RemoteInstall\%INSTALLPATH%\%MACHINETYPE%&quot; OriTyp = &quot;4&quot; LocalSourceOnCD = 1

[SetupData] OsLoadOptions = &quot;/noguiboot /fastdetect&quot; SetupSourceDevice = &quot;\Device\LanmanRedirector\%SERVERNAME%\RemoteInstall\%INSTALLPATH%&quot;

[Unattended] OemPreinstall = no FileSystem = LeaveAlone ExtendOEMPartition = 0 TargetPath = \WINDOWS OemSkipEula = yes InstallFilesPath = &quot;\\%SERVERNAME%\RemoteInstall\%INSTALLPATH%\%MACHINETYPE%&quot; LegacyNIC = 1

[UserData] FullName = &quot;Microsoft Corporation&quot; OrgName = &quot;Microsoft Corporation&quot; ComputerName = %MACHINENAME% ProductID = &quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;

[GuiUnattended] OemSkipWelcome = 1 OemSkipRegional = 1 AdminPassword = &quot;Storage12&quot; AutoLogon = yes AutoLogonCount = 1000 TimeZone = 4

[LicenseFilePrintData] AutoMode = PerSeat

[GuiRunOnce]

[Display] BitsPerPel = 16 XResolution = 800 YResolution = 600 VRefresh = 60

[Networking] [NetServices] MS_Server=params.MS_PSched

[Identification] JoinDomain = %MACHINEDOMAIN% DoOldStyleDomainJoin = Yes

[RemoteInstall] Repartition = yes UseWholeDisk = yes

[OSChooser] ASRFile=asrpnpfiles\%guid%.sif ASRINFFile=\Device\LanmanRedirector\%SERVERNAME%\RemoteInstall\ASRFiles\%guid%.sif Description =&quot;ASRMachineName-2003-ADS(Backup-Date)&quot; Help =&quot;This image Restores and ASR backup image of Operating System for Dated date&quot; LaunchFile = &quot;%INSTALLPATH%\%MACHINETYPE%\templates\startrom.com&quot; ImageType = &quot;ASR&quot; Version=&quot;5.1 (0)&quot;

[Components] <li>Create an ASRFiles folder and an ASRPNPFiles folder, and then copy Asr.sif and Asrpnp.sif to them. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Create the ASRFiles folder and the ASRPNPFiles folder in the RemoteInstall folder on the RIS server. For example, create the following: <ul> <li>E:\RemoteInstall <ul> <li>ASRFiles</li> <li>ASRPNPFiles</li></ul> </li></ul> </li> <li>Copy the Asr.sif file from the ASR floppy disk to the ASRFiles folder.</li> <li>Copy the Asrpnp.sif file from the ASR floppy disk to the ASRPNPFiles folder.</li> <li>Determine the matching GUID by following one of these steps: <ul> <li>Open Active Directory Users and Computers, and then locate the GUID for the domain account that was created.</li> <li>Start a PXE boot of the client computer, and then select a CD-based image install. After this install starts, locate the RemoteInstall\Tmp folder and notice that the Ristndrd.sif has been copied and renamed to the client computer's GUID.sif in the RemoteInstall\Tmp folder.</li> <li>Use the Microsoft Visual Basic scripting method to locate the GUID. For additional information about this method, click the following article number to view the article in the Microsoft Knowledge Base:
 * ApplicationServer = OFF
 * iis_common = ON
 * iis_inetmgr = ON
 * iis_pwmgr = ON
 * iis_www = ON
 * iis_ftp=on
 * iis_htmla=on
 * iis_nntp=on
 * iis_smtp=on </li>

302467 How to prestage a RIS client computer using ADSI

</li></ul> </li> <li>Rename the \\RISserver\Reminst\ASRFiles\Asr.sif file and the \\RISserver\Reminst\ASRPNPFiles\Asrpnp.sif file to the GUID that is assigned to the client computer. For example, if the GUID in the RemoteInstall\Tmp folder is 0000000000000000009879o689756, rename the Asr.sif file 0000000000000000009879o689756.sif.

Note The Asr.sif file and the Asrpnp.sif file must match the GUID of the client computer that is being restored. If the GUID does not match, you receive an error message that states that the setup program cannot find the .sif files that are located in the ASRFiles folder or in the ASRPNPFiles folder. This error message references the GUID.sif file.</li></ol> </li> <li>Edit the Asr.sif file that you renamed to include the GUID that is located in the ASRFiles folder. Add a command line to the Commands section to map the \\RISserver\Reminst\Setup\English\Images\ASRWINNETADSRC1 drive after the network is loaded. To do this, follow these steps.

Note Do not perform this step if you are restoring from a tape backup. <ol style="list-style-type: lower-alpha;"> <li> Create a batch file named Mapdrv.cmd that includes the following command: <pre class="fixed_text"> net use z: \\risnet1\reminstv\setup\english\images\asrwinnetadsrc1 Password1 /USER:risnet1\administrator </li> <li>Create an $oem$\C folder in the ASR \ folder.</li> <li>Copy the Mapdrv.cmd file to the ASR \$oem$\C folder.</li> <li>Edit your Ristndrd.sif file to set OEMPreinstall=Yes.</li> <li> Edit your Asr.sif file to call the Mapdrv.cmd as follows: [COMMANDS] 1=1,3000,0,&quot;%SystemRoot%\system32\asr_fmt.exe&quot;,&quot;/restore&quot; 2=1,4990,1,&quot;%SystemRoot%\system32\asr_pfu.exe&quot;,&quot;/restore&quot; 3=1,2000,1,&quot;%SystemRoot%\system32\asr_ldm.exe&quot;,&quot;/restore&quot; 4=1,3990,0,&quot;%SystemRoot%\system32\cmd /c c:\mapdrv.cmd&quot; 5=1,4000,1,&quot;ntbackup&quot;,&quot;recover /1&quot; </li></ol> </li></ol>

back to the top

Keywords: kbMgmtServices kbwinservperf kbwinservnetwork kbFilePrintservices kbHOWTOmaster KB824184

Technology: kbWinServ2003Ent kbWinServ2003EntSearch kbWinServ2003Search kbWinServ2003St

-

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

© Microsoft Corporation. All rights reserved.