Articles

Archive for the ‘Windows XP’ Category

Repair Corrupted Registry Hive

Tuesday, August 17th, 2010

Problem:

Your registry is corrupt and Windows will not boot.

Solution 1:

Last Known Good

Solution 2:

If you had System Recovery turned on, you can restore the corrupted hive from the System Volume Information Folder as directed here.

Solution 3:

Open the registry hive on another computer and repair it.

With REGEDT32 one can load and edit offline registry databases:

  1. Start REGEDT32
  2. Highlight the HKEY_LOCAL_MACHINE-window and select the root of the tree
  3. In the menu select “Registry” -> “Load Hive
  4. Select the wanted registry database file:
    • [HKEY_LOCAL_MACHINE \SYSTEM] (%windir%/system32/config/system)
    • [HKEY_LOCAL_MACHINE \SOFTWARE] (%windir%/system32/config/software)
    • [HKEY_USERS \.Default] (%windir%/system32/config/default)
    • [HKEY_CURRENT_USER] (%userprofile%/ntuser.dat)
  5. When prompted for a name give it whatever name you like (etc. test1). The name will be used to create a new node in the tree so one can browse the offline registry.
  6. Go to the newly created node and edit whatever you like (The changes are written immediately to the offline registry database). One can import/export between the newly created node and the current registry just browse between the corresponding keys.
    • To export a single key(with subkeys) into a file: Select the wanted key and in the menu “Registry” use “Save Key”.
    • To import a single key or tree from a file: Select the location where the key should be imported and in the menu “Registry” use “Restore”. Be very careful to select the same location from which is was exported as the restore will erase everything below the import location and replace with the contents of the file.
  7. When finished editing select the newly created node and in the menu select “Registry” -> “Unload Hive

This gives some possibilities:

  • Load another users HKEY_CURRENT_USER (ntuser.dat) and change the users settings without logging in with the user.
  • Load an offline registry database and extract settings to import in the current registry database.
  • Load an offline [HKEY_USERS \.Default] and change the login screensaver to Reset Administrator Password
  • Load and edit the registry database on a parallel installation without needing to boot it first.
  • Repair the registry without using a parallel installation:
    • Use the Recovery Console to recover from faulty registry
    • Boot Windows in safemode using the restored registry database
    • Start REGEDT32 and load the faulty registry and edit away the faults
    • Boot into the Recovery Console again to exchange the now hopefully fixed registry database back (winnt/system32/config)
    • Boot Windows and it will now be using the fixed registry database

How To Set Default Wallpaper For Terminal Server

Saturday, June 19th, 2010

You can brand your terminal server with your company’s logo so that employees will know they are connecting to the right place. 

The image you select will appear behind the login screen.  Simply create a BMP image file and add the path to the registry here:

defaultwallpaper

HKEY_USERS\.Default\Control Panel\Desktop\Wallpaper

How To Delete One Million (1,000,000) Files Without Crashing Windows Explorer

Monday, May 24th, 2010

Problem:

You have a folder with a large number of files that you need to delete.  This is too much for Windows Explorer to handle.

Solution:

FastCopy (it also deletes files fast)

It took several hours but FastCopy was able to delete 948,102 files without slowing down the server at all.

It took several hours but FastCopy was able to delete 948,102 files without slowing down the server at all.

Can’t Open Any Programs Without “Choose the Program you want to use to Open This File”

Wednesday, May 12th, 2010

Problem:

Every time you try to launch a program you get prompted with Choose the Program you want to use to Open This File.

Open With

Open With

Cause:

You recently had a virus or malware infection that changed some critcal registry entries so that the virus would be launched whenever you opened any program.  The virus has been removed but the registry entry remains so Windows is asking which program to run instead of the virus.

Solution:

You need to repair the registry entries.

You can temporarily launch programs by right-clicking the shortcut and choosing Run As…

Run As...
Run As…

This will allow you to run MalwareBytes which can detect the registry problem and fix it for you.

You may also edit the registry directly and fix these entries:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithList][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithProgids] “exefile”=hex(0):

Mountain Dew Saves The Day

Monday, May 3rd, 2010

Problem:

Your hard drive is clicking and is no longer readable.  If you let it cool off for several hours, it will run for about 5 minutes and start clicking again.  You need to recover you data.

Solution:

Dew it.  Place a cold Mtn Dew (formerly Mountain Dew) can on the drive and it will stay cool for hours.  After your data is recovered, drink it.

Dew Drive

Dew Drive

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed

Monday, April 26th, 2010

Problem:

You try to connect to a server or shared folder and get this message:

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed…

Cause:

You already have a connection to that resouce using a different username.

Solution:

Disconnect your other connections then try again.  Open a command prompt and type:

net use * /delete

Fixing File Associations In Windows

Thursday, April 15th, 2010

Here is a handy resource when a virus/spyware wrecks your file associations.  Common problems are executing .exe files and the “run with…” dialog box pops up.

http://www.dougknox.com/xp/file_assoc.htm

Windows XP Registry Recovery

Friday, January 8th, 2010

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

How to recover your registry:

Hopefully you had Windows System Restore enabled before your registry was corrupted (it is enabled by default).  Otherwise you are done and you’ll have to reinstall everything.

Microsoft has a really long article here.

I will outline the major steps.

1.  Pull your hard drive and connect it to another computer.  Run a chkdsk on the drive to check for errors.  If it finds any, you should back up your important files right away.

2.  Locate the System Volume Information folder on the root of the drive (it is hidden).

3.  Drill down into the folders and locate a snapshot folder for a previous day when your computer worked.  This folder will contain a backup of your registry.

4.  Copy these files to the Windows\system32\config folder:

  • _REGISTRY_USER_.DEFAULT
  • _REGISTRY_MACHINE_SECURITY
  • _REGISTRY_MACHINE_SOFTWARE
  • _REGISTRY_MACHINE_SYSTEM
  • _REGISTRY_MACHINE_SAM
  • 5. Rename the files (after backing up the old files with these names):

  • Rename _REGISTRY_USER_.DEFAULT to DEFAULT
  • Rename _REGISTRY_MACHINE_SECURITY to SECURITY
  • Rename _REGISTRY_MACHINE_SOFTWARE to SOFTWARE
  • Rename _REGISTRY_MACHINE_SYSTEM to SYSTEM
  • Rename _REGISTRY_MACHINE_SAM to SAM
  • 6.  Put the drive back in your computer and boot up.  If the drive doesn’t have any other corruption, it should work.

    Restrict websites in FireFox and Internet Explorer

    Friday, August 28th, 2009

    Ever wanted to block some websites in either of the mainstream browers in Windows without having to purchase filtering software, or mess around with the /etc/hosts file? 

    Refer to http://jaxov.com/2009/08/how-to-block-websites-in-internet-explorer-and-mozilla-firefox/

    Dell Bluetooth Keyboard and Mouse Combo with DR985

    Monday, August 24th, 2009

    When you install the DR985 USB Bluetooth adapter it does not install the bluetooth item in Control Panel.  Without this, you can’t do a search for new devices.

    After spending a couple hours trying different drivers, the option still never appeared in Control Panel.  It seems that it never will.  I went to a working computer with the same adapter and found that it did not have bluetooth under Control Panel either.

    With this Keyboard and Mouse combo, you simply press the blue button on the usb adapter and then press the blue button on the keyboard and mouse.  This will pair the devices.

    images