Categories
Keyboard Shortcuts Laptop Microsoft Softwares

Remove unwanted entries from the Right Click menu

A context menu is the little menu which pops up when you right click on files, folders or icons. e.g., right click on a desktop icon and if you have Anti-virus installed it will have ‘Scan with … Anti-virus’ as a choice.

 

The first step to getting rid of these entries
involves opening the programs in question and looking
through their
options to see if you can unselect any ‘integration’ or
‘context
menu’ options they have. If that fails, and the program
absolutely
insists on being an intimate part of your Windows, you can
edit
the registry as follows:

1. Before we make any changes in
the registry,
and even though you should have a full System Restore
and/or Registry
backup already, back up the registry keys which will be
affected
in this tweak:

[HKEY_CLASSES_ROOT\*]
[HKEY_CLASSES_ROOT\Directory]
[HKEY_CLASSES_ROOT\Drive]
[HKEY_CLASSES_ROOT\Folder]

2. Do this by opening Regedit,
find the relevant
sub-folder, right-click on it and select Export. Make sure
the “Selected
Branch” option is selected under
Export Range, then enter a
descriptive name
and save it somewhere safe. Do that for each one of the
four sub-folders
above. If anything goes wrong, instead of firing up System
Restore
or restoring the entire registry you can double-click on
these files
and everything is quickly fixed.

3. Now, go to the following
sub-folders and
delete references to programs you know have set up
offending context
menu entries. For example, in my system under
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers]
I found the key Symantec.Norton.Antivirus.IEContextMenu
which
I deleted. The first volley in the war against the
invasion of my
menus by Symantec. Here are all the places you should look
in:

[HKEY_CLASSES_ROOT\*\OpenWithList]
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\Directory\shell]
[HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\Drive\shell]
[HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\Folder\shell]
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers]
4. As you’re removing all the unwanted program
entries, you should see the effects immediately – no
reboot required.
Remove an entry from the
[HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers]
subfolder for example and open Explorer, then right click
on your
hard drive name and you should see the corresponding
program you
removed in the registry is gone from the context menu too.
When
you’re done, you should see the default context menus
devoid of
the added rubbish.

If any of the programs whose context menu
entries you’ve removed start displaying strange behaviour,
restore
the registry entries you backed up previously, or just
reinstall
the program. As long as you only delete program entries
and none
of the default Windows entries, all the normal context
menu items
will still remain.

'Coz sharing is caring
Categories
Laptop Microsoft

What is svchost.exe

I always wonder why on earth there are nearly a ton processes running with the name svchost.exe. What are they?

What Is It?

According to Microsoft: “svchost.exe(Generic Host Process for Win32 Services) is a generic host process name for services that run from dynamic-link libraries”. It cannot be stopped or restarted manually. This process manages 32-bit DLLs and other services. At startup, Svchost.exe checks the services portion of the registry and constructs a list of services that it needs to load. Under normal conditions, multiple instances of Svchost.exe will be running simultaneously.

Microsoft started moving all of the functionality from internal Windows services into .dll files instead of .exe files. From a programming perspective this makes more sense for reusability… but the problem is that you can’t launch a .dll file directly from Windows, it has to be loaded up from a running executable (.exe). Thus the svchost.exe process was born.

Svchost.exe groups are identified in the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Svchost

Why there are so many svchost.exes Running?

If you’ve ever taken a look at the Services section in control panel you might notice that there are a Lot of services required by Windows. If every single service ran under a single svchost.exe instance, a failure in one might bring down all of Windows… so they are separated out.

Those services are organized into logical groups, and then a single svchost.exe instance is created for each group. For instance, one svchost.exe instance runs the 3 services related to the firewall. Another svchost.exe instance might run all the services related to the user interface, and so on.

What Can I Do About It?

You can trim down unneeded services by disabling or stopping the services that don’t absolutely need to be running. Additionally, if you are noticing very heavy CPU usage on a single svchost.exe instance you can restart the services running under that instance.

The biggest problem is identifying what services are being run on a particular svchost.exe instance… we’ll cover that below.

If you are curious what we’re talking about, just open up Task Manager and check the “Show processes from all users” box:

Checking From the Command Line (Vista or XP Pro)

If you want to see what services are being hosted by a particular svchost.exe instance, you can use the tasklist command from the command prompt in order to see the list of services.

   tasklist /SVC

The problem with using the command line method is that you don’t necessarily know what these cryptic names refer to.

Checking in Task Manager in Vista

You can right-click on a particular svchost.exe process, and then choose the “Go to Service” option.

This will flip over to the Services tab, where the services running under that svchost.exe process will be selected:

The great thing about doing it this way is that you can see the real name under the Description column, so you can choose to disable the service if you don’t want it running.

Using Process Explorer in Vista or XP

You can use the excellent Process Explorer utility from Microsoft/Sysinternals to see what services are running as a part of a svchost.exe process.

Hovering your mouse over one of the processes will show you a popup list of all the services:

Or you can double-click on a svchost.exe instance and select the Services tab, where you can choose to stop one of the services if you choose.

Disabling Services

Open up Services from the administrative tools section of Control Panel, or type services.msc into the start menu search or run box.

Find the service in the list that you’d like to disable, and either double-click on it or right-click and choose Properties.

Change the Startup Type to Disabled, and then click the Stop button to immediately stop it.

You could also use the command prompt to disable the service if you choose. In this command “trkwks” is the Service name from the above dialog, but if you go back to the tasklist command at the beginning of this article you’ll notice you can find it there as well.

   sc config trkwks start= disabled

'Coz sharing is caring