Solved

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

Posted on 2014-11-30
2
438 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

747 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now