Logo
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
EPL Standings
 
 
Windows 7

Maintaining and Troubleshooting Windows 7 : Using Windows RE (part 1) - Accessing the WinRE

- 2015 Chevrolet Camaro Z28 - The Legend Returns
- Wagon Audi Allroad Vs. Subaru Outback
- 996 Carrera 4S is Driving Perfection
5/22/2011 11:28:24 AM
The Windows Recovery Environment (WinRE) includes several tools that can be used to troubleshoot and recover a system.

You can access the WinRE using the following methods:

  • Pressing F8 when booting to a Windows 7 installation

  • Booting with an installation DVD

  • Using bootable WinRE media

Once you boot into WinRE, you'll have access to the following tools:

  • Startup Repair Tool

  • System Restore

  • System Image Recovery

  • Windows Memory Diagnostic

  • Command Prompt

The methods to access the WinRE and the available tools are described in the following sections.

1. Accessing the WinRE

The primary method you'll use to access the WinRE is by pressing the F8 key when the system is booted. WinRE is automatically included in the installation of Windows 7.

However, if the system is corrupt, you can also access it using the installation DVD or by creating your own bootable WinRE CD or USB disk.

1.1. Accessing the WinRE with F8

The WinRE environment is included in the installation and, if the installation hasn't been corrupted, it can be accessed by pressing the F8 key on boot. This will display the Advanced Boot Options screen, as shown in Figure 1.

Figure 1. Accessing the Advanced Boot Options

The Repair Your Computer option is the first selection, and it will launch the WinRE. You can also access the different Safe Mode options and some other troubleshooting tools from this screen.

Exercise: Accessing the WinRE on Boot

  1. Reboot the Windows 7 computer, and press F8 as it starts. You need to press this key right away. If the Windows screen appears, it's too late, and you'll need to reboot and try again.

  2. When the Advanced Boot Options page appears, select Repair Your Computer and press Enter.

  3. Select your keyboard type and click Next.

  4. Enter a valid user name and password and click OK.

  5. The System Recovery Options page will appear.


1.2. Accessing the WinRE from the Installation DVD

If the installation is corrupt and you can't access the WinRE from the Advanced Boot Options screen, you can use the installation DVD. Place the installation DVD in the system, and boot to it as if you were installing Windows 7.

You need to use an installation DVD that matches the architecture of the system you're checking. If the installed system is 64-bit, for example, you'll need to use a 64-bit installation DVD.


You'll first be prompted to choose a language. After you click Next, the Install Now page appears, as shown in Figure 2. Select Repair Your Computer to launch the WinRE.

Figure 2. Accessing the WinRE from the installation DVD

1.3. Creating Bootable Media to Access the WinRE

You can also create your own bootable media to access the WinRE. Although this is a little more advanced, it will give you easy access to the WinRE so that you can troubleshoot problems when the installation won't start.

If you created a bootable WinPE disk , you have only a few more steps to create a WinRE disk. The WinRE.wim image file is embedded in the install.wim file on the installation DVD and can be extracted. After extracting it, you can rename it to boot.wim and use it instead of the boot.wim used on a bootable WinPE disk.


Exercise: Creating a Bootable Windows RE USB or CD

  1. Launch the Deployment Tools Command Prompt with administrative permissions. Select Start => All Programs => Microsoft Windows AIK, right-click the Deployment Tools Command Prompt, and select Run As Administrator.

  2. If prompted by User Account Control, click Yes to proceed.

  3. Create the folders that will store the Windows 7 mounted image with the following command:

    MD c:\Win7Mount

  4. Extract one of the Windows 7 images from the install.wim file on the installation DVD with the following steps:

    1. Insert the Windows 7 installation DVD in the DVD drive, and determine the drive letter assigned to the DVD. You can find this by launching Windows Explorer and browsing to the DVD.

      The following step assumes the letter is D:, but your system may assign a different letter.

    2. Mount an image from the install.wim file with the following command. The install.wim file is located in the Sources folder of the installation DVD and contains multiple images. This command will mount the first image. This will take a few minutes to complete.

      ImageX /mount d:\sources\install.wim 1 C:\Win7Mount

      At this point, the C:\Win7Mount folder includes all the files of a Windows installation.

  5. Extract the Windows RE image using the following steps:

    1. Use the following command to create the folder that will hold the WinRE.wim file that is in the mounted Windows 7 image.

      MD C:\WinRE

    2. Copy the WinRE.wim file from the mounted Windows 7 image with the following command:

      Copy c:\Win7Mount\Windows\System32\Recovery\WinRE.wim c:\WinRE

    3. At this point, you've finished with the mounted image, so unmount it with the following command:

      ImageX /unmount c:\Win7Mount

      This will remove all of the files from this folder.

  6. Verify that you have a MyPE folder on your C: drive .

  7. Make a copy of the MyPE folder named MyRE with the following command:

    Xcopy c:\MyPE /s c:\MyRE

    This will create a copy of the folders including the iso folder. The iso folder includes all of the required files and folders for the WinPE, and you can modify it slightly to use it as a WinRE.

  8. You'll need to overwrite the boot.wim file in the iso folder with the WinRE.wim file you extracted from the installation image in step 5. Execute the following command:

    Copy c:\WinRE\WinRE.wim c:\MyRE\iso\sources\boot.wim

    When prompted to overwrite boot.wim, type Y and press Enter.

    At this point, you have created the Windows Recovery Environment (WinRE) folder. You can create a bootable USB drive by following steps 9 and 10 and create a bootable CD-ROM by following steps 11 through 13.

  9. Format your USB drive with DiskPart using the following commands:

    1. Launch the command prompt with administrative permissions. If prompted by User Account Control, click Yes.

    2. Type DiskPart, and press Enter to access the Disk Partition tool.

    3. Type List Disk to list all the disks on your system. Identify the correct disk number for your flash drive. You'll use this disk number when executing the Select Disk command.

      It's very important that you identify the correct drive. Otherwise, you may delete valuable data on another disk.

    4. Enter the following commands to prepare this disk. Replace disk 2 with the actual disk number of your USB drive identified in the previous step.

      Select disk 2
      Clean
      Create partition primary
      Select partition 1
      Active
      Format quick fs=fat32
      Assign
      Exit

      At this point, the drive will be formatted as a FAT32 disk and all the data on the USB disk will be removed. When you press Enter after typing in Assign, AutoPlay will recognize the disk and prompt you (assuming AutoPlay is enabled on your system). Select Open Folder To View Files.

  10. Copy the contents of the entire c:\MyRE\ISO folder to the root of the USB drive. You can use Windows Explorer or the following command. Replace the letter x in the command with the letter assigned to your USB drive.

    Xcopy c:\MyRE\iso\*.* /e x:\

    That's it. You now have a USB drive configured with bootable WinRE.

  11. To create a bootable CD-ROM, you'll need first to create an .iso image from the WinRE folders you've created. If it is not still open, launch the Deployment Tools Command Prompt with administrative permissions. Enter the following command on a single line to create the WinRE .iso image from the MyRE\iso folder.

    oscdimg -n -bc:\MyRE\etfsboot.com c:\MyRE\iso c:\MyRE\MyRE.iso

    The oscdimg command creates an .iso file that can be burned to DVD. The -n switch specifies that long filenames are allowed. The -b switch specifies that a bootable CD is to be created using (using etfsboot.com). Note that there is no space between -b and c:\MyRE. The c:\MyRE\iso clause identifies the Source folder to use when creating the image. Finally, the c:\MyRE\MyRE.iso clause identifies the target file, or the name and location of the image file that ultimately will be burned to CD.

  12. Place a writeable CD into the system's CD burner.

  13. Launch Windows Explorer, and browse to the C:\MyPE folder. Right-click the MyRE.iso file, and select Burn Disc Image. Click Burn on the Windows Disc Image Burner window.


This image allows you to boot to the Windows Recovery Environment just as you could from the installation DVD. You'll be prompted to select a keyboard, and the WinRE will then search for any installed operating system. Once you select the operating system, the System Recovery Options screen will launch.
Top Search -----------------
- Enabling and Customizing Pen and Touch Features
- Microsoft Visio 2010 : Creating Swimlane Diagrams
- Managing Printing : Deploying Printers Using Group Policy
- Activating and Validating Windows 7
- Managing Disks from the Command Prompt
- Microsoft Excel 2010 : Adding and Deleting a Data Series
- Networking with Windows 7 : Resolving Names to IP Addresses
- Sharing Printers, Scanners, and Fax Machines
- Microsoft Word 2010 : Saving a Document with Macros & Opening a Document with Macros
- Managing Printers Using Print Management (part 2) - Configuring Printer Driver Isolation Mode
Other -----------------
- Maintaining and Troubleshooting Windows 7 : Identifying and Resolving Performance Issues (part 3) - Managing Power Settings
- Maintaining and Troubleshooting Windows 7 : Identifying and Resolving Performance Issues (part 2) - Configuring Services
- Maintaining and Troubleshooting Windows 7 : Identifying and Resolving Performance Issues (part 1) - Analyzing Logs with Event Viewer & Using the Action Center
- Managing the Life Cycle—Keeping Windows 7 Up to Date : Using Windows Server Update Services
- Managing the Life Cycle—Keeping Windows 7 Up to Date : Using MBSA for Security Audits
- Managing the Life Cycle—Keeping Windows 7 Up to Date
- Using Windows PowerShell and the PowerShell ISE (part 3) - Using PowerShell Commands
- Using Windows PowerShell and the PowerShell ISE (part 2) - Running PowerShell Scripts
- Using Windows PowerShell and the PowerShell ISE (part 1)
- Using the Windows Command Prompt (part 4)
 
 
Most view of day
- Microsoft Dynamic CRM 4 : Data Migration (part 4) - Creating a Data Migration
- Leveraging Social Networking Tools in SharePoint 2010 : Restricting User Access to and Creation of My Site Sites
- Microsoft Dynamics AX 2009 : The MorphX Tools - Code Compiler & Dynamics AX SDK
- Windows Server 2003 : Securing Network Communications Using IPSec - Troubleshooting Data Transmission Security
- Building BizTalk Server 2009 Applications : Setting up new BizTalk projects
- Iphone Application : Using Gesture Recognizers (part 4)
- Microsoft Dynamics AX 2009 : Working with Data in Forms - Processing multiple records
- Windows Server 2008 R2 : Elements of Group Policy (part 5)
- Maintaining and Troubleshooting Windows 7 : Using Windows RE (part 1) - Accessing the WinRE
- Windows Server 2008 R2 : Deploying and Using Windows Virtualization - Quick Migration and Live Migration (part 2)
Top 10
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 8) - Configuring Transport Rules
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 7) - Configuring Journal Rules
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 6) - Verifying Edge Subscriptions, Removing Edge Subscriptions
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 5) - Getting Edge Subscription Details, Synchronizing Edge Subscriptions
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 4) - Creating an Edge Subscription
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 3) - Enabling Anti-Spam Features
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 2) - Configuring the Transport Dumpster , Configuring Shadow Redundancy
- Microsoft Exchange Server 2010 : Completing Transport Server Setup (part 1) - Configuring Transport Limits
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 7)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 6)
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro