Search This Blog

Thursday, November 15, 2018

Disabling Prefetch and Getting rid of RegSvr32 running problem To Make PCs Run Great Again


 14 November 2018

Simple Cleaning Process  to make PCs Running Great Again (Part2) - Disabling Prefetch and Getting rid of RegSvr32 running problem.

This part 2 goes further to clean up the PCs,  better than what can be done by  commercial cleaning programs such as CCleaner or other virus program. 

Section I  :   Disabling Prefetch and Superfetch Files

What are they?

They are simply Windows tools that are supposed to make PCs running faster.  It is often used during XP days but is still being used today in Windows 10.  

Programs that are frequently used but did not get started during Windows startup will be started up in the background automatically,  provided the Prefetch files to start the programs are stored in  [C:\windows\Prefetch]. 

SuperFetch is another feature of the Windows OS that determines which program can have its necessary files and data all loaded into the RAM memory to make programs run even faster.  

As programs can get started automatically,  it is often used by hackers or viruses as “back doors” to gain access to the PCs without user’s permission.

The Conventional Wisdom?

If one has Windows OS and program files installed in SSD drives,  the prefetch and superfetch functions are less useful;  one should disable these features by taking the following steps

Description
Action
Remarks
1.  Disabling Prefetch
1.  Start up [Regedit] as Admin and navigate to [PrefetchParameters]  at the address shown on the top of the next picture and change the [EnablePrefetcher]’s value from [3] to [0]

2.  Disabling the SuperFetch
1.  Start up [Services] as Admin and navigate to [Superfetch Properties] as shown;
2.  Stop the operation of SuperFetch if it is running;
3.  In the dropdown box of [Startup type] ,  select [Disable]
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9AAn221TPvm91YWzbmX6BfLga5W4rD7TKE9YGyP5kkfNPRLCnGo0ccaBu5vPIA0rydqWGs-nbh94I9k-DVK6PWVvxnc-X-9_NtXujQ2ezfSk2tABkIIWETTmOvz6-vM4yHeG1-uNybjLz/s1600/2018-11-15_09h15_07.jpg

If one is still using the ordinary mechanical hard disk drive, it is recommended to keep the  Prefetch and SuperFetch functions but do the cleaning up every month by deleting all the files in [C:\Widnows\Prefetch]  that are ending with [.pf].  These deleted files will be re-installed by those programs as they are in operation.


Section II:  Getting Rid of Running RegSVR

Those monitoring  their PCs using [Task Manager] might find that sometimes RegSvr or RegSvr32  kept running non-stop,  consuming lots of CPU time as shown in the attached. 


There was no  warning or notification.  Some said that it was caused by viruses;  others said that some OS files were missing.   Most solved the problem by installing virus programs while others simply  just deleted the RegSvr files from the PC,  which is not advisable.

This section II  will present one of the easy ways to identify  and get rid of the RegSvr  problem by using just Windows’  own programs.   The same method can also be used to identify and get rid of some viruses that kept buggering and consuming unnecessary CPU time.

What Happened ?

The PC is most likely infected by viruses;  if it is some OS file such as DLL files missing,  PCs will usually give some warnings.   These viruses often disguise themselves and try to gain access through the “back door” by registering the process and using the [Prefetch] function to start their operation.   In this case,  some files were found  missing and Windows could not register the program and kept trying.  

How To Resolve?

Task Manager can identify RegSvr is taking up much time but it can’t tell which program or virus is the  “culprit”.   Luckily,   Microsoft has a tool called “Process Monitor” or [ProcMon] where one can monitor the working of the various Window Processes.   This article will concentrate on how to use this tool to “catch the culprit”.


Where can I Download? 

From here  or here.

Step by Step Example of using [ProcMon]

Description
Action
Remarks
(Click Picture to Enlarge)
1.  Starting up [ProcMon]

One would be greeted by the following screen which shows all the defaulted processes.  The screen will move so fast and there is no way to monitor the processes without setting up the [Filter]

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM8_joHV8ugUtvmFV1cqu8yf3uil_AXGdCebuRlIMIO0TrXBpacOIwEWn5n0LACFTsWqI5fCFtOdZOxoC7m0m3w3TtUN_uJsO_oJ_1LSPPCi_lnQEVTv8UbCP21ACcd442cDwooQ2lsBkM/s1600/2018-11-14_15h26_12.jpg

2.  Setting up [Filter]
In the [Menu],  click [Filter] and then select [Filter] in the drop down list. 
The following screen will appear,  showing no less than 20 processes being monitored.  As we want only to monitor RegSvr,  a filter is required. 

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhngTlygMgOExrXr-1Sk8d-twUqFZB9-9kKPzkiEoxA7MeO0KWYdUBvNbYluqquNI-SvCjst4ZyaYR7KojOEZX0pagloUR9EjFkNNQfRv4ZPx_zlg-sXqtstiOaEL0E8wTib3YoQMJyXr-W/s1600/2018-11-14_15h31_47.jpg

3,  What to Put in the [Filter]
1.  In the [Display entries matching…],  hit the first dropdown list and select [Process Name]

2.  In the 3rd dropdown list,  key in [RegSvr32.exe] to monitor only the RegSvr32 process.

3.  Uncheck all other defaulted processes

4. Click [Apply],  the [OK]
Observe the running event recording at the bottom of the screen,  the meter should run to indicate ProcMon is working properly.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDp3yXnUNjcMZQfj1MQyR4hpA2VTffqHnhonmSyHtRkr5ZdgMrTQ4Au81VFN8L-aLX_Kc8gQUiqzy4tx_EbcA3PBsyMm-XiNHDTITLk_C0PtNjYA0jrpVlxHt0X2-2wSzg3B5kF2WfeR6n/s1600/2018-11-14_15h40_21.jpg


If ProcMon detected that [RegSvr32.exe] has been used,  it will start to report the details
4.  How to know which is the virus?
1.  check the [result] and the [Details] columns of ProcMon.

2.  Identify which program started the RegSvr first and where is this program located






In this particular case,  RegSvr was requested by a Prefetch file called “RegSvr32.exe-03D3FB87.pf”.  This one is highly suspicious to be a virus.  It is trying to use the back door to register the process.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9k6saweNHMlJJ3n0ljsGnuql_RhngURs8MAT3XyVzAO4fadyIA1LYh04-wJh4YGbl7gZyafx_OX1u8_CVNBIAaqGCOWf9WyZFK43G1JAVFaeWWh3yRcrX43JsR_dAsf9AgJ170tyOq8jW/s1600/2018-11-14_13h58_25.jpg


2.  Goto the file address by right click the process and select [Jump To].   Try putting a  [.bak] at the back of filename.  However,  if it is a Registry address,  export the Registry by clicking [File] in the menu and select
[Export].  Save it in place with a file name so that one could restore it by [import] should anything were to happen.

If the Windows refused to allow modification of filename or deletion of  the registry key,  goto Q&A section for answer.
Note:  One could use  “WinPretchView” to study these prefetch files

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguJWhh_j-6P20tCgedQ5QxKJg5_VzXiHk9awaPxMnvb9KWztnYcCAq4PT6Gp0jmRNZSSPypsi3mcPDubyifx788JUd4CVP-eKjas9Tuy8Pcxn05-esjgjsJiPs9CJoypd9OLcrbmPtpN98/s1600/2018-11-14_12h50_08.jpg

5.  Restart the computer
Check if the problem has been resolved;  if not,  repeat step 3 and step 4
Look out for processes that have suspicious long names with all the unknown machine language especially those files found in the folder called “\[username]\AppData\Local\”;






Q&A

Description
Action
Remarks
1.  PC refused to let me rename the file or delete the Registry Keys
Two Ways
1. Tradition way
Safe boot Windows;  hopefully,  the file or Registry keys will not be used and can be deleted

2.  Complicated way
Take control of the file or the registry key.  Here is how to take control of the files

It is locked by Windows or the virus when it is using or making attempts to use the file.
2.  The problem still around
1.  Try other methods;
Viruses come in many forms;  not necessary all are using the same method to protect themselves.

After mastering the use of Task Manager and ProcMon,  one should have more confident to find other ways to tackle  the other viruses.

-------------------------------------------------------------------------------------------------------------------
 Other similar articles

tinyurl : https://tinyurl.com/y9nu2d77

1 comment:

  1. How To Disable Superfetch Windows 10 Disk Usage 100% https://youtu.be/_TyjkJc_jFA

    ReplyDelete

iPhone and iPad: How to Create a Short Cut in Home Screen to Clear Cache & History

23 November 2024 What are Cache and History? Cache and browser history store information about websites you've visited.  The C ache s to...