• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
How to recovert
 

How to recovert

on

  • 574 views

 

Statistics

Views

Total Views
574
Views on SlideShare
574
Embed Views
0

Actions

Likes
0
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    How to recovert How to recovert Document Transcript

    • How to Recover from a Corrupted Registry that Prevents Windows XP from Starting, in 10 minutes or less. Error messages similar to the following are displayedWindows XP could not start because the following file is missing or corrupt:WINDOWSSYSTEM32CONFIGSYSTEMWindows XP could not start because the following file is missing or corrupt:WINDOWSSYSTEM32CONFIGSOFTWAREStop: c0000218 {Registry File Failure} The registry cannot load the hive (file):SystemRootSystem32ConfigSOFTWARE or its log or alternate ;And other hints: Please Take 5 minutes and read this thoroughly!!!!!!
    • It will save you many many many hours of frustration later!!!!!(It is highly recommended you print this file out for future reference since it will not be available on your computer) DO NOT REFORMAT YOUR HARD DRIVE. Read this entire article before starting, only takes a few minutes and could save you hours. It is not essential you read the recovery console help section.DISCLAIMER OFDAMAGESALMOST ALL DIGITAL ELECTRONICS assumes no liability for damages, direct orconsequential, which may result from the use of this information, even if ALMOST ALLDIGITAL ELECTRONICS has been advised of the possibility of such damages.Since you were just about to reformat your hard drive and startall over installing and registering your applications and restoringyour backed up data you have little to lose, however Use at your own risk,
    • Dont let this warning scare you too much. This app note is acompilation of several Microsoft technical files and not my own creation. Similar ifnot identical procedures are described elsewhere on the internet so it is a generallyaccepted process. This article assumes that normal recovery methods have failed and access to the system is not available except by using Recovery Console. You should have tried "SAFE MODE" and "restore last known good configuration" from the advanced startups available by pressing F8 in the first few seconds of a reboot and before windows tries to load. If an Automatic System Recovery (ASR)backup exists, it is the preferred method forrecovery; it is recommended that you use the ASR backup before you try the procedure described in this article.While you still can!!!! Create the following files inthe C:windows directory. This is important since recoveryconsole can only access the C:windows directory.
    • You can do so by copying and pasting the text below intonotepad and save-as the result to C:windows.regcopy1.txt (title of file, not included in file.)md tmpcopy c:windowssystem32configsystem c:windowstmpsystem.bakcopy c:windowssystem32configsoftware c:windowstmpsoftware.bakcopy c:windowssystem32configsam c:windowstmpsam.bakcopy c:windowssystem32configsecurity c:windowstmpsecurity.bakcopy c:windowssystem32configdefault c:windowstmpdefault.bakdelete c:windowssystem32configsystemdelete c:windowssystem32configsoftwaredelete c:windowssystem32configsamdelete c:windowssystem32configsecuritydelete c:windowssystem32configdefaultcopy c:windowsrepairsystem c:windowssystem32configsystemcopy c:windowsrepairsoftware c:windowssystem32configsoftwarecopy c:windowsrepairsam c:windowssystem32configsamcopy c:windowsrepairsecurity c:windowssystem32configsecuritycopy c:windowsrepairdefault c:windowssystem32configdefaultandregcopy2.txt (title of file, not included in file.)del c:windowssystem32configsamdel c:windowssystem32configsecuritydel c:windowssystem32configsoftwaredel c:windowssystem32configdefault
    • del c:windowssystem32configsystemcopy c:windowstmp_registry_machine_softwarec:windowssystem32configsoftwarecopy c:windowstmp_registry_machine_systemc:windowssystem32configsystemcopy c:windowstmp_registry_machine_sam c:windowssystem32configsamcopy c:windowstmp_registry_machine_securityc:windowssystem32configsecuritycopy c:windowstmp_registry_user_.default c:windowssystem32configdefault In addition is is convenient to install the recovery console,described below, as a STARTUP OPTION in the boot menu which appears following a reboot. NOTE: a boot menu does not appear unless you have multiple operating systems. Recovery Console is an additional operating system so the boot menu will appear if it is installed.Instructions for its use are below. ,however you dont need to read them because you aregoing to use only one of its commands, "batch", and that is explicitly called out in therecovery instructions below.Installing the Recovery ConsoleYou can install the Recovery Console on your computer to make it available in caseyou are unable to restart Windows. You can then select the Recovery Console optionfrom the list of available operating systems on startup. It is wise to install theRecovery Console on important servers, and on the workstations of IT personnel. Thisarticle describes how you can install the Recovery Console to your Windows XPcomputer. To install the Recovery Console, you must have administrative rights onthe computer.Although you can run the Recovery console by booting directly from the WindowsXP CD, its much more convenient to set it up as a startup option on your boot menu.To run directly by booting from the CD see the "Using the Recovery Console" sectionlater in this article.
    • To install the Recovery Console, perform the following steps: 1. Insert the Windows XP CD into the CD-ROM drive. 2. Click Start, and then click Run. 3. In the Open box, type d:i386winnt32.exe /cmdcons where d is the drive letter for the CD-ROM drive. 4. A Windows Setup Dialog Box appears, which describes the Recovery Console option. The system prompts you to confirm installation. Click Yes to start the installation procedure. 5. Restart the computer. The next time you start your computer, you will see a "Microsoft Windows Recovery Console" entry on the boot menu.By the way, the time that the boot menu is displayed defaults to 30 seconds but can bechanged from the "my computer" properties
    • You can give Recovery Console access to all directories bydoing this (although you generally will not need it):This step-by-step article describes how to use Group Policy to add more power to theRecovery Console. Windows XP provides a Group Policy that lets you add power tothe commands that are available in the Recovery Console. Under normal conditions,the Recovery Console imposes limits on the environment in which it operates.Use Group Policy to Add Power to Recovery Console
    • If you pre-install the Recovery Console on a computer, you should use Group Policyto enhance the environment settings, adding power to the available file operations. Todo so: 1. Click Start, click Run, type mmc in the Open box, and then click OK. 2. On the File menu, click Add/Remove Snap-in, and then click Add. 3. Click Group Policy, and then click Add. 4. Click Local Computer, click Finish, and then click Close to return to the Add/Remove Snap-in dialog box. 5. Click OK to return to the Console window. 6. Expand the Local Computer Policy object to Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesSecurity Options. 7. Select the Security Options object in the Console pane to display the security policies in the Details pane. 8. In the Details pane, double-click the Recovery Console: Allow Floppy Copy And Access To All Drives And Folders policy. 9. Click Enabled, and then click OK. 10. Quit the MMC. You can save the console in case you want to make changes.After you have enabled this Group Policy, when you enter the Recovery Console youcan change the environment settings with the set command, by using thesetvariable = TRUE or FALSE syntax.NOTE: Be sure to use a space on each side of the equal sign. If you do not,the set command generates a "syntax error" error message and does not work.The following variables define the default environment. The variables, when set toTRUE, enlarge the scope of the environment setting and have the following meanings: AllowWildCards = TRUE Enable wildcard support for some commands (such as the del command) AllowAllPaths = TRUE Allows access to all files and folders on the computer AllowRemovableMedia = TRUE Allow files to be copied to removable media, such as a floppy disk NoCopyPrompt = TRUE Do not prompt when overwriting an existing fileTo see the current settings for the environment, type set without parameters at acommand prompt.
    • SUMMARYThis article describes how to recover a Windows XP system that does not startbecause of corruption in the registry. This procedure does not guarantee fullrecovery of the system to a previous state; however, you should get very close.Ive always gotten full recovery.In part 1 ,using the recovery console, you restore the registryto its virgin installed configuration as if you had justinstalled XP. This allow you to boot to an operable verson ofXP. The file regcopy1.txt you created above does this foryou.In part 2, using the operable version, you find a recentversion of the registry and copy it toa C:WindowsTmp directory.In part 3, using the recovery console, you replace the virgininstalled configuration with the version copied totheC:WindowsTmp directory. The file regcopy2.txt you createdabove does this for you.In part 4 you boot to that version of XP and then use"System Restore" to restore to the last known goodconfiguration.A TESTED idea that skips parts 1 and 2 in the future (afterhaving run all 4 parts at least once) Make sure you read thisone since it will make recovery very quick, especially if youhave recovery console installed.Part One
    • In part one, you boot to the Recovery Console, create a temporary folder, back up theexisting registry files to a new location, delete the registry files at their existinglocation, and then copy the registry files from the repair folder to theSystem32Config folder. When you are finished with this procedure, a registry iscreated that you can use to boot back into Windows XP. This registry was createdand saved during the initial install of Windows XP.You do this by running the regcopy1.txt you created above or by manually typingin the commands described in it.To complete part one, follow these steps:1) Boot to the Recovery Console. A) Boot to "recovery console" from the boot menu. OR B) Make sure BIOS is set to boot from CD-ROM, Insert your XP system diskand reboot. Press any key to boot from CD-ROM when screen says to. After a bunch of setup files are loaded, Chose R for recovery console whenprompted.2) Select installation (usually "1" RETURN unless you have multiple operatingsystems then get number from the boot menu)3) Enter the administrator password if you have one or just hit RETURN4) At the Recovery Console command prompt, type the following :c:windowsbatch regcopy1.txtor hand type in the dos commands listed in it. 1. Type exit to quit Recovery Console. Your computer will restart to the install version of XP. If requested, you may re-activate XP via the internet.(Should not have to re- register) Not sure if this is necessary but have not tried to go without it.At this point you are the same as if you had reformatted your hard drive andinstalled XP for the first time and you would have lost all data files, emails,internet settings and everything else that had happened since the initial install.You would then have to spend about a full day reinstalling and re-registering allyour applications and restoring any backup data files you were smart enough tomake.
    • HOWEVER, you did not reformat your hard drive and all that stuff is stillthere. The following parts will get you back to full restore in about 15 minutesPart TwoTo complete the procedure described in this section, you must be logged on as anadministrator, or an administrative user (a user who has an account in theAdministrators group).In part two, you copy the registry files from their backed up location by SystemRestore. This folder is not available in Recovery Console and is normally not visibleduring normal usage. Before you start this procedure, you must change severalsettings to make the folder visible: 1. Start Windows Explorer. 2. On the Tools menu, click Folder options. 3. Click the View tab. 4. Under Hidden files and folders, click to select Show hidden files and folders, and then click to clear the Hide protected operating system files (Recommended) check box. 5. Click Yes when the dialog box is displayed that confirms that you want to display these files. 6. Double-click the drive where you installed Windows XP to get a list of the folders. If is important to click the correct drive.Open the System Volume Information folder. This folder appears dimmed folderbecause it is set as a super-hidden folder.NOTE: You may receive the following error message:C:System Volume Information is not accessible. Access isdenied.
    • If you get this message, see the following:309531 How to Gain Access to the System Volume Information FolderWindows XP Professional using the NTFS File System on a Workgroup orStandalone Computer 1. Click Start, and then click My Computer. 2. On the Tools menu, click Folder Options. 3. On the View tab, click Show hidden files and folders. 4. Clear the Hide protected operating system files (Recommended) check box. Click Yes when you are prompted to confirm the change. 5. Clear the Use simple file sharing (Recommended) check box. 6. Click OK. 7. Right-click the System Volume Information folder in the root folder, and then click Properties. 8. Click the Security tab. 9. Click Add, and then type the name of the user to whom you want to give access to the folder. Typically, this is the account with which you are logged on (The USER NAME you are logged in as). Click OK, and then click OK. 10. Double-click the System Volume Information folder in the root folder to open it.This folder contains one or more _restore {GUID} folders such as"_restore{87BD3667-3246-476B-923F-F86E30B3E7F8}".
    • Open any _restore folder that was not created at the current time. Best to pick one atleast a day old. You may have to click Details on the View menu to see when thesefolders were created.If the _restore folder contains only RP0 and RP1 do not use this folder. Youshould find one containing many RPxxx folders depending on how long your systemhas been in operation.Open one of these folders to locate a Snapshot subfolder folder; the following path isan example of a folder path to the Snapshot folder:C:System Volume Information_restore{D86480E3-73EF-47BC-A0EB-A81BE6EE3ED8}RP290SnapshotI usually pick a snapshot dated the previous day.Typical contents of a snapshot folder is shown below
    • From the Snapshot folder, copy the following files (usuallythe first 5) and paste to the C:WindowsTmp folder: _REGISTRY_MACHINE_SAM _REGISTRY_MACHINE_SECURITY _REGISTRY_MACHINE_SOFTWARE _REGISTRY_MACHINE_SYSTEM _REGISTRY_USER_.DEFAULTusing the standard Windows Copy and Paste functions.Part ThreeIn part three, you delete the existing registry files, and then copy the SystemRestore Registry files to the C:WindowsSystem32Config folder:You do this by running the regcopy2.txt you created above or by manually typingin the commands described in it.1) Restart the computer2) Boot to the Recovery Console. A) Boot to "recovery console" from the boot menu. OR B) Make sure BIOS is set to boot from CD-ROM, Insert your XP system diskand reboot.
    • Press any key to boot from CD-ROM when screen says to. After a bunch of setup files are loaded, Chose R for recovery console whenprompted.3) Select installation (usually "1" RETURN unless you have multiple operatingsystems then get number from the boot menu)4) Enter the administrator password if you have one or just hit RETURN5) At the Recovery Console command prompt, type the following :RUN: C:windowsbatch regcopy2.txtor manually type in the dos commands described in it.Type exit to quit Recovery Console. Your computer will restart to the previousversion of XP.If requested, you may re-activate XP via the internet.(Should not have to re-register)Not sure if this is necessary but have not tried to go without it.Part Four Do not skip this part as there is more to system restore than just theregistry files. Click Start, and then click All Programs. Click Accessories, and then click System Tools. Click System Restore, and then click Restore to a previous Restore Point. select a restore point previous to the one that clobbered your system Usually any point prior to the installation of the thing that clobbered you. One dated the previous day usually works.You will not lose any data from documents you created orfrom your email accounts.Thats it, you should be backin business.
    • If not and you are still getting boot errors or other errors (like one time it locked upwhen trying to register the software over the internet) then repeat the process using adifferent restore point.Apparently XP will actually create a restore point that contains a corrupted registeryfile. You have to find a snapshot folder that has good files. Try going back to andeven earlier one such as two or three days ago. The following has been TESTEDAfter you have done the full 4 step procedure once there is a simplified approachthat skips part 1 and part 2.Since the function of parts 1 and 2 was to provide a usable version of XP for the solepurpose of copying a recent version of the registry to C:windowstmp, and since thiswas already done by a previous execution of parts 1 and 2 then it stands to reason youshould not have to repeat them next time. Heres a late breaking thought, GO AHEAD ANDEXECUTE PART 2 RIGHT NOW and you will never have to run PART 1. Then you will probably not be bothered to re- activate windows.Create a REGrestore.txt file in C:windows. This utilizes the knowngood registry files you put in theC:WindowsTmp directory in PART 2 on your lastbomb out of XP and immediately replaces them with that version.You could also just run Regcopy2.txt. REGrestore is identical to Regcopy2 except itsaves the existing registry files in C:windowstmp as .bak files. Not really necessarymainly because there was something wrong with them anyway. But doesnt hurt todo it.This should allow you to then do PART 4, using system restore to get back to date.REGrestore.txt
    • copy c:windowssystem32configsystem c:windowstmpsystem1.bakcopy c:windowssystem32configsoftware c:windowstmpsoftware1.bakcopy c:windowssystem32configsam c:windowstmpsam1.bakcopy c:windowssystem32configsecurity c:windowstmpsecurity1.bakcopy c:windowssystem32configdefault c:windowstmpdefault1.bakdel c:windowssystem32configsamdel c:windowssystem32configsecuritydel c:windowssystem32configsoftwaredel c:windowssystem32configdefaultdel c:windowssystem32configsystemcopy c:windowstmp_registry_machine_softwarec:windowssystem32configsoftwarecopy c:windowstmp_registry_machine_systemc:windowssystem32configsystemcopy c:windowstmp_registry_machine_sam c:windowssystem32configsamcopy c:windowstmp_registry_machine_securityc:windowssystem32configsecuritycopy c:windowstmp_registry_user_.defaultc:windowssystem32configdefault1) Restart the computer2) Boot to the Recovery Console. A) Boot to "recovery console" from the boot menu. OR B) Make sure BIOS is set to boot from CD-ROM, Insert your XP system diskand reboot. Press any key to boot from CD-ROM when screen says to. After a bunch of setup files are loaded, Chose R for recovery console whenprompted.3) Select installation (usually "1" RETURN unless you have multiple operatingsystems then get number from the boot menu)4) Enter the administrator password if you have one or just hit RETURN5) At the Recovery Console command prompt, type the following :RUN: C:windowsbatch regrestore.txtor manually type in the dos commands described in it.Type exit to quit Recovery Console. Your computer will restart to the recent versionof XP.
    • From there repeat PART 4 using system restore to get up todate. DO NOT skip this step as there is more to system restorethan just the registry. It also restores previous versions ofdrivers and God knows what else. If a bad driver update is whatbombed XP on your system this will put the old version back inplace of the bad one.If requested, you may re-activate XP via the internet.(Should not have to re-register) Notsure if this is necessary but have not tried to go without it. When I tried this process I did not have to re-activate XP which eliminates another irritating step.For more great tips on XP seeWindows XP forgets my folder view settings. Is there a fix?How to delete a zero byte file. such as "search[1]", thatcannot be deleted in Windows.Cannot open folders, all functions incredibly slow,continuous flickering drive light.How to delete a stuck email that never seems to finishdownloading. This web based email will delete any and all emails you tell it to you will need your email address and password. What with all the spam these days I have to use this about once a week.http://www.rk-net.com/XP/WindowsXP.htm
    • http://www.winxpnews.com/http://www.kellys-korner-xp.com/xp.htmI had a case where I could not open any folders (via shortcuts atleast), the system was incredibly slow, I mean minutes instead ofseconds to execute a function, and the drive light was flickeringalmost continuously. Restarting did not fix it. Turningmachine off and then back on, to erase all of memory, did notfix it.I resorted to an old trick I used with Win 98 when strange thingslike that happened.Reboot in SAFE MODE (F8 during boot up of Windows)All you do in SAFE MODE is select START / Turn offComputer / Restart and reboot to normal XP.Have no idea what that does but it fixes the problem.While I never had any registry problems with Win98 here is some recoveryinformation that could come in handy.Fixing a Corrupted Registry with Registry CheckerIn Windows 98, a backup copy of the Registry is always made when you start yourcomputer. This way you always have a "clean" copy of the Registry available, in caseit gets corrupted while youre using Windows. Every time Windows starts, a hiddenprogram called Registry Checker automatically scans your Registry for errors; if itnotices a problem, it replaces the current version of the Registry with the "clean"backup copy.Why doesnt XP do this? Giant step backwards there MS.
    • You can also run Registry Checker manually to fix a corrupted Registry.Click the Start button and select Run.When the Run dialog box appears, type scanreg in the Open box, and click OK.Registry Checker will now scan your Registry for errors, fixing them automatically.When it is done scanning your Registry, it will ask if you want to make anotherbackup of the Registry. Click Yes to do so.Restoring a Previous Copy of the RegistryIf your Registry appears to be beyond fixing, you can use Registry Checker tomanually restore the backup copy made the last time you started your computer.Click the Start button and select Shut Down.When the Shut Down Windows dialog box appears, select Restart in MS-DOS Modeand click OK.Your computer will now restart in a special non-Windows MS-DOS mode. When yousee the c:> prompt, type cd c:windows and press Enter.You should now see a prompt that reads: c:windows>. Type c:scanreg /restore andpress Enter.Registry Checker will now restore the backup copy of the Registry. When it finishesdoing so, press Ctrl+Alt+Del to restart your computer.HOW TO: Install and Use the RecoveryConsole in Windows XPThis article was previously published under Q307654IN THIS TASK SUMMARY o Installing the Recovery Console o Using the Recovery Console o Using the Recovery Console Command Prompt o Command Actions o Recovery Console Rules o Deleting the Recovery ConsoleSUMMARY
    • The Windows Recovery console is designed to help you recover when your Windows-Based computer does not start properly or does not start at all. If Safe mode and otherstartup options do not work, you can consider using the Recovery Console. Thismethod is recommended only if you are an advanced user who can use basiccommands to identify and locate problem drivers and files. In addition, you must bean administrator to use the Recovery Console.back to the topInstalling the Recovery ConsoleYou can install the Recovery Console on your computer to make it available in caseyou are unable to restart Windows. You can then select the Recovery Console optionfrom the list of available operating systems on startup. It is wise to install theRecovery Console on important servers, and on the workstations of IT personnel. Thisarticle describes how you can install the Recovery Console to your Windows XPcomputer. To install the Recovery Console, you must have administrative rights onthe computer.Although you can run the Recovery console by booting directly from the WindowsXP CD, its much more convenient to set it up as a startup option on your boot menu.To run directly by booting from the CD see the "Using the Recovery Console" sectionlater in this article.To install the Recovery Console, perform the following steps: 1. Insert the Windows XP CD into the CD-ROM drive. 2. Click Start, and then click Run. 3. In the Open box, type d:i386winnt32.exe /cmdcons where d is the drive letter for the CD-ROM drive. 4. A Windows Setup Dialog Box appears, which describes the Recovery Console option. The system prompts you to confirm installation. Click Yes to start the installation procedure. 5. Restart the computer. The next time you start your computer, you will see a "Microsoft Windows Recovery Console" entry on the boot menu.NOTE: Alternatively, you can use a UNC to install the Recovery Console from anetwork share point.back to the top
    • Using the Recovery ConsoleYou can enable and disable services, format drives, read and write data on a localdrive (including drives that are formatted to use the NT File System (NTFS), andperform many other administrative tasks. The Recovery Console is particularly usefulif you need to repair your computer by copying a file from a disk or CD-ROM to yourhard disk, or if you need to reconfigure a service that is preventing your computerfrom starting properly.If you cannot start your computer, you can run the Recovery Console from theMicrosoft Windows XP startup disks or the Windows XP CD-ROM. This articledescribes how to perform this task.After Windows XP is installed on your computer, to start the computer and use theRecovery Console you need the Windows XP startup disks or the Windows XP CD-ROM.For additional information about how to create Startup disks for Windows XP (theyare not included with Windows XP), click the article number below to view the articlein the Microsoft Knowledge Base:310994 Obtaining Windows XP Setup Boot DisksNOTE: To start the computer from the Windows XP CD-ROM, you need toconfigure the basic input/output system (BIOS) of the computer to boot from yourCD-ROM drive.To run the Recovery Console from the Windows XP startup disks or the Windows XPCD-ROM, use the following steps: 1. Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD-ROM drive, and then restart the computer. Click to select any options that are required to start the computer from the CD- ROM drive if you are prompted to do so. 2. When the "Welcome to Setup" screen appears, press R to start the Recovery Console. 3. If you have a dual-boot or multiple-boot computer, choose the installation that you need to access from the Recovery Console. 4. When you are prompted to do so, type the Administrator password. If the administrator password is blank, just press ENTER.
    • 5. At the command prompt, type the appropriate commands to diagnose and repair your Windows XP installation. For a list of commands that are available in Recovery Console, type recovery console commands or help at the command prompt, and then press ENTER. For information about a specific command, type help commandname at the command prompt, and then press ENTER. 6. To exit the Recovery Console and restart the computer, type exit at the command prompt, and then press ENTER.back to the topUsing the Recovery Console Command PromptWhen you use the Recovery Console, you are working at a special command promptrather than the usual Windows command prompt. The Recovery Console has its owncommand interpreter. To enter this command interpreter, you are prompted byRecovery Console to type the Administrator password (the local Administrator, not adomain Administrator).When the Recovery Console starts, you have the opportunity to press F6 to install athird-party SCSI or RAID driver, in case you need such a driver to access the harddisk. This prompt works the same as it does during installation of the operatingsystem.The Recovery Console takes a few seconds to start. When the Recovery Consolemenu is displayed, a numbered list of the Windows installations on the computer isdisplayed (usually only one entry-c:Windows-exists). Press a number before youpress ENTER, even when only one entry appears. If you press ENTER withoutchoosing a number, the computer restarts and begins the process again.When you see the prompt for %SystemRoot% (usually C:Windows), you can beginusing the available commands for the Recovery Console.back to the topCommand Actions
    • The following list describes the available commands for the Recovery Console: Attrib changes attributes on one file or subdirectory. Batch executes commands that you specify in the text file, Inputfile; Outputfile holds the output of the commands. If you omit the Outputfile parameter, output is displayed on the screen. Bootcfg is used to manipulate the Boot.ini for boot configuration and recovery. CD (Chdir) operates only within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources. Chkdsk The /p switch runs Chkdsk even if the drive is not flagged as dirty. The /r switch locates bad sectors and recovers readable information; this switch implies /p. Chkdsk requires Autochk. Chkdsk automatically looks for Autochk.exe in the startup (or boot) folder. If Chkdsk cannot find the file in the startup folder, it looks for the Windows 2000 Setup CD-ROM. If Chkdsk cannot find the installation CD-ROM, it prompts the user for the location of Autochk.exe. Cls clears the screen. Copy copies one file to a target location. By default, the target cannot be removable media and you cannot use wildcards. Copying a compressed file from the Windows 2000 Setup CD-ROM automatically decompresses the file. Del (Delete) deletes one file. Operates within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources. You cannot use wildcards by default. Dir displays a list of all files, including hidden and system files. Disable disables a Windows system service or driver. The variable service_or_driver is the name of the service or driver that you want to disable. When you use this command to disable a service, it displays the services original startup type before changing the type to SERVICE_DISABLED. You should note the original startup type so that you can use the enable command to restart the service. Diskpart manages partitions on hard disk volumes. The /add option creates a new partition; the /delete option deletes an existing partition. The variable device is the device name for a new partition (such as deviceharddisk0). The variable drive is the drive letter for a partition that you are deleting (for example, D); partition is the partition-based name for a partition that you are deleting, (for example: deviceharddisk0partition1) and can be used in place of the drive variable. The variable size is the size, in megabytes, of a new partition.
    • Enable enables a Windows system service or driver. The variableservice_or_driver is the name of the service or driver that you want to enable,and start_type is the startup type for an enabled service. The startup type usesone of the following formats:SERVICE_BOOT_STARTSERVICE_SYSTEM_STARTSERVICE_AUTO_STARTSERVICE_DEMAND_STARTExit quits the Recovery Console, and then restarts the computer.Expand expands a compressed file. The variable source is the file that youwant to expand; you cannot use wildcard characters by default. The variabledestination is the directory for the new file; by default, the destination cannotbe removable media and cannot be read-only; you can use the attrib commandto remove the read-only attribute from the destination directory. Theoption /f:filespec is required if the source contains more than one file; thisoption permits wildcards. The /y switch disables the overwrite confirmationprompt. The /d switch specifies that the files should not be expanded anddisplays a directory of the files in the source.Fixboot writes a new boot sector on the system partition.Fixmbr repairs the boot partitions master boot code. The variable device is anoptional name that specifies the device that needs a new MBR; omit thisvariable when the target is the boot device.Format formats a disk. The /q switch performs a quick format; the /fs switchspecifies the file system.Help If you do not use the command variable to specify a command, help listsall the commands that the Recovery Console supports.Listsvc displays all available services and drivers on the computer.Logon displays detected installations of Windows and requests the localAdministrator password for those installations. Use this command to move toanother installation or subdirectory.Map displays currently active device mappings. Include the arc option tospecify the use of Advanced RISC Computing (ARC) paths (the format forBoot.ini) instead of Windows device paths.MD (Mkdir) operates only within the system directories of the currentWindows installation, removable media, the root directory of any hard diskpartition, or the local installation sources.More/Type displays the specified text file (such as, filename) on screen.Net Use connects to a remote share for the Windows XP Recovery Console.The following text describes the syntax for this command:NET
    • USE [devicename | *] [computernamesharename[volume] [password | *]] [/USER:[domainname]username] [/USER:[dotted domain name]username] [/USER:[username@dotted domain name] [/SMARTCARD] [/SAVECRED] [[/DELETE] | [/PERSISTENT:{YES | NO}]] NET USE {devicename | *} [password | *] /HOME NET USE [/PERSISTENT:{YES | NO}] Rd (Rmdir) operates only within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources. Ren (Rename) operates only within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources. You cannot specify a new drive or path as the target. Set displays and sets the Recovery Console environment variables. Systemroot sets the current directory to %SystemRoot%.back to the topRecovery Console RulesSeveral environment rules are in effect while you are working in the RecoveryConsole. Type set to see the current environment. By default, these are the rules: AllowAllPaths = FALSE, which prevents access to directories and subdirectories outside the system installation that you selected when you entered the Recovery Console. AllowRemovableMedia = FALSE, which prevents access to removable media as a target for copied files. AllowWildCards = FALSE, which prevents wildcard support for commands such as copy and del. NoCopyPrompt = FALSE, which means that you are prompted by the Recovery Console for confirmation when overwriting an existing file.back to the topDeleting the Recovery Console
    • To delete the Recovery Console: 1. Restart your computer, click Start, click My Computer, and then double-click the hard disk on which you installed the Recovery Console. 2. On the Tools menu, click Folder Options, and then click the View tab. 3. Click Show hidden files and folders, click to clear the Hide protected operating system files check box, and then click OK. 4. At the root folder, delete the Cmdcons folder and the Cmldr file. 5. At the root folder, right-click the Boot.ini file, and then click Properties. 6. Click to clear the Read-only check box, and then click OK. WARNING: Modifying the Boot.ini file incorrectly may prevent your computer from restarting. Be sure to delete only the entry for the Recovery Console. Also, it is recommended that you change the attribute for the Boot.ini file back to a read-only state after you complete this procedure. Open the Boot.ini file in Microsoft Windows Notepad, and remove the entry for the Recovery Console. It looks similar to this: C:cmdconsbootsect.dat="Microsoft Windows Recovery Console" /cmdcons 7. Save the file and close it.