Solved

How to quickly delete large chunks of unused Registry entries from Windows Terminal Server 2003 R2 ?

Posted on 2014-11-30
2
472 Views
Last Modified: 2014-12-02
Hi People,

I got very annoying problem where people having very long wait to be able to login to the old legacy Windows Server 2003 R2 terminal server (which was converted from physical to Virtual).

under normal circumstances, it took more than 30 minutes to login to the point that I must reboot the server daily overnight to kick off some user old session.

My culprit based on this article: http://itinfrasol.blogspot.com.au/2012/06/users-are-facing-delay-in-logging-in-to.html

is to delete the following registry entries:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software\Hewlett-Packard
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\RefHive\Hewlett-Packard
HKU\.DEFAULT\Software\Hewlett-Packard

Open in new window


but somehow there is one very big registry entries which takes about 1.5 GB+ when exported as .REG file before i remove the registry.

so my question is that how can I safely and quickly delete the following old printers registry entry:

HKU\.DEFAULT\Software\SHARP

which is always crashing the regedit software when I tried to delete the entryy from the top location even from Safe mode ?
going manually one by one to each subkeys is way to ridiculous and time consuming.

Any help and suggestion to delete the large excessive registry entries would be greatly appreciated.
0
Comment
2 Comments
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40473621
How often do you need to remove this registry entry?

You can try exporting the key to a .reg file then modify it so it removes the key when you double click on it.

e.g. if I export the [HKEY_USERS\.DEFAULT\Software\Sharp] from the registry to the Desktop, I would see this when I edit it in Notepad:
Windows Registry Editor Version 5.00

[HKEY_USERS\.DEFAULT\Software\Sharp]
"Test"="Value"

Open in new window


Now just modify Line 3 and add a minus symbol between the open square bracket and the word HKEY, with the resulting line looking like this:
[-HKEY_USERS\.DEFAULT\Software\Sharp]

Open in new window

Save the file then double click on it, it will automatically remove the SHARP key for you without having to open the Registry Editor.
0
 
LVL 7

Author Closing Comment

by:Senior IT System Engineer
ID: 40475641
Thanks !
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question