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.

ContextMenuHandlers - CopyTo & MoveTo

Sometimes we wish to Copy or Move a file from one folder to another. In that case, this registry tweak will do is place 'Copy To' & 'MoveTo' on the Windows Explorer shortcut menu. Once you right click a file and select 'Copy to Folder' & 'Move to Folder', a dialog box opens inviting us to choose the file destination.

Steps to Add 'Copy To' to the Explorer Context Menu:

  1. Start > Run > Type "Regedit"
  2. Navigate to this key: HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\
  3. Create a new Key [means Folder]. Name the new Key: Copy To
    AllFileSystemObjects Registry tweak: Copy To
  4. In the right-hand pane, double click the existing REG_SZ called Default, and set the value to:
    {C2FBB630-2971-11d1-A18C-00C04FD75D13}
    Note: you do need the {curly brackets} for this CLSID.
  5. Close regedit, logoff or reboot if require, just Open Windows Explorer, right click a file and enjoy the 'Copy To Folder' feature.
Copy To Registry Hack {C2FBB630-2971-11d1-A18C-00C04FD75D13}

To Add 'Copy To' to the Explorer Context Menu:

create another registry entry, which Moves instead of Copies. In the CLSID, change C2FBB630 to C2FBB631 and repeat the above.

The full name of the Move To value is: {C2FBB631-2971-11d1-A18C-00C04FD75D13}


Warning: While this 'Copy To' registry hack looks flash, it can give problems, Kevin M. kindly sent in this snippet of information.When I select two or more files in Windows Explorer to open in Notepad or any other program, for every selected file - before opening it in the proper application - I first get a dialog asking me where to move the item. Cancelling this dialog brings up the next asking where to copy the file. Cancelling this dialog leads to opening of the file and bringing up the next files "move-dialog"! Pretty irritating!

R: Change the Name of MyComputer Icon in Vista

The idea behind this registry tweak is to adjust the label under the computer icon, For example, "NaaComputer@VUltimata" OR "(username) at (computername)".

Preliminary Step
:
Right-click the desktop, Personalize and select: Change Desktop Icons.

Instructions for LocalizedString

The mission is to find a specific class id (CLSID) in HKEY_CLASSES_ROOT, and then change the value for LocalizedString from 'Computer' to a variable which will reflect the user who logs on to this particular computer. Windows Vista Regedit and LocalizedString

Launch Regedit and navigate thus:

0) Precaution: Rename the existing value:
Locate with regedit HKEY_CLASSES_ROOT\CLSID\
{20D04FE0-3AEA-1069-A2D8-08002B30309D} rename LocalizedString to LocalizedString.Old LocalizedString %username% at %computername%

1) Create a new VALUE. Note type should be Expanded String Value. Name it: LocalizedString

2) Edit the 'Value data'. I double click LocalizedString, then click in the dialog box and type: %Username% at %Computername%

Incidentally, you could choose more creative words in place of 'at'. For example, 'King of' or 'Queen of'.

3) To see the fruits of your labours, just press F5 to refresh the desktop, your computer icon should now say the equivalent of: YourName at YourComputer.(See screenshot at the top of this page).

i.e., Like :

Note Points:

  • Before making a difficult change to the registry, rename the existing key for Backup purpose.
  • Preliminary step, make sure that Vista displays the Computer on the desktop. Right click, Personalize and select: Change Desktop Icons.
  • Do you find the LocalizedString value in HKCU** or HKLM?
    Answer: neither, it's under HKEY_CLASSES_ROOT.
  • Do you have to add a value, or modify an existing setting?
    Answer: Rename, then create a new value.
  • Is it a String Value or a DWORD?
    Answer: Neither it is an Expanded String.
  • Do you need to Restart, or merely Logoff / Logon?
    Answer: Neither, just refresh the desktop by pressing F5.
  • Tip: Add this Value, LocalizedString to Regedit's Favorites menu

Note:

HKLM is shorthand for HKEY_LOCAL_MACHINE & HKCU is shorthand for HKEY_CURRENT_USER. These acronyms are so well known that you can even use them in .reg files, Vista will understand and obey the registry instruction.

Creating a .Reg File:This page explains how to create, and then edit .reg files for your computer.
As it's easy to import the contents of a .reg file into the registry, do take extra care with procedures.Ex

Boot with Windows7 System Recovery Options on Hard Drive

A useful tool called System Recovery Options is Windows 7 repair tool that can be found on your hard drive where Windows 7 is installed. To boot your computer with System Recovery Options, please follow these steps:

1. Remove all media that are capable to boot a computer such as floppy disks, CDs, DVD’s and Flash drives.

2. Press F8 on your keyboard just before Windows 7 logo appears. Failure to boot with System Recovery Options before the logo requires you to wait until Windows 7 loads and shutting the computer to do another fresh start. This time, make sure that you do it right.

3. Advanced Boot Options screen will be displayed. use keyboard arrow keys to highlight Repair your computer and press Enter.

4. System Recovery Options menu will appear as displayed below.

You can now utilized your System Recovery Options features to repair and fix errors on the computer. Just in case Repair your computer does not appear on boot-up, then recovery options is not included in your pre-installation.

TrendMicro's SystemClean

TrendMicro SysClean is the efficient solution against the new generation of threats spreading over the Internet. Secure your data and protect your privacy against sypware, adware, trojans, dialer, keylogger and worms.

Author: TrendMicro

License: Freeware

Operating System:
Windows 9x/Me/2000/XP/2003/Vista 32-Bit

Download Sysclean Version 4.5:
TrendMicro Sysclean Download

Download Virus Pattern Files:
Download latest Pattern Files (Consumer OPR with file name cvsapixxx.zip and when extracted will have the lpt$vpn.xxx). Where xxx corresponds to version number.

Threat Removal Procedure:

1. Temporarily Disable System Restore in Windows XP. For Windows ME user, please click here.

Note: You must have an Administrator Privilege to be able to disable System Restore on Windows XP. It is advised to enable it after this procedure.
a) On the Desktop, Right Click on My Computer
b) Select the System Restore Tab
c) Mark the “Turn Off System Restore” to disable and UnMark to Enable
d) Click Apply on the Bottom of the Dialog Box to save the settings.
e) A message “This deletes all existing restore points” will appear, click Yes to disable.
f) Click OK.

2. Download Sysclean by Trendmicro and save it to a directory on your Desktop. Create a new Directory for this.

3. Download the latest Pattern Files of Trendmicro and save it to the same location as the Sysclean. Pattern file is in Zip format such as cvsapixxx.zip that contains lpt$vpn.xxx.

4. Extract the contents of the cvsapixxx.zip on the folder where Sysclean is located.

5.Reboot computer in SafeMode
a) During BootUp process Press F8 continuously until selection appears
b) Use Arrow Up+Down to select SafeMode on the selections menu.
c) Hit Enter to proceed.

6. If it requires you to login please use the login name with administrative rights. Without this privilege, Sysclean will not delete/clean infected files located on System folder.

7. Browse the Sysclean folder on on your Desktop and Double-click Sysclean.exe (Sysclean.com) to run and do a full system scan. This may take time. Reboot when finished, repeat as desired to make sure that all threats are removed.

Change Log:
July 8, 2010: Updated link to Sysclean Version 4.5. Does not require separate SSAPIPTN.DA5 Pattern file.

Removal of Virus & Malware Using Online Virus Scanner

1. Temporarily Disable System Restore in Windows XP. For Windows ME user, please click here.

Note: You must have an Administrator Privilege to be able to disable System Restore on Windows XP. It is advised to enable it after this procedure.

a) On the Desktop, Right Click on My Computer
b) Select the System Restore Tab
c) Mark the “Turn Off System Restore” to disable and UnMark to Enable
d) Click Apply on the Bottom of the Dialog Box to save the settings.
e) A message “This deletes all existing restore points” will appear, click Yes to disable.
f) Click OK.

2. Reboot computer in SafeMode with Networking (For Windows XP Only, Other OS may scan in Normal Starup Mode)

a) During BootUp process Press F8 continuously until selection appears
b) Use Arrow Up+Down to select SafeMode with Networking on the selections menu.
c) Hit Enter to proceed.

3. Connect to Internet and Scan with any of the following on-line Virus Scanner.

Note: Online Virus Scanner works with default Internet Explorer settings (Internet zone – Medium security level). If you have changed them, you may enable ActiveX and JavaScript from Tools->Internet Options->Security->Custom Level.

4. Thoroughly scan your computer with On-line Virus scanner and clean/delete all infected files.

5. Reboot computer and start it normally.

6. Do another scan to make sure that there are no threats left on your computer.

Remove W32.USB Worm (Heap41a)

W32.USB Worm or Heap41a attempts to periodically copy itself to removable drives and USB keys. The worm will attempt to create a hidden file Autorun.inf on the removeable drive and copy itself to the removeable drive as MicrosoftPowerPoint.exe. It will monitor internet brwser activities and display the following messages:

  • “USE INTERNET EXPLORER YOU DOPE, I DNT HATE MOZILLA BUT USE IE OR ELSE…”
  • “Orkut is BANNED you fool, The adminstrators didn’t write this program guess who did??”

Removal Procedure:

1. Press CTRL+ALT+DEL to open Windows Task Manager and go to the Processes tab
2. Find the Image Name svchost.exe that is running under the current Username (Login Name).

3. Click End Process at bottom right of the Windows Task Manager to kill the running process. When prompted with a warning, press Yes
4. Repeat and find other svchost.exe in the same status. Do not end svchost.exe with SYSTEM, Local Service or Network Service. They are process necessary in running Windows.

5. Close Windows Task Manager when done
6. Open My Computer
7. In the address bar, type C:\heap41a and press Enter. This is a hidden folder and not visible by simply browsing.
8. Delete all the files including the folder

9. Go to Start > Run and type Regedit
10. Go to the Menu > Edit > Find
11. Search for “heap41a”. You will have a results similar to “[winlogon] C:\heap41a\svchost.exe C:\heap(some number)\std.txt”
12. Select and Delete the registry string. click Yes if it prompts you to delete the registry entries.
13. Exit registry editor.

Cleaning the USB Drive
1. Before inserting the USB Drive please disable autorun to prevent the virus from infecting your computer again.

How to Disable USB Drive to autorun (Windows XP):
a. Open Windows Explorer or press the Windows + “e” key.
b. Right-click the drive of the USB Drive. Then select Properties. Drive Properties will appear.
c. Select the AutoPlay tab.
d. Choose Select an Action to Perform
e. At the bottom of the selection, click Take no Action, then click Apply.
f. Click OK to exit Drive Properties.

2. Insert USB Drive and scan with an updated AntiVirus Software
3. Look for autorun.inf and autorun.exe and delete them

Restoring View of Hidden Files and Folders (Optional)
1. Go to Start > Regedit
2. Navigate to the following registry entry and modify the value
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
Value: DWORD “NoFolderOptions” from 1 change to 0

How to Remove Programs or Virus from Windows Start-up

Windows start-up is a primary target of Trojan, virus, spyware and malware to load themselves during boot-up. So it is important for us to know how to remove unwanted executable and programs from Windows start-up. There are various possible ways to load a program and run them automatically and here are some of them:

MSCONFIG:
To remove unwanted program from starting up, you can edit msconfig of Windows.
1. Go to Start > Run and type msconfig
2. A System Configuration Utility will appear
3. Go to Startup tab
4. Remove the check mark from Startup Item you wanted to disable
5. Press OK the Apply to save.
6. After bootup, it will prompt you about the changes, just tick a box to ignore the warning.

START MENU:
There were times that a program is called via Windows Start Menu. To remove any unwanted programs from this menu please follow these:
1. Open you Windows Explorer and go to C:\Documents and Settings\All Users\Start Menu\Programs
2. Look for the folder Startup and remove entries you don’t want to run when Windows is started.

Disable USB Drive Autorun

Some worms and trojans spreads by creating autorun.inf on removable media drives. To prevent being infected with compromised USB Drives, we have created this instruction to disable running of autorun files.

How to Disable USB Drive to autorun (Windows XP):

1. Open Windows Explorer or press the Windows + “e” key.
2. Right-click the drive of the USB Drive. Then select Properties. Drive Properties will appear.
3. Select the AutoPlay tab.
4. Choose Select an Action to Perform
5. At the bottom of the selection, click Take no Action, then click Apply.
6. Click OK to exit Drive Properties.

Wednesday, September 8, 2010

Unable to open D: by double clicking

Q)When opening Diskdrives [C:,D:,..] by double click, that showing openwith programm,even same error is showing when opening with explore.OS is XP

Sol)Do the Following 2 methods:

1.Start > Run... > Type "regedit"

2.Locate the Default value under the following key in the registry:
HKEY_CLASSES_ROOT\Directory\shell

3.Click Modify on the Edit menu.

4.In the File data box, type:
none

5.Click OK.

6.Quit Registry Editor. =================================================================

1. Start >Run > type "cmd" On this command prompt window type the following steps.

2. type cd\

3. type attrib -r -h -s autorun.inf

4. type del autorun.inf

5. now type d: and press enter for d: drive partition. Now repeat steps 3 and 4. Similarly repeat step 5 for all your hard disk partition.

Restart your system and your trouble will be fixed