Monday, January 5, 2009

Error while running ipconfig /flushdns command : "Could not flush the DNS Resolver Cache: Function failed during execution."

When you run the ipconfig /flushdns command to clear the Domain Name System (DNS) cache on a Microsoft Windows XP-based computer, you receive an error message that resembles the following:

Could not flush the DNS Resolver Cache: Function failed during execution.

When you try to repair the network connection, you receive an error message that resembles the following:

Windows could not finish repairing the problem because the following action could not be completed:
Clearing the DNS Cache

For assistance, contact the person who manages your network.

Cause:
This problem occurs if the DNS Client service is not running on the computer.

To resolve this problem, follow these steps:
1.Click Start, click Run, type services.msc, and then click OK.
2.In the list of services, click DNS Client.
3.Make sure that the Status column displays Started and that the Startup Type column displays Automatic.
4.If the service is not set to Started or if the startup type for the DNS Client service is not set to Automatic, follow these steps:
1.Right-click DNS Client, and then click Properties.
2.In the DNS Client Properties dialog box, click the General tab, and then click Automatic in the Startup type list.
3.Click Start, click Apply, and then click OK.

Saturday, October 18, 2008

Removing blue rectangular background behind the desktop icons

This can have variety of causes, hence there are many methods to fix this:-

First, make sure that you do NOT have "Lock desktop items" enabled. To find this go to:

Right click on desktop → properties → Display properties → Desktop → Customize desktop → under 'web' tab → uncheck "Lock desktop items."

Also right-click on the task bar and make sure that "lock the taskbar" is NOT selected.

1st Method

Right click on 'My computer' → Properties → Advanced Tab → under 'Performance' click 'Settings' → under 'Visual effects' Tab → click 'Custom' radio button → Turn on (if its OFF) the “use drop shadows for icon lables on desktop” → click 'ok' → save settings → restart system

2nd Method

Right click on 'My computer' → Properties → Advanced Tab → under 'Performance' click 'Settings' → under 'Visual effects' Tab → click 'Custom' radio button → Turn off (if its ON) the “use drop shadows for icon lables on desktop” → click 'ok' → save settings → restart system

3rd Method

If enabling/disabling ''use drop shadows for icon labels'' option results NO effect.

Here are some methods. Try out any of the following:-

  1. Right click on desktop → properties → Display properties → Desktop → Customize desktop → under 'web' tab → uncheck ALL the checkboxes (if any) under "Web Pages" frame and also, uncheck "Lock Desktop Items"→ save and restart.

    Background color should now be clear.

  2. Go to "C:\Documents and Settings\[your account folder]\Local Settings\" → and clear all entries the file "desktop.ini" → save and restart.

    Icon background should now be clear.

  3. You should also check your Active Desktop settings. Go to the following registry key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoActiveDesktop Set it to 1

    Restart and your desktop icon background should now be clear.

Sunday, October 5, 2008

Firefox cannot access internet / Other web-browsers e.g. IE can / Firefox cannot access internet after update / Firefox “network timeout” error.


After I myself faced a series of connectivity issues with Firefox I thought of writing this blog. This will hopefully summarize some of the many solution approaches to fix the problem.


When Firefox opens, mostly it gives the following message:

Unable to connect

Firefox can't establish a connection to the server at forums.mozillazine.org.

* The site could be temporarily unavailable or too busy. Try again in a few moments.

* If you are unable to load any pages, check your computer's network connection.

* If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.



This can happen due to many reasons:

  • Your browser may have been hijacked by spywares, adwares, or other such malwares.

  • Due to plugin errors, incompatible themes or clash with a third party software.

  • Severe corruption in Windows registry.

  • Firefox installation might have got corrupted somehow.

  • Due to virus attack.

  • Incorrect proxy settings.

  • Due to modification done in the windows host file

  • Crashed TCP/IP.

  • Misconfigration in the firewall.

  • Firewall that recognizes that Firefox restricts it silently even if it is disabled.

  • Sometimes this problem appers if the firewall is not uninstalled correctly.

  • Besides this there can be many other reasons (covered below).


Before trying out the various approaches, make sure that your Internet connection is working properly working. To find this:

Open a DOS command window [Run → cmd] and try pinging the google website. Ex:

C:\>ping www.google.com

A successful ping request will verify that a computer's network interface card, it's drivers, and the operating system's TCP/IP implementation are all functioning correctly. In brief it checks if network connections are intact.

Once you are sure that your connection is fine, you can proceed.

Some of the common Firefox connection issues with their resolutions are stated as under:-

  1. Incorrect Proxy settings

The most common problem observed is due to incorrect proxy settings. If you using a proxy service and that you are able to connect/browse from IE, then this can most likely be causing the problem. In such a case make sure that the IE proxy settings match to that of Firefox proxy settings.

In IE go to:

Tools menu -> Internet Options -> Connections -> LAN Settings

In Firefox it’s in:

Tools menu -> Options -> Advanced -> Network -> Settings button in the connections section

(If the settings vary, then copy-paste the proxy settings info, from IE to Firefox)

Now restart Firefox.



  1. Try flushing Windows DNS cache

    If repeated attempts fail to open a website, Windows may have cached an unsuccessful DNS lookup attempt. This means that you may not be able to view a particular website until the cached result expires. As a workaround, you can flush the DNS cache then try loading the site again.

  • Start -> Run -> type cmd

  • ipconfig/displaydns and press Enter (this will display DNS info)

  • now in command prompt, type ipconfig /flushdns and press Enter (this will clear the DNS info)

  • Now restart Firefox and check if it works.



  1. Clear Firefox’s own internal cache

  • open Firefox -> Tools -> Clear Private Data (Check the cache) and click “Clear Private Data Now”

  • Now restart Firefox and check if it works.



  1. Firefox may still be working in “offline mode”.

To turn off offline mode:

  • Uncheck this option from File menu -> work offline

  • Now restart Firefox.



  1. Problem due to persistent connections.

We can disable this in the following way:

  • Open a new tab, type: about:config, press Enter

  • Click "I'll be careful, I promise!"

  • Search for the value: network.http.keep-alive

  • Right click on this value and click "toggle" to change it to false

  • Restart Firefox



  1. Due to third party tools e.g. Firewalls, Security Suites, etc. / Due to ‘up-gradation of these Security Utilities’ / Due to ‘Up-gradation of Firefox’ in presence of any security software can cause such problems.

  • Often downgrading Firefox (Say, if prior to its upgrade it was working) to previously installed version solves the problem.

  • Uninstall “completely” any security software e.g. Norton firewall, Zone Alarm Firewall, etc. as this may be blocking Firefox.

  • If you are still keeping such security suites, then check the permissions given to Firefox in your firewall settings. See that it’s not restricted. Else, you must reconfigure the firewall to permit access to Firefox.

  • If un-installation of security suites doesn’t work, then there can be a possibility that the un-installation still has some leftovers. To find this:

    Once you have removed such processes then try to open Firefox.


  1. If connection settings are not remembered

Certain software may be is overriding your connection settings. To remove the override:

  • Open the profile folder, in “../program files/Mozilla firefox”

  • Open the user.js file for editing.

  • If there is no user.js file, you don't have any overriding settings, so this isn't the problem.

  • Remove any lines that have the word "proxy" in them.

  • Save the file.

  • Restart Firefox



  1. Problem due to Ipv6

Firefox uses IPv6 by default. You can disable IPv6 and see if it helps.

  • In the url, type about:config, and press EnterReturn. Then click “I'll be careful, I promise!”

  • Search network.dns.disableIPv6

  • If the value is false, double-click on it, to change the value to true.

      “If the value is already true, IPv6 is already disabled, so it isn't causing your problem.”

  • Close and restart Firefox

    If disabling IPv6 doesn't resolve the problem, re-enable IPv6 by setting the preference back to false.



  1. Clean install Firefox

  • Uninstall Firefox completely.

  • Delete any leftovers in ‘../Program files/’ folder, i.e. delete the folder ‘Mozilla Firefox’ from there.

  • Clean the windows registry using a good registry cleaner.

  • Reinstall Firefox, and try again.



  1. Many times viruses corrupt the registry settings causing Firefox not to operate correctly.

  • For this use a good scanner. You can try scanning with the following:

    • Kaspersky Anti-virus

    • PC Tools Spyware doctor

    • Spybot Search and Destroy

  • If viruses/adware/etc. are detected. Then after removing, you must clean the registry.

  • After this, go ahead with a fresh installation of Firefox.

  • Also, perform steps as in #11. (See below)



  1. Spyware/viruses can cause to malform LSP or corrupt TCP/IP and/or Winsock registry entries.

  • To solve the problem download the utility “XP TCP/IP Repair”.

  • Do the repairing with it and restart system to take effect.

    This is a very important fix that one must try.


12. Issues in customization and preferences.

  • Start Firefox in Safe Mode.

  • "Firefox Safe Mode" window appears, containing some troubleshooting options. Check the boxes, "Reset toolbars and controls" (this is to remove any toolbar customizations) and "Reset all user preferences to Firefox defaults" (this will remove any user-set preferences and restores the default theme).

  • Next, press the button, "Make Changes and Restart".


13. Extension and theme issues

    Sometimes its all due to a problematic extension. Start Firefox in Safe Mode.

    When the "Firefox Safe Mode" window appears, press the button, "Continue in Safe Mode". (This will start the program with all extensions disabled and with the default theme.)

    If the problem goes away in Safe Mode:

  • Update or uninstall the added theme or select the default theme in "Tools → Add-ons → Themes".

  • Update or selectively disable or uninstall your added extensions in "Tools → Add-ons → Extensions"


14. Due to windows HOST file

    A special Windows file called the "Hosts" file and its use to control Internet browsing.You can find this in the folder \Windows\system32\drivers\etc\, with the name "hosts.sam". A hosts file has the ability to redirect Internet requests.

    These host files sometime gets modified due to viruses and this can effect our browsing.

    Review your hosts file to see if it contains any entries other than 127.0.0.1 localhost. If it does, then make the necessary editing.

    The orignal windows host file looks likes this:

    You can google up and find more information regarding how to edit a host file.

Monday, May 26, 2008

Error : "NTLDR Is Missing... "

Error Type:

1. NTLDR is Missing
Press any key to restart

2. Boot: Couldn't find NTLDR
Please insert another disk

3. NTLDR is missing
Press Ctrl Alt Del to Restart


CAUSE: While computer starts, the BIOS (Basic Input/Output System : This is to prepare the machine so that the other software programs stored on various media can load, execute, and assume control of the PC) attempts to find the primary hard drive's active partition to read the first sector for the Boot Sector or MBR (Master Boot Record), this information is used to load the rest of the OS(Operating System). In Windows XP the MBR is pointed to the NTLDR (New Technology Loader) and it takes it from there to load the OS. If you get "NTLDR is missing, press any key to restart" what's most likely going on is the BIOS either didn't look for the right drive, didn't find the right partition, it wasn't active, didn't find the MBR, or the MBR didn't list NTLDR in the right place i.e. MBR or the Boot sector is damaged, the location of NTLDR changed, or there may be a possible hardware failure.

Another cause can be that one or more of the following Windows boot files are missing or corrupted:

1. Ntldr
2. Ntdetect.com
3. Boot.ini

There can also be other causes like :

1. Computer is booting from a source that is non-bootable.
2. Computer HDD (hard disk drive) is not properly setup in BIOS.

Solution:

Insert the Windows XP bootable CD into the computer.
  1. Once in the Windows XP setup menu press the "R" key to repair Windows.
  2. Log into your Windows installation by pressing the "1" key and pressing enter.
  3. You will then be prompted for your administrator password, enter the password/ if no password is there then just enter.
  4. Copy the two files to the root directory ( say c:\ ) of the primary hard disk from the the XP CD. These are stated as under:

    copy e:\i386\ntldr c:\
    copy e:\i386\ntdetect.com c:\

  5. After these files have been successfully copied, remove the CD from the computer and reboot.

Tuesday, May 6, 2008

Error on starting system: "HAL.DLL is Missing"

Boot from your Win XP CD and follow the directions below to start Recovery Console.

Follow the instructions and then choose the repair/recover option by pressing R.

When prompted, type your Administrator password. (if you didn't create any then just press enter).

Now type and enter the following:

Attrib -H -R -S C:\Boot.ini
DEL C:\Boot.ini
BootCfg /Rebuild
Fixboot

"System Restore" disabled

Heres the script given in italics below. Just copy and paste in a notepad. Name the file as "sysrestore.reg". After you get the file just right click and select merege. Then restart the computer:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr]
"Type"=dword:00000002
"Start"=dword:00000000
"ErrorControl"=dword:00000001
"Tag"=dword:00000004
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
52,00,49,00,56,00,45,00,52,00,53,00,5c,00,73,00,72,00,2e,00,73,00,79,00,73,\
00,00,00
"DisplayName"="System Restore Filter Driver"
"Group"="FSFilter System Recovery"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr\Parameters]
"FirstRun"=dword:00000000
"DontBackup"=dword:00000000
"MachineGuid"="{EAAFAEEC-4AFE-42BE-83D9-C12FDD4942A6}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr\Enum]
"0"="Root\\LEGACY_SR\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

Cannot open registry editor "regedit" in run

Heres the script given in italics below. Just copy and paste in a notepad. Name the file as "regedit.reg". After you get the file just right click and select merege. Then restart the computer:


Windows Registry Editor Version 5.00


[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit]

"View"=-
"FindFlags"=-
"LastKey"=-

PowerShell Speed Test: A No-Nonsense Way to See If Your PC's Slowing Down

Grrr... Bundle of miseries! So, the other day I felt like my laptop was dragging its feet… apps taking forever to open, browser tabs hanging...