Saturday, September 11, 2010

Disable Write Access to USB Hard Disk and Flash Key Drives

To disable writing access to USB drives and make all USB drives has only read-only access, follow these steps:

  1. Run Registry Editor (regedit).
  2. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

  3. Create a New Key named as StorageDevicePolicies.
  4. Highlight StorageDevicePolicies, and then create a New DWORD (32-bit) Value named as WriteProtect.
  5. Double click on WriteProtect, and set its value data to 1.

    Write Protect Removable USB Drives

Once set, all users on the computer is now blocked and prevented from copying, transferring or writing any files, documents and data to the USB disk drives, without the need to restart or reboot computer. Any attempt to download or copy files to USB drive will return the following error message:

The disk is write protected.
The media is write-protected.
Remove the write protection or use another disk.

Block Write Access to USB Removable Disk

To revert and remove the blocked write access to USB drivers

, just delete the StorageDevicePolicies registry key, or delete the WriteProtect registry entry, or change the value data for WriteProtect to 0.

For user who doesn’t want to manually editing the registry, simply download the following registry registration files to enable or disable the write protection (block writing attempt) to USB removable drive. Double click the .reg file unpacked from the .zip archive to merge the registry key entries.

Download DisableWriteToUSB.reg
Download EnableWriteToUSB.reg

The trick works in Windows XP SP2 and SP3, Windows Vista, Windows Server 2003 and 2008.

RelLinks


How to Set and Unset the Read-only File and Folder Attribute in Vista


Through the File or Folder Properties Page

OPTION ONE

Through a Folder Properties Page
1. Right click on a folder that you want to make the files inside of it read-only, and click on Properties.
NOTE: The read-only box will always default back to being filled in with blue. A undetermined state of not being read-only. This is not read-only.

2. Click the General tab. (See screenshot below)
folder_properties1.jpg
3. To Set Files in Folder as Read-only -
A) Check the Read-only box and click OK. (See screenshot below)
NOTE: This will only set the read-only attribute for all of the files in this folder and it's subfolders. It does not affect the folder itself. See: Microsoft Help and Support: KB326549
folder_properties2.jpg
B) Click on OK to confirm changes. (See screenshot below)
confirm_set_changes.jpg
4. To Unset Files in the Folder as Read-only -
NOTE: If the folder is a system folder, then you may need to use METHOD TWO below to remove the read-only attribute of the files in the folder instead.
A) Click on the Read-only box until it is blank without the blue square. (See screenshot below)
NOTE: This will unset the read-only attribute for all of the files in this folder and it's subfolders. It does not affect the folder itself.
unset_folder_properties.jpg
B) Click on OK. (See screenshot above)

C) Click on OK to confirm changes. (See screenshot below)
NOTE: If this is a system folder, then you will have to approve the other pop-ups as well.
confirm_unset_changes.jpg




OPTION TWO

Through a File Properties Page
1. Right click on the file you want to make read-only, and click on Properties.

2. Click on the General tab. (See screenshots below)

3. To Set a File as Read-only -
A) Check the Read-only box. (See right screenshot below step 4)

B) Go to step 5.
4. To Unset a File as Read-only -
NOTE: If this was a system file, then you may need to use METHOD TWO below to remove the read-only attribute instead.
A) Uncheck the Read-only box. (See left screenshot below)
NOTE: To unset read-only for all files in a folder, see step 4 in the above section.
file_properties1.jpgfile_properties2.jpg
5. Click on OK to apply. (See screenshots above)
NOTE: If this is a system file, then you will have to approve the other pop-ups as well.




METHOD TWO

Through a Command Prompt with the ATTRIB Command



OPTION ONE

For a File

NOTE: This options is if you want to set or unset a file as read-only.
1. Open a elevated command prompt.

2. To Set a File as Read-only -
A) In the command prompt, type attrib +r "Full path of file" and press Enter. (See screenshot below)
NOTE: Substitute "Full path of file" for the actual full path of the file.
For example, attrib +r "C:\Users\Moderator\Desktop\Test.txt"

B) Go to step 4.
cmd-1-copy.jpg
3. To Unset a File as Read-only -
A) In the command prompt, type attrib -r "Full path of file" and press Enter. (See screenshot below)
NOTE: Substitute "Full path of file" for the actual full path of the file.
For example, attrib -r "C:\Users\Moderator\Desktop\Test.txt"
cmd-2-copy.jpg
4. Close the elevated command prompt.

5. You can verify the read-only status of the file using METHOD ONE (Option Two) above.



OPTION TWO

For a Folder

NOTE: This option is if you want to set or unset all files in a folder as read-only.
1. Open a elevated command prompt.

2. To Set All Files in a Folder as Read-only -
A) In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute Full path of folder for the actual full path of the folder.

Code:
attrib +r "Full path of folder\*.*" /S /D
FOR EXAMPLE: I would type this command exactly as below for a folder on my desktop.

Code:
attrib +r "C:\Users\UserName\Desktop\Folder\*.*" /S /D
Attachment 54122
3. To Unset All Files in Folder as Read-only -
A) In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute Full path of folder for the actual full path of the folder.

Code:
attrib -r "Full path of folder\*.*" /S /D
FOR EXAMPLE: I would type this command exactly as below for a folder on my desktop.

Code:
attrib -r "C:\Users\UserName\Desktop\Folder\*.*" /S /D

Hidden Files and Folders Option - Add or Remove

How to Add or Remove "Hidden Files and Folders" from Folder Options in Vista and Windows 7

EXAMPLE:
Hidden Files and Folders Option Added and Removed

NOTE: You will need to close and reopen Folder Options to see the changes made below.
add.jpgremove.jpg



OPTION ONE

Using a REG File Download
1. To Add "Hidden Files and Folders" to Folder Options
NOTE: This reg download containd the entire contents of the Hidden key, including the NOHIDDEN and SHOWALL subkeys, for a full restore of the Hidden files and folders option.
WARNING: If you have get a black square(s) instead of the check box next to Hidden files and folders, then use Radio instead of Group in the OPTION TWO (step 6) below to not have the black square.
A) Click on the download button below to download the file below.
Add_Hidden_Files_Folder.reg

B) Go to step 3.
2. To Remove "Hidden Files and Folders" from Folder Options
A) Click on the download button below to download the file below.
Remove_Hidden_Files_Folder.reg

3. Click on Save, and save the .reg file to the Desktop.

4. Right click on the downloaded .reg file and click on Merge.

5. Click on Run, Continue (UAC-Vista) or Yes (UAC-Windows 7), Yes, and then OK when prompted.

6. When done, you can delete the downloaded .reg file if you like.

7. Close and reopen Folder Options to see the change.




OPTION TWO

Using Registry Editor

NOTE: For a full restore of the Hidden files and folders option that includes the entire contents of the Hidden key with the NOHIDDEN and SHOWALL subkeys, see Option One.1. Open the Start Menu.

2. In the white line (Start Search) area, type regedit and press Enter.

3. If prompted by UAC, then click on Continue (Vista) or Yes (Windows 7)

4. In regedit, navigate to the location below. (See screenshot below step 5)

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Advanced\Folder\Hidden
5. In the right pane, right click on Type and click on Modify.
NOTE: If Type is not there, then right click on a empty area of the right pane and click on New and String Value, then type Type and press Enter.
Click this bar to view the full image.

6. To Add "Hidden Files and Folders" to Folder Options
A) Type group and click on OK. (See screenshot below)
WARNING: If you get or have a black square(s) instead of the check box for the Hidden files and folders option, then type Radio instead and click on OK.
Name:  Modify2.jpg Views: 6338 Size:  27.9 KB
7. To Remove "Hidden Files and Folders" from Folder Options
A) Clear group and leave the field empty. (See screenshot below)

B) Click on OK.
Name:  Modify1.jpg Views: 6317 Size:  25.5 KB
8. Close regedit.

9. Close and reopen Folder Options to see the change.

How to Enable or Disable Folder Options in Vista or Windows 7

EXAMPLE: Before (Enabled) and After (Disabled)
Name:  Explorer_Before.jpg Views: 16528 Size:  10.9 KBName:  Explorer_After.jpg Views: 16488 Size:  9.0 KB

cp_before.jpgcp_after.jpg

Name:  Explorer2_Before.jpg Views: 16427 Size:  11.5 KBName:  Explorer2_After.jpg Views: 16410 Size:  11.6 KB




METHOD ONE

Through the Local Group Policy Editor
1. Open the Local Group Policy Editor.

2. In the left pane, click on User Configuration, Administrative Templates, Windows Components, and Windows Explorer (See screenshot below)
group_policy.jpg
3. In the right pane, right click on Removes the Folder Options menu from the Tools Menu, and click on Properties. (See screenshot above)

4. To Enable Folder Options -
A) Select (dot) Disabled or Not Configured and click on OK. (See screenshot below step 5A)

B) Go to step 6.
5. To Disable Folder Options -
A) Select (dot) Enabled and click on OK.
properties.jpg
6. Close the Local Group Policy Editor window. Your done.





METHOD TWO

With a REG File Download
1. To Enable Folder Options -
A) Click on the download button below to download the Enable_Folder_Options.reg file.

B) Go to step 3.


2. To Disable Folder Options -
A) Click on the download button below to download the Disable_Folder_Options.reg file.


3. Click on Save, and save the .reg file to the Desktop.

4. Right click on the .reg file (on Desktop) and click on Merge.

5. Click on the Run button for Security Warning pop-up.

6. Click on Continue (UAC), Yes, and then OK when prompted.

7. Log off and log on or restart the computer to apply the changes.

8. When done, you can delete the .reg file (on Desktop).




METHOD THREE

Through Registry Editor
1. Open the Start Menu.

2. In the white line (Start Search) area, type regedit and press Enter.

3. Click on the Continue button in the UAC prompt.

4. In regedit, go to: (See screenshot below)
NOTE: If Explorer is not there, then right click on Policies in the left pane and click on New and Key. Type Explorer and press Enter.

Code:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
explorer_reg.jpg
5. To Disable Folder Options -
A) In the right pane, right click on a empty area and click on New and DWORD (32-bit) Value. (See screenshot below)

B) Type NoFolderOptions and press Enter.

C) Right click on NoFolderOptions and click on Modify.
nofolderoptions_reg.jpg
D) Type 1 and click on OK. (See screenshot below)
Name:  Modify_NoFolderOptions.jpg Views: 16310 Size:  30.5 KB
E) Go to step 7.
6. To Enable Folder Options -
A) In the right pane, right click on NoFolderOptions and click on Delete. (See screenshot below step 5C)

B) Click on Yes to confirm delete.

C) In regedit, go to: (See screenshot below)

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
D) In the right pane, repeat steps 6A and 6B if NoFolderOptions is there to.
hklm_reg.jpg
7. Close regedit.

8. Log off and log on or restart the computer to apply the changes.

XP CD KEYS

XP PRO VLK:
CB9YB-Q73J8-RKPMH-M2WFT-P4WQJ
CP4C8-WRJR8-T4YDB-PB6DG-JPKMJ
MR49R-DRJXX-M6PX2-V96BF-8CKBJ


XP HOME OEM:
RCBF6-6KDMK-GD6GR-K6DP3-4C8MT (DELL)
CR4Y9-448J3-9WHPG-VJ8C3-7BDDD (PACKARD BELL - NEC)
CXCY9-TTHBT-36J2P-HT3T3-QPMFB (ACER)
JYGVB-QHQ67-49T87-CPD92-G87PT (TOSHIBA)


Windows XP Home OEM:
JQ4T4-8VM63-6WFBK-KTT29-V8966
VYFDW-98HWY-6HT9B-4WFRT-37F2B

Windows XP Home Retail:
RH6M6-7PPK4-YR86H-YFFFX-PW8M8

Windows XP Home Upgrade:
RH6M6-7PPK4-YR86H-YFFFX-PW8M8

Windows XP Media Center 2004/5:
C4BH3-P4J7W-9MT6X-PGKC8-J4JTM
B6GKW-PHJD7-4RFBV-TFY3R-37J23
C82GJ-YH627-72GBT-R7XV7-M7Y4B
C4BH3-P4J7W-9MT6X-PGKC8-J4JTM
RD6W4-369DT-DMHQH-4RVKW-WY6PG
KCQ9Q-FTBM4-6HTWV-M7DKM-T4BFB

Windows XP Professional Corp:
XP8BF-F8HPF-PY6BX-K24PJ-TWT6M
JMCR4-C6FJV-XW7BV-W9VM2-VJQCG
QR86R-KCRF6-3X9VP-96TRH-QHHQD
FYJXW-G4MQQ-R63YQ-V33B6-H9VBQ
Q3JJV-JBHTF-3993D-BWM7M-XMW88
TTR4M-V6DQY-M2JW2-GCX9C-WTWDG
P3WQV-T32HJ-VB38G-V7843-KGJPT
XBW9V-TTX2T-X9W8R-72GV7-QTYDQ
FF2YY-8P3XF-C7FKC-HR7YV-9G2PK
XPW7F-4GXDW-WYTWW-Q8WC2-DJ2CR
MBF49-TH2VC-W288M-PV9YF-9CGKD
GJW99-WMTWW-2CD24-Q2JBK-PH7W8
XR3WH-V9YVD-XMPDG-83RXB-7C3HJ SP2
V2C47-MK7JD-3R89F-D2KXW-VPK3J SP2
CCMWP-99T99-KCY96-FGKBW-F9WJT SP2
BR89Q-4B9GB-9DPFD-M2PY3-R3F83 SP2
DP7CM-PD6MC-6BKXT-M8JJ6-RPXGJ SP3
F4297-RCWJP-P482C-YY23Y-XH8W3 SP3
HH7VV-6P3G9-82TWK-QKJJ3-MXR96 SP3
HCQ9D-TVCWX-X9QRG-J4B2Y-GR2TT SP3
QC986-27D34-6M3TY-JJXP9-TBGMD SP3
MRX3F-47B9T-2487J-KWKMF-RPWBY SP3
XP8BF-F8HPF-PY6BX-K24PJ-TWT6M SP3
CM3HY-26VYW-6JRYC-X66GX-JVY2D SP3
GHMWR-QXVFB-PGT3T-V92XB-PRTR8 SP3
R349V-86B3K-JC3KG-D9W6J-9VQHT SP3
W3BWH-B4RWY-YVPJM-TDD8G-H8FQM SP3
C4HWV-K7DV9-QJ67G-3YWJ6-TX72Q SP3
K4KFH-K7DFB-4HBWH-3DCHQ-WFY6Y SP3
W3YDB-Y626C-YR3QP-WJ7HR-YG7M6 SP3
QGMP9-CCFBR-R4CFH-CYBDH-TXPVM SP3
HX3CH-CFKFJ-XHFK7-YRVQH-VG4TY SP3
MGJ7B-44HTK-QGV28-WCFMD-RGTGY SP3
W4P6K-G7WJX-PB4MF-WWF69-938V3 SP3
WX6R3-K4KJ8-K697K-J3MKP-7HF86 SP3
QW76F-QY76K-QWVJP-4G7B2-9VXVJ SP3
CVW2J-WH397-FJTDD-BC4C8-4JCC8 SP3
GKJQ2-W9MFK-XFV4X-6VG69-KBQGD SP3
WWCYC-8GG4V-K797M-GVK8B-KY868 SP3
M3Y4R-CK87K-R9PPJ-24Q2W-22XCM SP3
HCQ9D-TVCWX-X9QRG-J4B2Y-GR2TT SP3
QC986-27D34-6M3TY-JJXP9-TBGMD SP3
MRX3F-47B9T-2487J-KWKMF-RPWBY SP3


Windows XP Professional X64 Edition Corporate:
FVMK4-6DD4B-26MB4-74JB2-R4XWM
DHR8W-69GX3-YWPM9-P98K2-B2V4Y
DDR6D-XMQ6V-78Y2B-B6TP4-YXMRY
J4K6H-DTTFF-YRYYY-WP22T-KKTCB
J3TQR-Y79H8-QM8X8-3JD8K-9KXWM


Windows XP Professional OEM:
XJM6Q-BQ8HW-T6DFB-Y934T-YD4YT


Windows XP Professional Retail:
CD87T-HFP4C-V7X7H-8VY68-W7D7M
K8RHD-R2JGY-KHWM6-J9DKY-WGMPQ
XPY67-JRGMK-8JRYK-KH4F2-C6D4W
DVMFT-3DKFP-TJRG9-P496J-DX9WD
TGWMH-RKR87-4R7JR-T26VC-WPXQB
KC6QP-69CCK-JWBCK-74GT2-HCYGB
FGY62-42BKT-FF943-G6BTP-79FCY

Windows XP Professional Upgrade:
CD87T-HFP4C-V7X7H-8VY68-W7D7M

Windows XP Tablet PC Edition
VQXTT-F82HQ-JYJGV-PV3F9-GCX4T

Some Usefull Sites

http://www.microsoft.com/typography/cleartype/tuner/Step1.aspx
ClearType Tuning Wizard.

http://www.microsoft.com/security/malwareremove/default.mspx
Run the Microsoft Malicious Software Removal Tool.

http://support.microsoft.com/kb/310123
Device Manager error codes and solutions for XP.

http://www.driverguide.com/
Drivers.

http://www.updrivers.com/
Drivers.

http://www.driverstock.com/
Drivers.

http://www.driversfix.com/
Drivers.

http://www.answersthatwork.com/Tasklist_pages/tasklist.htm
An alphabetical list of Windows running processes with advice .

http://www.processlibrary.com
Search for Windows running processes with advice.

http://securityresponse.symantec.com/
Symantec Security Response with details of the latest viruses.

http://security.symantec.com/sscv6/default.asp?langid=ie&venid=sym
Symantec Security Scan and Virus Detection.

http://us.mcafee.com/root/mfs/default.asp
Online Anti-Virus File Scanner.

http://www.kaspersky.com/virusscanner
Online Anti-Virus Scanner.

http://www.bitdefender.com/scan8/ie.html
Online Anti-Virus Scanner.

http://www.virustotal.com./
Online Anti-Virus File Scanner.

http://www.virscan.org/
Online Anti-Virus File Scanner.

http://www.ewido.net/en/onlinescan/
Online Malware Scanner.

http://grc.com/x/ne.dll?bh0bkyd2
Shields Up - Internet security vulnerability profiling services

http://www.jasons-toolbox.com/BrowserSecurity/
Browser Security tests.

http://www.dslreports.com/tweaks
TCP Stack tester.

http://www.auditmypc.com
Firewall test and Internet speed test.

http://broadband-expert.co.uk/broadband/speedtest/
Internet speed test.

http://www.speedtester.bt.com/
British Telecom Internet speed test.

http://www.broadbandspeedtest.net
Internet speed test.

http://www.speedtest.net
Internet speed test.

http://www.blackviper.com/
List of XP/VISTA Services with advice.

http://www.kellys-korner-xp.com/xp.htm
Windows XP Help, Tweaks & Fixes.

http://www.theeldergeek.com/
Windows XP Tweaks & Fixes.

http://www.dougknox.com/
Windows Tweaks & Tips.

http://www.jsifaq.com/
Windows Tweaks & Tips.

http://www.tweakxp.com/display.aspx?id=228
Windows XP Tweaks & Fixes.

http://filext.com/
File Extensions Database.

http://vil.nai.com/vil/stinger/
McAfee Stinger.

http://www.mcafee.com/apps/downloads/security_updates/dat.asp?region=us&segment=smb
Anti-Virus Updates.

www.softwaretipsandtricks.com
Hardware Forums.

www.computing.net
Good Help Forums.

http://www.bleepingcomputer.com/
Computer Help and Discussion.

www.tomshardware.com
Hardware Information.

www.hardwareforums.com
Hardware Forums.

http://aumha.org/win5/kbestop.php
STOP Error codes list and solutions

http://www.modemhelp.net/dunerror/dunerrorcodes.shtml
Modem Error codes list and solutions

http://portforward.com/default.htm
Router Setup and Port Forwarding.

http://www.bootdisk.com/
BootDisks and Links to DLL and Driver sources.

http://www.systemrequirementslab.com/referrer/srtest
System requirements tests for games.

http://www.extreme.outervision.com/psucalculator.jsp
Power Supply Calculator.

http://www.adobe.com/shockwave/welcome/
Test Flash and Shockwave players.

http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
List of TCP and UDP Port numbers.

http://www.whatismyip.com/
Determine your IP address.

http://www.dnsstuff.com/
WHOIS, DNS Report and Reverse DNS Lookup.

http://www.softwarepatch.com/
Updates and Patches.

http://thehotfixshare.net/board/index.php?s=7fb354ed68fb5844733300f834aed28b&automodule=downloads&showcat=11
Hotfixes that cannot be downloaded from the Microsoft site.

http://hjt.networktechs.com/
HijackThis Log Analyser.

http://www.pantherproducts.co.uk/Articles/CPU/CPU%20Temperatures.shtml
CPU Maximum Temperatures.

http://www.cpu-world.com/cgi-bin/CPU_Chart.pl
CPU chart of modern Intel and AMD microprocessors.

http://www.bioscentral.com/
BIOS beep codes and post codes.

http://www.samknows.com/broadband/checker2.php
Broadband Availability Checker.

http://support.microsoft.com/fixit?fi=50202#tab8
Microsoft Fix it Solution Center

How to Recover from a Corrupted Registry that Prevents Windows XP from Starting

The information in this article applies to:
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional

SUMMARY
This article describes how to recover a Windows XP system that does not start because of corruption in the registry. This procedure does not guarantee full recovery of the system to a previous state; however, you should be able to recover data when you use this procedure.

You can repair a corrupted registry in Windows XP. Corrupted registry files can cause a variety of different error messages. Please refer to the Knowledge Base for articles regarding error messages related to registry issues.

This article assumes that normal recovery methods have failed and access to the system is not available except by using Recovery Console. If an Automatic System Recovery (ASR) backup exists, it is the preferred method for recovery; it is recommended that you use the ASR backup before you try the procedure described in this article.

NOTE: Make sure to replace all 5 of the registry hives. If you only replace a single hive or two, this can cause potential issues, since software and hardware may have settings in multiple locations in the registry.

MORE INFORMATION
When you try to start or restart your Windows XP-based computer, you may receive one of the following error messages:

Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM


Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SOFTWARE


Stop: c0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\SOFTWARE or its log or alternate

The procedure described in this article uses Recovery Console, System Restore, and lists all the required steps in specific order to ensure that the process completes fully. After you complete this procedure, the system should return to a state very close to the system before the problem occurred. If you have ever run NTBackup and completed a system state backup, you do not have to follow the procedures in parts two and three; you can skip to part four.

Part One
In part one, you boot to the Recovery Console, create a temporary folder, back up the existing registry files to a new location, delete the registry files at their existing location, and then copy the registry files from the repair folder to the System32\Config folder. When you are finished with this procedure, a registry is created that you can use to boot back into Windows XP. This registry was created and saved during the initial setup of Windows XP, so any changes and settings that took place after Setup completes are lost.

To complete part one, follow these steps:
Boot to the Recovery Console.
At the Recovery Console command prompt, type the following lines, pressing ENTER after you type each line:

md tmp

copy c:\windows\system32\config\system c:\windows\tmp\system.bak

copy c:\windows\system32\config\software c:\windows\tmp\software.bak

copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak

copy c:\windows\system32\config\security c:\windows\tmp\security.bak

copy c:\windows\system32\config\default c:\windows\tmp\default.bak

delete c:\windows\system32\config\system

delete c:\windows\system32\config\software

delete c:\windows\system32\config\sam

delete c:\windows\system32\config\security

delete c:\windows\system32\config\default

copy c:\windows\repair\system c:\windows\system32\config\system

copy c:\windows\repair\software c:\windows\system32\config\software

copy c:\windows\repair\sam c:\windows\system32\config\sam

copy c:\windows\repair\security c:\windows\system32\config\security

copy c:\windows\repair\default c:\windows\system32\config\default


Type exit to quit Recovery Console. Your computer will restart.
NOTE: This procedure assumes that Windows XP is installed to the C:\Windows folder. Make sure to change C:\Windows to the appropriate windows_folder if it is a different location.

If you have access to another computer, to save time, you can copy the text in step two, and then create a text file called "Regcopy1.txt" . To run this file, run the following command when you boot into Recovery Console:
batch regcopy1.txt

Part Two
To complete the procedure described in this section, you must be logged on as an administrator, or an administrative user (a user who has an account in the Administrators group). If you are using Windows XP Home Edition, you can log on as an administrative user. If you log on as an administrator, you must first start Windows XP Home Edition in Safe mode. To start the Windows XP Home Edition computer in Safe mode, follow these steps.

NOTE: Print these instructions before you continue. You cannot view these instructions after you restart the computer in Safe Mode.

Click Start, click Shut Down (or click Turn Off Computer), click Restart, and then click OK (or click Restart).
Press the F8 key.

On a computer that is configured to start to multiple operating systems, you can press F8 when you see the Startup menu.
Use the arrow keys to select the appropriate Safe mode option, and then press ENTER.
If you have a dual-boot or multiple-boot system, use the arrow keys to select the installation that you want to access, and then press ENTER.
In part two, you copy the registry files from their backed up location by using System Restore. This folder is not available in Recovery Console and is normally not visible during normal usage.

Before you start this procedure, you must change several settings to make the folder visible:
Start Windows Explorer.
On the Tools menu, click Folder options.
Click the View tab.

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.
Click Yes when the dialog box is displayed that confirms that you want to display these files.
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 folder because it is set as a super-hidden folder.

NOTE: This folder contains one or more _restore {GUID} folders such as "_restore{87BD3667-3246-476B-923F-F86E30B3E7F8}".

NOTE: You may receive the following error message:

C:\System Volume Information is not accessible. Access is denied.
To gain access to the System Volume Information folder, use the steps in the appropriate section.

Windows XP Professional or Windows XP Home Edition Using the FAT32 File System
Click Start, and then click My Computer.
On the Tools menu, click Folder Options.
On the View tab, click Show hidden files and folders.
Clear the Hide protected operating system files (Recommended) check box. Click Yes when you are prompted to confirm the change.
Click OK.
Double-click the System Volume Information folder in the root folder to open it.

Windows XP Professional Using the NTFS File System on a Domain
Click Start, and then click My Computer.
On the Tools menu, click Folder Options.
On the View tab, click Show hidden files and folders.
Clear the Hide protected operating system files (Recommended) check box. Click Yes when you are prompted to confirm the change.
Click OK.
Right-click the System Volume Information folder in the root folder, and then click Sharing and Security.
Click the Security tab.
Click Add, and then type the name of the user to whom you want to give access to the folder. Choose the account location if appropriate (either local or from the domain). Typically, this is the account with which you are logged on. Click OK, and then click OK.
Double-click the System Volume Information folder in the root folder to open it.

Windows XP Professional using the NTFS File System on a Workgroup or Standalone Computer
Click Start, and then click My Computer.
On the Tools menu, click Folder Options.
On the View tab, click Show hidden files and folders.
Clear the Hide protected operating system files (Recommended) check box. Click Yes when you are prompted to confirm the change.
Clear the Use simple file sharing (Recommended) check box.
Click OK.
Right-click the System Volume Information folder in the root folder, and then click Properties.
Click the Security tab.
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. Click OK, and then click OK.
Double-click the System Volume Information folder in the root folder to open it.

Open a folder that was not created at the current time. You may have to click Details on the View menu to see when these folders were created. There may be one or more folders starting with "RPx under this folder. These are restore points.
Open one of these folders to locate a Snapshot subfolder folder; the following path is an example of a folder path to the Snapshot folder:
C:\System Volume Information\_restore{D86480E3-73EF-47BC-A0EB-A81BE6EE3ED8}\RP1\Snapshot

From the Snapshot folder, copy the following files to the C:\Windows\Tmp folder:

_REGISTRY_USER_.DEFAULT

_REGISTRY_MACHINE_SECURITY
_REGISTRY_MACHINE_SOFTWARE
_REGISTRY_MACHINE_SYSTEM
_REGISTRY_MACHINE_SAM

These files are the backed up registry files from System Restore. Because you used the registry file created by Setup, this registry does not know that these restore points exist and are available. A new folder is created with a new GUID under System Volume Information and a restore point is created that includes a copy of the registry files that were copied during part one. This is why it is important not to use the most current folder, especially if the time stamp on the folder is the same as the current time.

The current system configuration is not aware of the previous restore points. You need a previous copy of the registry from a previous restore point to make the previous restore points available again.

The registry files that were copied to the Tmp folder in the C:\Windows folder are moved to ensure the files are available under Recovery Console. You need to use these files to replace the registry files currently in the C:\Windows\System32\Config folder. Recovery Console has limited folder access and cannot copy files from the System Volume folder by default.


Part Three
In part three, you delete the existing registry files, and then copy the System Restore Registry files to the C:\Windows\System32\Config folder:
Boot to Recovery Console.
At the Recovery Console command prompt, type the following lines, pressing ENTER after you type each line:

del c:\windows\system32\config\sam

del c:\windows\system32\config\security

del c:\windows\system32\config\software

del c:\windows\system32\config\default

del c:\windows\system32\config\system

copy c:\windows\tmp\_registry_machine_software c:\windows\system32\config\software

copy c:\windows\tmp\_registry_machine_system c:\windows\system32\config\system

copy c:\windows\tmp\_registry_machine_sam c:\windows\system32\config\sam

copy c:\windows\tmp\_registry_machine_security c:\windows\system32\config\security

copy c:\windows\tmp\_registry_user_.default c:\windows\system32\config\default

NOTE: This procedure assumes that Windows XP is installed to the C:\Windows folder. Make sure to change C:\Windows to the appropriate windows_folder if it is a different location.

If you have access to another computer, to save time, you can copy the text in step two, and then create a text file called "Regcopy 2.txt".
To run this file, run the following command when you boot into Recovery Console:
batch regcopy2.txt

Part Four
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.