Corrupted registry key

  • Thread starter Thread starter Markus Renschler
  • Start date Start date
M

Markus Renschler

Hi,

a registry key on my Windows 2000 Server seems to be corrputed:
It is not possible to delete the key, I am logged in as Administrator
and I am getting an error when I try to modify the access rights; it
is also not possible to take the ownership.

Is there any tool which is able to delete this key or to fix my
registry?
What can I try to get rid of this key?

Best Regards,

Markus
 
The corrupted key is HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Perflib\007.

If I want to change the owner I get "Unable to set new
owner on 007 - The handle is invalid.".

If I try to change permissions I get "Unable to save
permission changes on 007 - The system cannot find the
file specified.".

If I try to delete it the system says "... the key or one
of its subkeys is not accessible."

Any idea?

Markus

-----Original Message-----
What key and what is the error message you receive?

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Markus Renschler said:
Hi,

a registry key on my Windows 2000 Server seems to be corrputed:
It is not possible to delete the key, I am logged in as Administrator
and I am getting an error when I try to modify the access rights; it
is also not possible to take the ownership.

Is there any tool which is able to delete this key or to fix my
registry?
What can I try to get rid of this key?

Best Regards,

Markus


.
 
The corrupted key is HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Perflib\007.

If I want to change the owner I get "Unable to set new
owner on 007 - The handle is invalid.".

If I try to change permissions I get "Unable to save
permission changes on 007 - The system cannot find the
file specified.".

If I try to delete it the system says "... the key or one
of its subkeys is not accessible."

Any idea?

Markus

-----Original Message-----
What key and what is the error message you receive?

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Markus Renschler said:
Hi,

a registry key on my Windows 2000 Server seems to be corrputed:
It is not possible to delete the key, I am logged in as Administrator
and I am getting an error when I try to modify the access rights; it
is also not possible to take the ownership.

Is there any tool which is able to delete this key or to fix my
registry?
What can I try to get rid of this key?

Best Regards,

Markus


.
 
Hi Dave,

I do not want to delete a performance counter. I want to get rid of this
corrupted registry key and restore it from a machine on which I have no
problem with "007". As I mentioned before it is not possible to delete
it by regedit. There is a second key ("009") which behaves quite normal
(like on all other machines).

The actual problem is that my backup agent says that it is not able to
read this registry key though this is possible on all other machines.

What can I do to fix the machine's registry?

Markus
 
Hi Dave,

I do not want to delete a performance counter. I want to get rid of this
corrupted registry key and restore it from a machine on which I have no
problem with "007". As I mentioned before it is not possible to delete
it by regedit. There is a second key ("009") which behaves quite normal
(like on all other machines).

The actual problem is that my backup agent says that it is not able to
read this registry key though this is possible on all other machines.

What can I do to fix the machine's registry?

Markus
 
I'm not sure if you tried, but try running regedt32.exe and take ownership,
then delete. Failing that try exporting the key thru regedt.exe and then
edit the *.reg file putting a minus sign in front of the key name and
execute it. An example;

If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

Failing that try reg.exe from the resource kit.
 
I'm not sure if you tried, but try running regedt32.exe and take ownership,
then delete. Failing that try exporting the key thru regedt.exe and then
edit the *.reg file putting a minus sign in front of the key name and
execute it. An example;

If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

Failing that try reg.exe from the resource kit.
 
Thanks fou these hints. Unfortunately both approaches did not work.

I started the modified reg file and a message box told me that the
changes are complete but the key was still there.

I started reg /DELETE HKLM\my\key
and got the error message:
"Error: The operation could not be completed."
I'm not sure if you tried, but try running regedt32.exe and take ownership,
then delete.

I tried this before but it resulted in an error message:
"Unable to set new owner ... handle is invalid"

Any additional hints would be greatly appreciated.

Thanks

Markus
 
Thanks fou these hints. Unfortunately both approaches did not work.

I started the modified reg file and a message box told me that the
changes are complete but the key was still there.

I started reg /DELETE HKLM\my\key
and got the error message:
"Error: The operation could not be completed."
I'm not sure if you tried, but try running regedt32.exe and take ownership,
then delete.

I tried this before but it resulted in an error message:
"Unable to set new owner ... handle is invalid"

Any additional hints would be greatly appreciated.

Thanks

Markus
 
The last suggestion would be to delete the key from a parallel install. Run
regedt32, then from the Local Machine Hive, choose Registry|Load Hive. Then
navigate to the location of the hive you want to edit/read. Give it some
tempname (doesn't matter what). Then when your done, move the cursor back to
tempname, then Registry|Unload Hive, Registry|Exit
 
The last suggestion would be to delete the key from a parallel install. Run
regedt32, then from the Local Machine Hive, choose Registry|Load Hive. Then
navigate to the location of the hive you want to edit/read. Give it some
tempname (doesn't matter what). Then when your done, move the cursor back to
tempname, then Registry|Unload Hive, Registry|Exit
 
Hello Markus,

I'd like to ask you if you found a solution for the Perflib/007
corrupted registry key.
I've got the same problem on four W2K servers after
several patch installation.
Just in case it helps.
The following patches have been installed:

MS03-023_Q823559
MS03-024_Q817606
MS03-034_KB824105
MS03-041_KB823182
MS03-042_KB826232
MS03-043_KB828035
MS03-044_KB825119
MS03-045_KB824141
MS03-049_KB828749

By the way we installed the above mentioned patches on about 100
servers without any problems.

I'd really appreciate if you could help me out.

Thanks in advace
Marc


Marc-Woerner
 
Hello Markus,

I'd like to ask you if you found a solution for the Perflib/007
corrupted registry key.
I've got the same problem on four W2K servers after
several patch installation.
Just in case it helps.
The following patches have been installed:

MS03-023_Q823559
MS03-024_Q817606
MS03-034_KB824105
MS03-041_KB823182
MS03-042_KB826232
MS03-043_KB828035
MS03-044_KB825119
MS03-045_KB824141
MS03-049_KB828749

By the way we installed the above mentioned patches on about 100
servers without any problems.

I'd really appreciate if you could help me out.

Thanks in advace
Marc


Marc-Woerner
 
Hi Marc,

unfortunately I have not been able to solve the problem, yet. Let's keep
each other informed as soon as one of us is able to solve it ;-)

Markus
 
Hi Marc,

unfortunately I have not been able to solve the problem, yet. Let's keep
each other informed as soon as one of us is able to solve it ;-)

Markus
 
I have noticed that my Configsafe utility, that keeps
backing up the registry and selected system files every
week, has been regularly issuing the following error
message for a very long time:

Error accessing registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Perflib\00D,
creating snapshot, function RegQueryInfoKey returned a
2.

I inquired with Configsafe and got this reply:

Error 2 is key not found. There is normally filtering for
the perflib key, but that filter may miss the 00D entry.
I'm not sure why the OS is claiming the other keys don't
exist. On Win2K those error messages are informational and
will not effect the ability to perform a restore.

I have decided to leave it at that, and I suppose there
should be no harm if you, too, ignore your backup agent
complaints on this obscure registry key.
 
Back
Top