How to Restore DLL Files on Your Computer

0

Posted by touhid | Posted in PC Troubleshooting | Posted on 28-02-2010

Missing Dll files that somehow disappear can cause your computer to act in mysterious ways, such as not shutting down properly. A means to determine this is a system disk scan which comes with Norton anti-virus. For instance Norton has a good ‘Windoctor’ that makes repairs automatically. It is suggested that if one removes Norton anti virus for a free virus program, they retain Norton Utilities/ WinDoctor and Speed Disk for defragging.

Always run a virus check on anything one downloads before they open it. Remove programs that one doesn’t use or need. Too many programs clog up the machine. Do periodic defragging. Anytime one downloads or removes programs, music etc. plus the normal creation of files, it fragments the computer and slows and confuses its proper function. “When system files are overwritten, such as .sys, .dll, .ocx, .ttf, .fon, and .exe files, system performance becomes unpredictable, programs behave erratically, and the operating system fails”.

If it is determined that one has one or more missing Dll file(s) that can be identified, they can be replaced. Find on say Google, a site that offers free Dll file downloads. Look for missing Dll. Download and Unzip the file to desktop. For this you need Winzip or WinRAR to extract file.

Now one needs to put the Dll file in proper folder. A way to find the program from which the Dll file is missing is by entering it into Google. For instance

q_encutl.dll+program’. Take for example the message as may be posted by ‘Norton Windoctor’: “C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\

Intel32\DotNetInstaller.exe” cannot access a necessary file, “mscoree.dll.” Download the Dll file mscoree.dll.

By using ‘Windows Explorer’, one would in this case go to Local Disk [C] Program files/Common Files/Install Shield/ and look through the sub-folders until one would find in this case Professional/Run Time/Intel32. In this case one could cut and past or copy Dll into that Folder. By copy instead of cut and paste, one can put the still desktop Dll download into something like ‘My Documents’ as an extra copy.

Or you can go to the “run” menu. Type “SFC” it will search for missing files or altered one. If this doesn’t work type the missing .dll manually overwrite it with your windows cd.

ipconfig

0

Posted by touhid | Posted in PC Troubleshooting | Posted on 25-12-2009

Windows Command Line Utility

ipconfig is a commmand line utility available on all versions of Microsoft Windows starting with Windows NT. ipconfig is designed to be run from the Windows command prompt. This utility allows you to get the IP address information of a Windows computer. It also allows some control over active TCP/IP connections. ipconfig is an alternative to the older ‘winipcfg’ utility.

ipconfig Usage

From the command prompt, type ‘ipconfig’ to run the utility with default options. The output of the default command contains the IP address, network mask and gateway for all physical and virtual network adapters.

‘ipconfig’ supports several command line options as described below. The command “ipconfig /?” displays the set of available options.

ipconfig /all

This option displays the same IP addressing information for each adapter as the default option. Additionally, it displays DNS and WINS settings for each adapter.

ipconfig /release

This option terminates any active TCP/IP connections on all network adapters and releases those IP addresses for use by other applications. ‘ipconfig /release” can be used with specific Windows connection names. In this case, the command will affect only the specified connections and not all. The command accepts either full connection names or wildcard names. Examples:

    ipconfig /release “Local Area Connection 1″
    ipconfig /release *Local*

ipconfig /renew

This option re-establishes TCP/IP connections on all network adapters. As with the release option, ipconfig /renew takes an optional connection name specifier.

Both /renew and /release options only work on clients configured for dynamic (DHCP) addressing.

Note: The remaining options below are only available on Windows 2000 and newer versions of Windows.

ipconfig /showclassid, ipconfig /setclassid

These options manage DHCP class identifiers. DHCP classes can be defined by administrators on a DHCP server to apply different network settings to different types of clients. This is an advanced feature of DHCP typically used in business networks, not home networks.

ipconfig /displaydns, ipconfig /flushdns

These options access a local DNS cache that Windows maintains. The /displaydns option prints the contents of the cache, and the /flushdns option erases the contents.

This DNS cache contains a list of remote server names and the IP addresses (if any) they correspond to. Entries in this cache come from DNS lookups that happen when attempting to visit Web sites, named FTP servers, and other remote hosts. Windows uses this cache to improve the performance of Internet Explorer and other Web-based applications.

In home networking, these DNS options are sometimes useful for advanced troubleshooting. If the information in your DNS cache becomes corrupted or outdated, you could face difficulty accessing certain sites on the Internet. Consider these two scenarios:

  • The IP address of a Web site, email server or other server changes (rare occurence). The name and address of this site normally stay in your cache for 24 hours after your last visit. You may need to clear your cache to access the server sooner.
  • A Web site or other server was offline when you last visited it (hopefully a rare occurence) but since has come back online. The cache will normally keep a record that the server is offline for 5 minutes afer your last visit. You may need to clear your cache to access the server sooner.

ipconfig /registerdns

Similar to the above options, this option updates DNS settings on the Windows computer. Instead of merely accessing the local DNS cache, however, this option initiates communication with both the DNS server (and the DHCP server) to re-register with them.

This option is useful in troubleshooting problems involving connection with the Internet service provider, such as failure to obtain a dynamic IP address or failure to connect to the ISP DNS server.

Like the /release and /renew options, /registerdns optionally takes the name(s) of specific adapters to update. If no name parameter is specified, /registerdns updates all adapters.

Deciphering Windows Processes

0

Posted by touhid | Posted in PC Troubleshooting | Posted on 16-11-2009

Process Explorer

Ever wonder what svchost is? Why it takes so much RAM? Why your explorer.exe keeps crashing?  Look no farther! Process explorer is a free utility that Microsoft redistributes that helps you take the mystery out of you processes and helps you find problem areas.  It can be used to trim down your RAM usage or even to find out what executables are running behind processes.  This is important because most of the time explorer.exe crashes it is indicative of a problem with your computer caused by executables hooking into the Microsoft process named explorer.exe.

Getting started

To begin, go grab the latest Process Explorer from Microsoft here. Alternately, you can go to Microsoft.com, and search for “Process Explorer”, either way click the download button and save the file wherever.  Unzip the file by right clicking on it and you should have three icons now.  Only one of them is of concern to us, and that is procexp.exe.

Process Explorer Process Explorer
Search on microsoft.com
Click this button to download
Process Explorer
The icons

Before we go any farther it should be noted that every process (in Windows) can host one of two different things:

  • Services: These are programs that aren’t meant to interact with the user and instead provide functions to applications or perform simple tasks in the background.
  • Executables: These are programs designed to interact with the user, they will always be followed by *.exe, whereas services are generally not appended with the *.exe extension.

Technically, they are both very similar, but they are treated very differently. Keeping notation correct will be important to understanding what I am trying to explain. If what you just read is a new concept, reread it and make sure you are comfortable with the difference before moving on.

The Interface

Double click procexp.exe and you should get a window similar to this that pops up.

Process Explorer

It may seem overwhelming at first, but bear with me for a moment, let’s go over each of these labels.

A) Process: This is the name of the process, once expanded it also shows the names of the executables and services working under each process. An executable is any *.exe file and a service is any program that is usually running in the background and is considered ‘important’ to your operating system functioning.

B) PID: This is a unique identifier for each process, note that even though some processes can have the same name, no two processes can have the same PID.

C) CPU: This is the percentage of your processors cycles that go to this particular process and its subcomponents.

D) Description: This should be the proper name for each process, if this isn’t enough information I would suggest googling the process and seeing if it yields more information.

E) Company Name: Pay attention to this as you decide what’s important and what isn’t, it can give good clues. Also it should be noted that just because it says “Microsoft Corporation” does not mean that every item in that process is made by Microsoft or even good for your computer.

F) Processor Usage Graph: This graphs all of your processes in terms of processor usage. Each process is an individual color.

G) Virtual Memory: This shows you how much of your virtual memory is being used, if this gets fully yellow, you’re in trouble.

H) Hard Drive Usage Graph: This graph shows how much your hard drives are being accessed by your processes. Obviously, if this bar fills the box, you have a system resource problem.

I) Summary: This is the total impact all of your processes have on your computer’s resource pool.

Now that you understand the basic parts of the interface let’s modify some things to make it easier to see each process’s impact on your computer. First you need to change the views on the process tab, click on it 2-3 times until it has a tiered look. This will become important when you get swamped with processes in a second.

Process Explorer
It should look like this

After you get the tiered view, right click on the word “Process”, the same one you clicked to change the view. Hit “Select Columns” and a dialog box should pop up. At the top hit the “Process Memory” tab and check the box that says “Working Set” and another that says “Virtual Memory”. Quickly and oversimplifying (see here for more details).

  • Working Set: Amount of physical RAM used by a process
  • Virtual Memory: RAM usage plus page file usage (not precisely, read here if you’re curious *technically in depth*).
Process Explorer
Right click “Process”, then left click “Select Columns…”
Process Explorer
Check these two boxes

Now you can see how much memory each one of these processes take up, but we still haven’t found any information that we couldn’t have with task manager. This changes when you find the “services.exe” entry and expand it. Your window will get flooded with new entries including the infamous svchost.exe. What you want to do here is inspect each of the processes under each svchost.exe and then also by mousing over it and see which services are running under the processes.

Process Explorer

A lot is going on inside of the interface of process explorer right now, but don’t worry, we’ll go through what’s important.

A) Tiered View: This view lets you see which processes are hosting what executables and so on. It shows you what task manager fails to do, and that is what exactly is running in the background. I would strongly suggest going through explorer.exe. Inspect each executable in it and see which you don’t recognize or want there. As a rule of thumb, anti-viruses, driver type applications, and open applications should be there, but if you start seeing other things there get rid of them. More on how to get rid of unwanted processes and executables later.

B) Memory usage: This item is here to give you an idea of how important each process is to your system resource pool.  A process using 1 kB of memory and almost no CPU bandwidth isn’t even worth inspecting most of the time, but one using 200 MB of Virtual memory carries a bit of weight. Notice how the memory doesn’t add up to the total, this is what we call in engineering “space math” don’t worry about it, memory is a complicated issue and you can read the articles I linked earlier if you care to learn more. If you got nothing else from this paragraph, the bigger these numbers, the worse they are.

C) Hovering over an entry will cause a pop up to appear containing a list of the services being run through that process.

Executables

I’ll quickly talk about how to stop an executable from running and how to get rid of one, and then I’ll spend the rest of this article talking about how to deal with services.

Hovering over an entry will cause a pop up to appear containing a list of the services being run through that process.  Literally right click on it and click “Kill Process”. To prevent it from running again at start up follow these instructions:

1) Hold down the windows key and press ‘R”

2) Type in msconfig, press enter

3) Click the startup tab and uncheck it’s entry, if it doesn’t have an entry it means that something you did post-startup caused that process to run.

Process Explorer
Right click and hit “Kill Process” to close an executable
Process Explorer
Windows key + R gives you this, enter “msconfig” and hit enter
Process Explorer
Uncheck the items you don’t want to run at start up, then hit apply

Services

Finally, lets talk a bit about services and how to reclaim system resources from them. A service is a program that runs in the background to perform a task or set of tasks. Every time you hit the print button in Word or attempt to access the internet a service is called to aid in the task. Processes and services are the things that allow basic windows functions to happen and allow programs to run without being in your hair (the taskbar or the tray). Services are vital to the operation of your computer, disabling the wrong one can have staggering consequences. Basically, only do this if you are sure what you are doing.

Typically a lot of services are enabled on a computer by default, your desktop computer probably has a service running right now to manage its battery, what’s that? Your desktop doesn’t have a battery? Well, Windows doesn’t know that and will try to manage it anyways. If you have Vista you are probably aware of the fact that Vista likes to eat RAM. Vista takes your RAM and it caches frequently used programs into your RAM in order to speed them up. This means you sacrifice about 400 MB of ram so that when you hit Firefox or any other program you use frequently it opens almost instantly. If you would like your RAM back, disabling a service called SuperFetch is what you want to do.

To access the list of services on your computer, once again hit Windows key then R, this time type “services.msc”. This will open up the services control panel; let’s dissect it like we did to the process explorer interface.

Process Explorer
Click to enlarge

Once again:

A) This is how you stop a service that is already running.

B) This is the name of the service, if you do not know what a service is, do not alter it.

C) This is the status and the Start up type, the status tells you if the service is currently running. The start up type tells you when and how a service can be started.

  • Automatic: Service is started when your computer starts
  • Automatic (delayed): Service is started when your computer starts, but this service waits until other services have been loaded.
  • Manual: A call to this service to perform a task will cause it to start, it remains disabled until a function call to it is made.
  • Disabled: No circumstance can cause the service to start (other than a user override).

Using the services.msc configuration tool is has easy as it looks, find a service you don’t think you need and disable it. A word of warning, if you don’t know what a service does and you don’t understand the description DO NOT DISABLE IT. Google will also help you a lot here, just google the name of a service and read what people have written about it.

Conclusion

Hopefully this article will be helpful to you in your quest to free more system resources and make your computer run more efficiently. If this guide isn’t clear or you’re having trouble deciding what processes/executables are worth terminating feel free to check out our forums.  Remember, safe mode can be used to fix any mistake you make with regards to turning services off, and this is also an excellent tool to have at your disposal should you get a virus (they love to latch on to svchost.exe or explorer.exe).

Should You Use Standby or Hibernate?

0

Posted by touhid | Posted in PC Troubleshooting | Posted on 16-11-2009

It’s an age-old question: When you’re done using your laptop, or just taking a break from work, should you put it to sleep, let it hibernate, or turn it all the way off?

Allow me to answer by way of a mnemonic: hibernate is great. You see, sleep mode (a.k.a. standby) puts your system into an off-like state, allowing you to pick up where you left off after just a few seconds (unlike rebooting, which can take minutes). But a PC in standby mode continues to consume battery power, so it’s not uncommon to return to a “sleeping” PC to find that it’s just plain dead.

Hibernate, on the other hand, writes your machine’s current state to a temporary hard-drive file, then shuts down completely (much like “off”). When you start it up again, it loads that file and returns you to where you left off–no booting required.

Both ends of the hibernate process take a little longer than standby (usually 10-20 seconds, in my experience), but you avoid any of the issues that can arise when Windows suddenly loses power. What’s more, standby is a notoriously flaky mode. I’ve encountered plenty of systems that refuse to wake up properly, so you end up losing whatever work you were trying to preserve.

Consequently, unless you’re running your laptop on AC power, I recommend using hibernate most of the time.

Why the Slow Boots?

0

Posted by touhid | Posted in PC Troubleshooting | Posted on 16-11-2009

You probably have too many autoloading programs. If a brand-new PC boots slowly, you can bet that the vendor weighted it down with too many bundled programs that load automatically with every boot. If a once-fast PC has developed that problem over time, you’ve probably added too many of these programs, yourself–perhaps without realizing it.

Which doesn’t mean you have to remove the programs; you just have to turn off their autoloaders. I use Photoshop nearly every week, but I see no need for a Photoshop icon in the system tray, or a little piece of Photoshop always in memory.

Before you do anything else, create a system restore point: In XP, select Start, All Programs, Accessories, System Tools, then System Restore. Select Create a restore point, click Next and follow the wizard. In Vista, click Start, type sysdm.cpl and press ENTER. Click the System Protection tab, then the Create button.

To see all of your autoloaders, select Start, then Run, type msconfig, and press ENTER (you don’t have to click Run in Vista). Click the Startup tab. You can uncheck any of the listed programs to keep them from autoloading.
171217-0907_original

Which ones should you uncheck? Not your antivirus, firewall, or security suite; you need those running at all times. Other than that, you have to use your own judgment and experiments to determine what you want running at all times and what you want to launch when you need it.

Sometimes an autoloader you’ve unchecked–perhaps days or weeks ago–will reappear on the list later. Why? Because the program that put it there in the first place senses that it’s no longer autoloading and corrects your “mistake.” In these cases, examine that program’s Options or Preferences menu and look for something like “Launch when Windows loads” or “Put in System Tray.” Uncheck that option.

What else can slow down a once-fast boot? An overloaded or corrupted Registry. But Registry cleaning is inherently dangerous, and I don’t recommend it unless things have become unbearable. See How Best Do I Clean My Registry? for details.