Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Tuesday, 24 January 2012

How to Edit the Windows Registry

Windows Registry is a registry that stores configuration information about many important parts of this operating system. By editing you can tune Windows to behave the way you want it.

go to the start menu to open run application launching window and then type regedit (then enter) to start the registry editing program. The registry editor should start.


How the Registry is stored

In Windows 95, 98, and Me, the Registry is contained in two hidden files in your Windows directory, called USER.DAT and SYSTEM.DAT.

In Windows 2000 and Windows XP, the Registry is stored in several Hives, located in the \windows\system32\config and \Documents and Settings\ {username} folders.


Structure of the Registry

The Registry has a hierarchal structure, like the directories on your hard disk. Each branch (denoted by a folder icon in the Registry Editor, see below) is called a Key. Each key can contain other keys, as well as Values. Each value contains the actual information stored in the Registry. There are three types of values; String, Binary, and DWORD - the use of these depends upon the context.
There are six main branches (five in Windows 2000 and Windows XP), each containing a specific portion of the information stored in the Registry. They are as follows:
  • HKEY_CLASSES_ROOT - this branch contains all of your file types as well as OLE information for all your OLE-aware applications.
  • HKEY_CURRENT_USER - this branch points to the part of HKEY_USERS appropriate for the current user.
  • HKEY_LOCAL_MACHINE - this branch contains information about all of the hardware and software installed on your computer. Since you can specify multiple hardware configurations, the current hardware configuration is specified in HKEY_CURRENT_CONFIG.
  • HKEY_USERS - this branch contains certain preferences (such as colors and control panel settings) for each of the users of the computer. In Windows 95/98/Me, the default branch here contains the currently-logged in user. In Windows 2000/XP, the default branch here contains a template to be used for newly-added users.
  • HKEY_CURRENT_CONFIG - this branch points to the part of HKEY_LOCAL_MACHINE appropriate for the current hardware configuration.
  • HKEY_DYN_DATA (Windows 95/98/Me only) - this branch points to the part of HKEY_LOCAL_MACHINE, for use with Windows' Plug-&-Play subsystem.

Using the Registry Editor

The Registry Editor (regedit.exe) is included with Windows to enable you to view and edit the contents of the Registry. When you open the Registry Editor, you'll see a window divided into two panes. The left side shows a tree with folders (see Structure of the Registry above), and the right side shows the contents (values) of the currently selected folder (key).
  • To expand a certain branch, click on the little plus sign [+] to the left of any folder, or just double-click on the folder.
  • To display the contents of a key (folder), just click the desired key, and look at the values listed on the right side. You can add a new key or value by selecting New from the Edit menu. You can rename any value and almost any key with the same method used to rename files; right-click on an object and click rename, or click on it twice (slowly), or just press F2 on the keyboard. Lastly, you can delete a key or value by clicking on it, and pressing Delete on the keyboard, or by right-clicking on it, and choosing Delete.


Uninstall Programs Manually

Just because Windows XP has the Add/Remove Programs feature it doesn't mean your application will appear in the list. Furthermore, even if it does appear, it's no guarantee that the uninstall feature will work. When you run across one of these situations the items listed below will help in getting rid of the application. Be aware that these steps may not remove everything associated with the application and can impact other applications on the computer. Have a backup or restore point and use caution.

Find the directory for the application and delete all the files in the directory. Delete the directory.
Open regedit and navigate to HKEY_LOCAL_MACHINE\SOFTWARE and find the folder for the application. Delete the folder.
Open regedit and navigate to HKEY_CURRENT_USER\SOFTWARE and find the folder for the application. Delete the folder.
  • To remove the application entry from Add/Remove Programs (if present), open regedit and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and find the folder for the application. Delete the folder.
  • Some applications have Services attached to them. If this is the case, navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services, locate and delete the service.
In Windows Explorer, navigate to the individual user settings and delete program references. Common places to check would be:

  • C:\Documents and Settings\All Users\Start Menu\Programs and delete relevant entries.
  • C:\Documents and Settings\All Users\Start Menu\Programs\Startup and delete relevant entries.
  • C:\Documents and Settings\%YourUserID%\Start Menu\Programs and delete relevant entries. [Do this for each User ID listed]
  • C:\Documents and Settings\%YourUserID%\Start Menu\Programs\Startup and delete relevant entries.[Do this for each User ID listed]
If no entries were found in the previous step and the application launches automatically, navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows and delete the entry.


Move Location of History Folder

By default, History files (the URL to sites that you have visited, organized by day) are stored at in the folder %USERPROFILE%\Local Settings\History. You can redirect these files to any folder using the following Registry changes:
  • Hive: HKEY_CURRENT_USER
  • Key: Software\Microsoft\Windows\CurrentVersion\Explorer\UserShellFolders
  • Name: History
  • Data Type: REG_SZ
  • Value: path to new folder

Clear Pagefile on Shutdown

When Windows shuts down, it leaves the pagefile intact on the hard drive. Some programs may store sensitive information in clear text format in memory (which in turn may be paged out to disk). You may wish to empty this file for security reasons, or to help speed a boot time defrag, or because you dual boot, and you don't want to share the file, or just as part of troubleshooting a problem. Making the following registry change (or create the following entry) will clear your page file when rebooting.
  • Hive: HKEY_LOCAL_MACHINE
  • Key: SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
  • Name: ClearPageFileAtShutdown
  • Data Type: REG_DWORD
  • Value: 1

Disable Changing Passwords

If, for some reason, you decided that you didn't want users of a Windows 2000 computer to be able to change their password unless prompted to, you can make this Registry change to implement that:
  • Hive: HKEY_CURRENT_USER
  • Key: Software\Microsoft\Windows\CurrentVersion\Policies\System
  • Name: DisableChangePassword
  • Data Type: REG_DWORD
  • Value: 1

A value of 0 means they can change their password whenever they want to. A value of 1 means that users will not be able to change their password unless prompted (by the password expiring, or by the box next to "User Must Change Password at Next Logon" being checked). Please use caution and frequent backups when working with the Registry.


Get Rid of Shared Documents

New to Windows XP is a "Shared Documents" folder that appears in My Computer. This is really just a pointer to another area on disk. You can keep this from appearing by deleting the following Subkey from the Registry:
  • Hive: HKEY_LOCAL_MACHINE
  • Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\My
  • Computer\NameSpace\DelegateFolders
  • Subkey: {59031a47-3f72- 44a7-89c5-5595fe6b30ee}
  • Delete the whole Subkey and all that it contains.

You may wish to right-click this Subkey and export it before deleting it, just to be safe. This also will prevent the current users "My Documents" from showing up in the same area of My Computer. Use caution and frequent backups when editing the Registry.


Model your explorer toolbars

This helps you add an image to the background of your explorer toolbar. To do this go to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\toolbar and add a new string value named? BackBitmapShell? (Without quotes) to it and set its value to the path of the image file. Tip #595: Add a background bitmap to the Internet Explorer toolbar One can easily add a bitmap to the Internet Explorer toolbar. Go to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar and create a new string value named? BackBitmapIE5? (For Internet Explorer 5) and set the path of the bitmap as it value.


Show a Recycle Bin in your My Computer
  • Hive: HKEY_LOCAL_MACHINE
  • Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\My
  • Computer\NameSpace
  • In NameSpace create a New Key & named it as {645FF040-5081-101B-9F08-
  • 00AA002F954E}
  • Now in Right pane make a value Default to “Recycle Bin” without Quotes.
  • Refresh a comp or Restart a comp to effect a change that u have made
  • Attributes
  • 70 01 00 20? Adds both rename and delete to the menu
  • 50 01 00 20? Adds only rename option to the menu
  • 60 01 00 20? Adds only delete to the menu
  • 47 01 00 20? Adds cut, copy, paste to the menu
  • 40 01 00 20? Changes the menu to its default condition

Shutdown XP Faster

When a user shuts down Windows XP, first the system has to kill all services currently running. Every once in a while the service does not shut down instantly and windows give it a change to shut down on its own before it kills it. This amount of time that windows wait is stored in the system registry. If you modify this setting, then windows will kill the service earlier. To modify the setting, follow the directions below:
  • Start Regedit.
  • Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control.
  • Click on the "Control" Folder.
  • Select "WaitToKillServiceTimeout"
  • Right click on it and select Modify.
  • Set it a value lower than 2000 (Mine is set to 200).
  • Or
  • Like previous versions of windows, it takes long time to restart or shutdown windows
xp when the "Exit Windows" sound is enabled. To solve this problem you must disable this useless sound. Click start button then go to settings -> control panel -> Sound, Speech and Audio devices -> Sounds and Audio Devices -> Sounds, then under program events and windows menu click on "Exit Windows" sub-menu and highlight it. Now from sounds you can select, choose "none" and then click apply and ok. Now you can see some improvements when shutting down your system.


Display message on startup XP

If you would like to display a legal message or any other message in a pop-up window when windows starts read below:
  • Start Regedit; if you are unfamiliar with Regedit please see our FAQ.
  • Navigate to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows
  • NT/CurrentVersion/Winlogon.
  • Modify the key “legalnoticecaption” with what you want to name the window.
  • Modify the key “legalnoticetext” with what you want the window to say.
  • Restart.

Change a name of Microsoft Internet Explorer
  • Hive: HKEY_CURRENT_USER
  • Key: Software\Microsoft\Internet Explorer\Main
  • Name: Window Title
  • Data Type: REG_SZ
  • Value: Text
  • Whatever text you enter in for the value will appear in the title of the IE Window.
  • Note: I have only checked this in IE 5.x and 6.x.

Click Here for Source

How to Format a Linux Hard Disk to Windows

Windows operating system and Linux execute best on their specific file systems. It is a known fact that Linux executes better on hard disks that are formatted using the ext3 file format system, whereas Windows executes well in a disk that has been formatted on NTFS file system. If you are running Linux as your default operating system and would like to switch to Windows, there are two simple ways in which you can reformat a hard disk that has been formatted for Linux operating system to enable you to install Windows operating system. For the procedure, you will need the installation disc for each of the operating system, i.e. Linux and Windows.

Insert the Windows installation disc into the CD-ROM and reboot the PC. Give it sometime as Windows goes through the boot-up sequence. Press “Enter” to boot the system from the CD-ROM and press “F8” to accept the terms and conditions for using Windows.

If the installation identifies the presence of another copy of Windows, press the “Esc” key to exit the installation process.

Using the arrow keys, scroll through the existing partitions and select the one that you want to delete. Press ‘D’ to delete and ‘L’ thereafter to confirm the process. Thereafter, the installation will display the current partition and “Unknown”. Repeat the entire procedure until all partitions have been erased.

To create a new partition to install Windows in, select the partition labeled “Unpartitioned space” and press “Enter” to create a new partition you will use to install Windows in.

When prompted for file system to use, choose NTFS if you want only Windows operating system. To install both Windows and Linux, select FAT32 file system.

Proceed to install Windows on the new partition.


How to use the Ubuntu installation disc

Insert the Ubuntu installation disc into the CD-ROM and boot the PC with it. During the boot-up process, select “Try Ubuntu without……” this will enable you to install Linux without affecting the current status of your system.

Load the Partition Editor application, this can be found by clicking the menu “System” then selecting “Administration” on the drop down menu.

Choose the partition in which Linux has been installed in and select “Delete”. Thereafter, select “New” to create a new partition to install Windows in. choose NTFS as the preferred file format system.

Click “Apply” to accept the changes and proceed to install Windows in the new partition that you have just created

If you intend to install multiple operating systems on one hard disk, it is highly recommended that you create multiple partitions for each operating system. The file system used ought to be FAT32 as it is unanimous for data that will be shared amongst the operating systems.

Formatting a hard disk will erase any data that exist therein. Ensure that you have created backup of all data stored in the hard disk.

Click Here for Source

How to Force Windows Explorer to Start in the Folder You Want

When you open Windows Explorer, you can set it to open, every time, in any folder that you select.

Open Windows Explorer, and go to your Start Menu folder (do a google query to find out how to locate this folder, depending on which Windows version you are using)

Find the shortcut that opens Windows Explorer, right click on it, and select Properties.

On the Shortcut tab, in the Target field change the path so that it now reads: c:\windows\EXPLORER.EXE /e, d:\myfolder

that path simply means that Windows Explorer program is located (as usual) in the folder c:\windows, and you then replace the part d:\myfolder above with the hard drive letter and the folder where you want Explorer to start.


Tip: If you want to have Explorer start at My Computer, without drive and folder branches initially expanded, in the string mentioned above you replace the part ( /e, d:\myfolder ) with this instead: /n, /e, /select, c:\

Note: Windows Explorer won't open into the folder you want it to open into, when you start Windows Explorer by right-clicking on the Start button. You will need to make any of these modifications to a shortcut to the Windows Explorer program (called EXPLORER.EXE) You can place such a shortcut on your desktop (or you can put it in the Start button) and then when you use this shortcut the path you specified will work. To launch Windows Explorer so that it points to the Desktop use this string in the Target field: %SystemRoot%\explorer.exe /e,%USERPROFILE%\Desktop


Click Here for Source

How to Fix your Computer Registry for Free

The registry is a huge database in the windows system, containing all sorts of program data, system settings, etc. After long time usage, the registry gets messy and a lot of useless entries slows down your computer.

Download a registry scanner program. I have listed some below in the sources and citations. Reading review sites of different registry cleaners is strongly recommended.

Go through the program you chose and see if there is an option to automatically scan and fix the registry on a schedule.

Run scans frequently to ensure you have a clean registry. Having a clean registry will help speed up your computer and it will save some space too!

NEVER manually delete files from the registry. There are free programs that know what can be deleted and what not.


Click Here for Source

How to Fix Boot.Ini

This is a guide on how to repair or replace a corrupted or missing "boot.ini" file.
Things you'll need Windows installation disk (matching version)

Turn on the broken computer.

Insert the Windows Installation CD.

On the BIOS loading screen, press the button to choose the boot location (F12).

Choose "IDE Disk Drive" or the CD option.

Wait for the installer to load up.

Press R to access the Windows Recovery Console.

Press 1 and enter. When this loads, it will ask what Windows installation you are repairing. Type 1 then press enter.

Enter the password. It will then ask for the computer admin password. Type it in and press enter. If there is no password just press enter.
From here it should go onto a command line starting with C:\\ or the name of the drive the Windows installation is on.

Type bootcfg /rebuild.
This will scan the computer for the installation. It will then ask "Add installation to boot list? (Yes/No/All). " Press Y and hit enter. This may take some time to do.

Then it will ask to "Enter load identifier". Type the version of Windows installed. e.g "Windows XP Home Edition" and enter.

Finally it asks for to "Enter OS Load". Type /Fastdetect and press enter.

Type exit and remove the disk. It should be repaired now!

If boot.ini corruption was the only issue Windows should start normally.
This should be only applicable if you have your CD-ROM on your computer.


Click Here for Source

How to Find out Your Computer's System Information

You have a lot of software and hardware in your computer, but you can never remember what it is.

Download Belarc Advisor, from the website

Install Belarc Advisor, restart if necessary.

Run Belarc Advisor and allow it time to scan your computer.

Look through the webpage it creates, and find your information.
Note: This website is NOT truly online, it is created on your PC and does NOT require a internet connection.

Never change anything in these areas! If you think you mistakenly changed something, click Cancel as opposed to OK or Apply.


Click Here for Source