Solved

Delete Registry Key using .reg file

Posted on 2012-03-20
4
760 Views
Last Modified: 2012-06-21
We are having some issues with the svchost.exe using 100% CPU.(windows XP)

After some research we have tested deleting HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\SvcHost\NetworkService and it fixes the problem. We are trying to create a .reg file to delete this key and it just doesn't seem to work. Here is the .reg file contents.

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost\NetworkService]

Any suggestions?

Thanks
0
Comment
Question by:nmmcfk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 37744296
run this in a bat or logon script:

reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost\NetworkService" /f
0
 
LVL 10

Expert Comment

by:c_a_n_o_n
ID: 37744377
Interestingly, I have tested your regedit script and works fine on this Windows 7 as it does delete the registry value NetworkService.
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost\NetworkService]

Open in new window

0
 

Accepted Solution

by:
nmmcfk earned 0 total points
ID: 37747060
canon,

Strange.....for some reason we had to write it like this for it to work

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost]
"NetworkService"=-

We will not be using this as we found in our test computers to cause some problems.

Thanks for the response
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost]
"NetworkService"=-

Open in new window

0
 

Author Closing Comment

by:nmmcfk
ID: 37913805
We had to write it this way for it to work. We did more testing here and also found it to cause some problems.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
outlook 2007 + exchange 5 40
I/E toolbars 7 45
VPN does not work after installing Hyper-V in Win 8.1 PRO 8 132
Microsoft License Verification Process?? 12 1,052
My purpose is to describe the basic concepts of virtual memory as implemented in a modern Windows-based operating system. I will also describe the problems inherent in older systems and how virtual memory solves them. The dark ages - before virtu…
This article covers how to install the Microsoft Windows Operating System (OS). What is covered in this article:  > Different Versions and Editions of the Windows OS  > Upgrading versus Fresh Installation of the OS           - Steps to take pr…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

732 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