Author Topic: "failed with: The handle is invalid." Errors. How to fix?  (Read 9262 times)

0 Members and 1 Guest are viewing this topic.

Offline AnyIdeas008

  • Newbie
  • *
  • Join Date: Sep 2021
  • Posts: 3
  • Karma: 0
    • View Profile
"failed with: The handle is invalid." Errors. How to fix?
« on: September 14, 2021, 11:39:25 am »
I have been attempting to restore default permissions, yet every time I get the error "failed with: The handle is invalid." for the same 4 things.  Any idea why or how to fix this sort of thing?  I have included the error log.  Thanks.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: "failed with: The handle is invalid." Errors. How to fix?
« Reply #1 on: September 14, 2021, 12:16:37 pm »
Do you mean the entry is invalid ?

That denotes there is a Windows Update available.

Check for updates and when it has installed, try Windows Repair again.

I hope this is a genuine query as I've identified you as a Spammer.


Offline AnyIdeas008

  • Newbie
  • *
  • Join Date: Sep 2021
  • Posts: 3
  • Karma: 0
    • View Profile
Re: "failed with: The handle is invalid." Errors. How to fix?
« Reply #2 on: September 14, 2021, 12:34:04 pm »
I am on vpn, which could explain why this IP could be identified as "spammer"?  This is a genuine query.  When I do reset default perms, I get these errors.  I do not know if they are invalid entries or what.

ERROR: Writing SD to <machine\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Perflib\CurrentLanguage> failed with: The handle is invalid.
ERROR: Writing SD to <machine\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Perflib\009> failed with: The handle is invalid.
ERROR: Writing SD to <machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\CurrentLanguage> failed with: The handle is invalid.
ERROR: Writing SD to <machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009> failed with: The handle is invalid.

I will run windows update though and attempt the repairs again.  Thanks.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: "failed with: The handle is invalid." Errors. How to fix?
« Reply #3 on: September 14, 2021, 01:24:48 pm »
Have you had a recent Windows Update that may not have installed correctly ?

Can you go into Device Manager to check for yellow alerts against any of the devices ?

Can you open a Powershell (Admin) and enter these cmds -

dism /online /cleanup-image /startcomponentcleanup

dism /online /cleanup-image /restorehealth

sfc /scannow

exit (to close command window)

Let me know if the sfc /scannow finds any files to repair.

Try Windows Repair again.

BTW - The spam report was dated for today at 18.39.
« Last Edit: September 14, 2021, 01:29:02 pm by Boggin, Reason: Added info »

Offline AnyIdeas008

  • Newbie
  • *
  • Join Date: Sep 2021
  • Posts: 3
  • Karma: 0
    • View Profile
Re: "failed with: The handle is invalid." Errors. How to fix?
« Reply #4 on: September 14, 2021, 04:01:38 pm »
I have performed all those tasks yet the problems remain.  I have found at least 2 other posts on here with the exact same issue, although I am unsure how they solved them.  I have no clue what to do.  https://www.tweaking.com/forums/index.php/topic,5838.msg43366.html#msg43366
https://www.tweaking.com/forums/index.php/topic,6812.msg49002.html#msg49002

As for the spam thing.  This is my first time using this forum, and the only thread I have made is this one right here. 

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: "failed with: The handle is invalid." Errors. How to fix?
« Reply #5 on: September 15, 2021, 04:51:22 am »
As you can see in the first link, jpm said they were normal and can be ignored.

jpm is an admin of the forum.

Offline JMClemens

  • Newbie
  • *
  • Join Date: Sep 2021
  • Posts: 1
  • Karma: 0
    • View Profile
Re: "failed with: The handle is invalid." Errors. How to fix?
« Reply #6 on: September 23, 2021, 11:01:56 am »
I have the same problem.  I read on another post that the four can be ignored?  I'm going with that for now unless I hear different.