If you have suggestions or comments, communicate with your Lenovo® authorized representative. This guide is updated periodically, and you can check the latest publication on the Lenovo Web site at http://support.lenovo.com. Click ThinkVantage and then click the Rescue and Recovery icon to locate this guide.
Page 6
Rescue and Recovery 4.5 Deployment Guide...
The log files provide a readable way to view activities and a set of log entries. Note: The feature of viewing the log files is supported on select machine types of Lenovo-branded personal computers only. – Warranty status The Rescue and Recovery program is preinstalled on Lenovo-branded computers.
Note: When installing this package, refer to the readme file that is posted on the Lenovo Web page at http://support.lenovo.com. Click ThinkVantage and then click the Rescue and Recovery icon to locate...
Think branded systems. For best results, make sure that you have the latest version of the software installed. To obtain the latest version of the Rescue and Recovery program, go to the Lenovo Web site at http://support.lenovo.com. Click ThinkVantage and then click the Rescue and Recovery icon to locate the program.
• For installation paths that do NOT contain spaces: msiexec.exe /a "Lenovo Rescue and Recovery.msi" /qn TARGERDIR=F:\TVTRR • For installation paths that contain spaces: msiexec.exe /a "Lenovo Rescue and Recovery.msi" /qn TARGERDIR=\"F:\TVTRR\Rescue and Recovery\" The following is an example to use msiexec.exe. msiexec /i "C:\WindowsFolder\Profiles\UserName\ Personal\MySetups\project name\product configuration\release name\ DiskImages\Disk1\product name.msi"...
Table 1. Examples of running Setup.exe (continued) Description Example setup.exe /a /s /v”/qn TARGETDIR=”F: Perform silent administrative installation specifying the \TVTRR”” extract location for the Rescue and Recovery program. setup.exe /s /x /v/qn Perform silent uninstallation. setup.exe /v”REBOOT=”R” /L*v %temp% Perform installation with no reboot.
Page 13
Windows Installer looks for a .tvt file with a compatibility code (for example: AA, AB) that is equal to the minimum version compatibility code and a level that is greater than the current version level (all other version fields in the .tvt filename must match the minimum version exactly). If it does not find a file, the install process continues without updating the Predesktop Area.
Page 14
Table 3. (continued) Property Description EMULATIONMODE Specifies to force the installation in Emulation mode even if a Trusted Platform Module (TPM) exists. Set EMULATIONMODE=1 on the command line to install in Emulation mode. HALTIFTPMDISABLED If the TPM is in a disabled state and the installation is running in silent mode, the default is for the installation to proceed in emulation mode.
These variables can be used when creating scripts or when changing to a desired directory from a command prompt. For example, to change the c:\Program Files\Lenovo\Rescue and Recovery directory from a command prompt, type CD %rr% and press Enter.
Compatibility with BitLocker To achieve compatibility with BitLocker Drive Encryption, it is recommended to install the Rescue and Recovery program to your operating system after the partitions are properly set up with the Microsoft Bitlocker Drive Preparation Tool. When setting up the BitLocker partition, it is recommended to use the Microsoft BitLocker Drive Preparation Tool.
Page 17
The message can be ignored and everything should operate normally. 3. For OEM or non-Lenovo standard preload systems, you need to suspend the encryption of the Windows operating system partition when performing any backup or restore operations using the Rescue and Recovery program, otherwise the Rescue and Recovery program will not enter PDA.
Page 18
Rescue and Recovery 4.5 Deployment Guide...
File rescue File rescue used before restore, prompts the user for the backup storage location and then the user selects a backup. The Rescue and Recovery program will display the files that the current user is authorized to access. The user then selects the files, folders, or both to be rescued. Excluding the local hard disk, the system will display available file locations where the files can be rescued.
Users will interact with this custom recovery method through the Rescue and Recovery program and the Lenovo Base Software Selector programs. By performing a custom recovery, users have the option of including and excluding individual components such as applications, device drivers or operating systems as part of the recovery process.
• Required components are always installed upon recovery. • Optional components are displayed for the user on the Base Software Selector menu. • Restricted components are not installed upon recovery, and are not displayed to the end user. Manifest files Customizing the recovery process is controlled with manifest files.
Table 10. Network settings (continued) Setting Windows control file keyword Description Domain administrator DomainAdmin= Sets the domain administrator for the computer. Domain administrator password DomainAdminPassword= Sets the domain administrator password for the computer. Advanced settings are used to define one or more commands that can be run the first time a user logs on to his or her system.
The Sysprep backup operation in Windows 7 is different from that in Windows XP or Windows Vista. This is due to the new version Windows RE built from Windows 7. You can download the accessory package from the Lenovo Support Web site at http://support.lenovo.com. Follow the steps to perform the correct Sysprep backup operation through Generalize option.
Sysprep base backup. Mapping a network drive for backups The mapping network drive function relies on the registry settings located at HKLM\Software\Lenovo\MND. The Universal Naming Convention entry contains the computer name and share of the location you are attempting to attach.
Page 26
:: Extract the WWW EXE to the directory C:\TVTRR start /WAIT z936zisus00xxxx.exe /a /s /v"/qn TARGETDIR (where XXXX is the build ID) ="C:\TVTRR" REBOOT="R"" /w 2. Add the following command to the end of the rnrdeploy.xml file in C:\tvtrr\Program Files\Lenovo\Rescue and Recovery: <Rescue__and__Recovery..Settings..Backup path ="Rescue and Recovery\Settings\Backup">...
3. If you want to exclude .mpg and .jpg files from the backups, set the registry entry to include them at: HKLM\SOFTWARE\Lenovo\Rescue and Recovery\Settings\BackupList. For more information on including and excluding backups with the registry see Include and exclude backup files with Registry settings “Include and exclude backup files with registry settings”...
For more information on Active Directory configurations for the Rescue and Recovery program using Group Policy, see the accompanying XML/ADM Supplement for the deployment guide located on the ThinkVantage Technologies Administrator Tools page: http://support.lenovo.com/en_US/detail.page?LegacyDocID=TVAN-ADMIN#rnr Completing a backup Applications installed or uninstalled after the selected backup is created might need to be installed again to function correctly.
The Rescue and Recovery program can include and exclude an individual file, a folder, or an entire partition. With the Rescue and Recovery 4.5 program, these capabilities are controlled by the following registry entries which are the type REG_MULTI_SZ: • HKLM\SOFTWARE\Lenovo\Rescue and Recovery\Settings\BackupList • HKLM\SOFTWARE\Lenovo\Rescue and Recovery\Settings\ExcludeList • HKLM\SOFTWARE\Lenovo\Rescue and Recovery\Settings\OSAppsList...
Page 30
Within this section of the registry, you can choose to exclude software applications from the recovery process initiated by the Rescue and Recovery program. This GUI exclude list is managed through the registry at: HKLM\SOFTWARE\Lenovo\Rescue and Recovery\Settings\ExcludeList. Rescue and Recovery 4.5 Deployment Guide...
The Rescue and Recovery 4.5 program provides the ability to selectively restore particular files and folders when doing an OS & Apps restore through the registry key settings: HKLM\SOFTWARE\Lenovo\Rescue and Recovery\Settings\OSAppsList The OSAppsList setting will define what files, folders, or file types comprise the operating system and applications.
Predesktop Area (PDA) by administrators. Only an Administrator user can use this tool by default. You can obtain rrutil.exe from the ThinkVantage Technologies Administrator Tools Web page located at: http://support.lenovo.com/en_US/detail.page?LegacyDocID=TVAN-ADMIN#rnr The RRUTIL program works with the Rescue and Recovery filter driver on virtual partitions, and mounts type 0x07 partitions as a drive in order gain access.
Page 33
• Add or update files in the Predesktop Area. • Delete files from the Predesktop Area. • Rename files in the Predesktop Area. • View the files in \RRbackups directories. • Add backups to \RRbackups directories. • Get files from \RRbackups directories. •...
Page 34
Note: Wildcards are not supported in this function. You must understand the Predesktop Area environment before attempting any modifications. Put files in the Predesktop Area directories RRUTIL /p <path> Update (add/replace) files in \preboot, \minint, or root of the PE partition either virtual or type 0x07: 1.
Page 35
List all of the contents of the \RRbackups directories. Display the file size and date of each file in the backup as well as its location. The list below is an example of a backup directory with a base backup and one incremental backup.
Page 36
c:\SWTOOLS\C\0 Data0 Data1 EFSFile HashFile Info TOCFile C:\RRbackups\C\0 Data0 Data1 EFSFile HashFile Info TOCFile Determine \RRBackups space consumed RRUTIL /bs Determine the amount of space that is consumed by \RRbackups 1. Ability to determine how much space is consumed by backups. Listing by backup, for example, base and each incremental how much space is consumed.
Page 37
Example: pdaguixx.ini This example refers to pdaguixx.ini, which is a configuration file where you can customize elements of the Rescue and Recovery environment. See “Customizing the preboot environment” on page 32. Note: xx in the file name represents one of the following two-letter language abbreviations: Table 16.
Example 2 : Adding mass-storage controller drivers (such as SATA) to the Predesktop Area 1. Create a subdirectory under \minint\system32\ to contain the driver. 2. Copy *.sys into \minint\systme32\drivers. 3. Update \minint\system32\winpeoem.sif to include the subdirectory containing the driver (for an example, examine this file from 4.5 build 37).
Page 39
The Rescue and Recovery program has twenty-two entries in the left panel. Although functions are different, each entry has the same basic elements. The following is an example of a left-panel entry: [LeftMenu] button00=2, "Introduction", Introduction.bmp, 1, 1, 0, %tvtdrive%\Preboot\Opera\ENum3.exe, Table 17.
Page 40
Defining entry fields Button00=[0-10], "title" The text following the button type parameter specifies the text or title of the button. If the text exceeds the width of the left panel, the text is cut and ellipsis points indicate that more characters follow. The full title text is displayed when using hover help.
Page 41
Line05 = "*Configure your system settings and passwords" Line06 = "your system settings and passwords" Line07 = "*Communicate using the Internet and link to the Lenovo support site" Line08 = "use the Internet and link to the Lenovo support site"...
• HELP Help • LICENSE License • CANCEL Cancel • Command0 %tvtdrive%Preboot\Helps\en\f_welcom.htm • Command1 %tvtdrive%Preboot\Helps\en\C_ILA.htm To hide the Welcome window, change NoShowCk=0 to NoShowCk=1. To change the display fonts for the title and welcome text, edit the last three lines of the preceding example according to your font design preferences. Note: Do not change or delete lines 13 and 14.
Page 43
Opera will not save settings after it is closed If you are using the Rescue and Recovery program under Windows 7 and want to have the Opera browser remember its preferences during the current boot to the Predesktop Area, modify the opera.exe file. Specify the full path to the settings file on the fifth line of the \preboot\opera\opera_web.cmd from start opera.exe /Settings opera_default.ini %1 start opera.exe /Settings %tvtdrive%\preboot\opera\opera_default.ini %1...
Page 44
If you do not want any of the Internet Explorer favorites to be displayed in the browser provided in the Rescue and Recovery environment, complete the following steps: 1. Get the C:\PREBOOT\STARTUP\OPERA_010.CMD for editing by using the RRUTIL process as described in “Using RRUTIL.EXE”...
Page 45
3. Open the file for editing. 4. Locate the [Link Popup Menu]. 5. Remove the two semicolons, and then save the file. When the Rescue and Recovery program is closed and reopened, a user is able to right-click a link and the “Save Target As” option is displayed. This results in display of the Save As window.
Page 46
d. Save the file, and then copy the file to opera6.ini, and then restart the Rescue and Recovery program for the changes to be effective. • If the extension is not present and files of the desired type do not work correctly, do the following: a.
IPConfig =9.44.72.36 StartNet=Yes SubnetMask=255.255.255.128 4. Get the \PREBOOT\SWWORK NETSTART.TBI file by using the RRUTIL process described in “Using RRUTIL.EXE” on page 26. 5. Change factory -minint factory -winpe 6. Comment out the following lines: regsvr32 /s netcfgx.dll netcfg -v -winpe net start dhcp net start nla 7.
For example, a script called a.bat would be processed before 1.exe. To place a script or program in this directory, complete the following steps: 1. Get the RRUTIL from the Lenovo Rescue and Recovery Administration Tools site at: http://support.lenovo.com/en_US/detail.page?LegacyDocID=TVAN-ADMIN#rnr 2.
No password This option uses no authentication and allows the user to enter the Predesktop Area without using a password. Password access There are three options for password access: • Master password • User ID and password or passphrase • No password Master password The master password is a single password that allows you access to the Predesktop Area and backups.
Page 50
3. The Create Rescue Media function is embedded in the Lenovo ThinkVantage Tools application. 4. A message prompts to create the rescue media when performing a backup, if the Rescue and Recovery program detects that no rescue medium has been created before.
• “Scenario 6 - Manually creating the Service Partition of S drive” on page 50 Scenario 1 - New rollouts This section describes installing the Rescue and Recovery program in a new rollout on Lenovo-branded computers. Preparing the hard disk drive The first step to consider when deploying a system is preparing the hard disk drive of your donor system.
Page 52
:: Start the service. This is needed to create a base backup. start /WAIT net start "Rescue and Recovery Service" :: Make an ISO file here - ISO will reside in c:\Program Files\Lenovo\Rescue and Recovery\rrcd Note: You do not need to set up the environment if the system is rebooted.
In this example, you want to change the home page that is opened when an end user clicks the Open Browser button in the Rescue and Recovery environment. The Web page http://www.lenovo.com/thinkvantage opens. To make the change, when Notepad opens with the pdaguien.ini file: 1.
-p c:\RRDeployGuide\GuideExample\put ECHO. ECHO Reboot to the RR to see the change pause c:\Program Files\Lenovo\Common\BMGR\bmgr32.exe /bw /r Create getlist.txt: \preboot\usrintfc\pdaguien.ini Scenario 2 - Installing with WIM files and Windows 7 Windows 7 deployment is based on disk imaging with ImageX. ImageX utilizes file based imaging with WIM files instead of sector-based image formats.
2. From the Windows Start menu, run gpedit.msc. 3. Right-click Administrative Templates under Computer Configuration. 4. Select Add/Remove Templates. 5. Click the Add button and then select the rnr.adm file. The rnr.adm file can be obtained from the Lenovo ThinkVantage Technologies Administrator Tools Web page at: http://support.lenovo.com/en_US/detail.page?LegacyDocID=TVAN-ADMIN#rnr 6.
b. Give certain groups abilities to take backups, delete backups, schedule options, and password restrictions, then change groups and see if settings persists. c. Through Active Directory, enable Antidote Delivery Manager. Place packages to be run and make sure reporting is captured. Scenario 5 - Performing a Bare Metal Restore from an Admin Backup This section describes how to perform a Bare Metal Restore from an admin backup created by using a command-line such as below:...
Page 57
14. When the installation completes, log in to Windows. 15. Change the drive letter of the Partition 1 to S. 16. Activate Partition 1. 17. Copy C:\boot*.* to S:\, and restart the computer. 18. Start your computer from the Windows 7 installation disc, and click Repair your computer to repair the operating system.
Page 58
Rescue and Recovery 4.5 Deployment Guide...
RRCMD command-line interface The primary Rescue and Recovery command-line interface is RRCMD. The command is located in the C:\Program Files\Lenovo\Rescue and Recovery\ subdirectory. The following table provides information to use the command-line interface for the Rescue and Recovery program: Syntax: RRcmd <command>...
Page 60
Table 23. RRcmd parameters (continued) Command Result Sysprepbackup Stage a backup operation in the Pre Desktop Area after the computer is rebooted. The primary use for this feature is to capture a Sysprep backup. Notes: 1. In some cases, the progress bar does not move. If this occurs, you can verify the backup is occurring by listening to the hard disk drive.
Table 23. RRcmd parameters (continued) Command Result List the value of uuid and index of stored backups in the backup location. For example: listsystem rrcmd listsystem location=U The listbackup command must be used with listsystem. It displays more detailed listbackup backup information.
Windows PE partition. InvAgent The InvAgent command can be found in C:\Program Files\Common Files\Lenovo\InvAgent\IA.exe. The IA.exe creates a local XML output file that it stores in the same folder. One XML file will be created. The name of the XML file is created by combining manufacturer, model-type, and serial number, for example, Lenovo-2373Q1U-99MA4L7.XML.
Network share information is stored in the registry at HKLM\Software\Lenovo\MND\<app id>. If an Active Directory policy is used, these values are stored at: HKLM\Software\Policies\Lenovo\MND\<app id>.
• > 0 = failed When MapDrv is launched with no parameters, the user is prompted for the network share, user name, and password. It then attempts to connect to the specified network share using the specified credentials. The following table provides information about the parameters and the result of each parameter for MapDrv: Table 25.
Page 65
The boot manager interface command-line interface is BMGR32. It resides in the directory C:\Program Files\Common Files\Lenovo\BMGR. The following table presents the switches and their results for BMGR32. Table 26. BMGR32 parameters Parameter Result Boot to partition 0 (based on the order in the partition table).
Page 66
Sector number where the machine’s original master boot record is stored. • IBM Flag Value from the data sector (1 if Lenovo-branded system, 0 if not) • Boot Config Displays the installation option used to describe the machine layout. Whether a service partition was used, or a virtual partition.
• Boot State Determines the current state of the machine: – 0 – Boot normal to operating system. – 1 – Boot to the service operating system – 2 – Boot back to the normal operating system from the service operating system. •...
Table 28. Parameter (Required): Description Clear MBR and install PC DOS MBR Parameter (Optional): Apply changes to drive. Use n=0 for the first drive. Yes to all Display Help Display Help Active Directory Support Active Directory is a directory service. The directory is where information about users and resources is stored.
The ADM files indicate where in the registry the settings will be reflected. These settings will be in the following registry locations: Table 29. Registry locations Header Header Computer policies HKLM\Software\Policies\Lenovo\Rescue and Recovery\ User policies HKCU\Software\Policies\Lenovo\Rescue and Recovery\ Default user policies HKLM\Software\Policies\Lenovo\Rescue and Recovery\User defaults...
Table 30. \Rescue and Recovery (continued) Policy Description PDALogonMode Select the authentication mode for logging in to the PDA. WindowsPasswordRecoveryOptioninGUI Show, gray, or hide the GUI option to configure password recovery. Settings The following table provides the policies for the Settings tab: Table 31.
Page 71
Table 32. \Rescue and Recovery\Settings\User interface (continued) Policy Setting Description MenuItems SchedulePreferences Show, gray, or hide the Schedule Preferences menu item in the main user interface. Default: Show. MenuItems Optimize Show, gray, or hide the Optimize menu item in the main user interface. Default: Show. MenuItems ViewBackups Show, gray, or hide the View Backups menu...
Page 72
Table 32. \Rescue and Recovery\Settings\User interface (continued) Policy Setting Description Restore SFRRestoreNTFSToFat32 Show or hide the Fat32 partitions when restoring files from NTFS. Default: Show. Restore RescueFileSearch Show, gray, or hide the Rescue File Search button. Default: Show. Restore PasswordPersist Show, gray, or hide the Password Persist radio button.
Page 73
Table 32. \Rescue and Recovery\Settings\User interface (continued) Policy Setting Description CopyBackups CopyToSecond Show, gray, or hide the Copy To Second radio button. Default: Show. CopyBackups CopyToNetwork Show, gray, or hide the Copy To Network radio button. Default: Show. Delete BaseBackup Show or hide the Base Backup from the Delete page.
Page 74
2. When backing up the service partition to external media, set the following registry key before restoring your system with the Rescue and Recovery program: HKLM\Software\Lenovo\ Rescue and Recovery\ Settings\Backup\ BackupSPNetwork=1 BackupUSB Enable or disable Backup USB as a selected destination for backup.
Page 75
Table 33. \Rescue and Recovery\Settings\Backup (continued) Policy Setting Description LocalPartitionNumber Set the partition number for backups on the local drive. Valid values: 1-100. Default: 1. USBPartitionNumber Set the partition number for backups on the USB drive. Valid values: 1-100. Default: 1. SecondHDDPartitionNumber Set the partition number for backups on the Second hard disk drive.
Page 76
Table 33. \Rescue and Recovery\Settings\Backup (continued) Policy Setting Description VerifyDisc Enable or disable Verify Disc when backing up to a CD/DVD or creating an archive to those media. Default: Enabled. BatteryPercentRequired Battery Percent Required is essential before commencing a scheduled backup. This policy ensures there is enough battery power left to complete a backup.
Page 77
Table 34. \Rescue and Recovery\Settings\Restore Policy Setting Description PasswordPersist Show or hide the Password Persist option in Restore dialog boxes. Default: Show. PreRestore PreWinRestore Command to run prior to a restore operation from Windows. Include the full path to the file, if that path is not in the environment variable.
Page 78
Table 35. \Rescue and Recovery\Settings\Rejuvenate (continued) Policy Description PostRejuvenate Command to run following a rejuvenate operation. Include the full path to the file, if that path is not in the environment variable. Default: None. PostRejuvenateParameters The parameter that passes the command that is run following a rejuvenate operation.
Page 79
Table 38. \Scheduler\Tasks (continued) Policy Description Minute Select the minute when scheduled backups should occur. Valid values: 0–59. Default: none. Command to run prior to the scheduled backup task. Include the full path to the file. Default: none. PreParameters The parameters that passes the command that is run prior to the scheduled backup task.
Page 80
Rescue and Recovery 4.5 Deployment Guide...
ISO file and the file is automatically placed in the C:\Program Files\Lenovo\Rescue and Recovery\rrcd\ directory: :: This line will create the ISO silently and not burn it c:\Program Files\Common Files\Lenovo\Python24\python c:\Program Files\Common Files \Lenovo\spi\mkspiim.pyc /scripted :: This line will create the ISO with user interaction and not burn it c:\Program Files\Common Files\Lenovo\Python24\python c:\Program Files\Common Files \Lenovo\spi\mkspiim.pyc /scripted /noburn...
Page 82
For additional information about the Rescue and Recovery settings and working with Active Directory and Group Policy, see the accompanying XML/ADM Supplement for the deployment guide located on the ThinkVantage Technologies Administrator Tools page: http://support.lenovo.com/en_US/detail.page?LegacyDocID=TVAN-ADMIN#rnr Rescue and Recovery 4.5 Deployment Guide...
Page 83
Lenovo representative for information on the products and services currently available in your area. Any reference to an Lenovo product, program, or service is not intended to state or imply that only that Lenovo product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any Lenovo intellectual property right may be used instead.
Page 84
Trademarks The following terms are trademarks of Lenovo in the United States, other countries, or both: Lenovo Rescue and Recovery ThinkVantage Microsoft, Internet Explorer, Windows, and Windows Vista are trademarks of the Microsoft group of companies. Other company, product, or service names may be trademarks or service marks of others.