Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-11-30
2
Medium Priority
?
612 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 2000 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 8

Author Closing Comment

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
August and September have been big months for VMware—from VMworld last month to our new Course of the Month in VMware Professional - Data Center Virtualization. We reached out to Andrew Hancock, resident VMware vExpert, to have a more in-depth discu…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

885 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