Tweaking.com Support Forums

Main Forum => Tweaking.com Support & Help => Topic started by: AnyIdeas008 on September 14, 2021, 11:39:25 am

Title: "failed with: The handle is invalid." Errors. How to fix?
Post by: AnyIdeas008 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.
Title: Re: "failed with: The handle is invalid." Errors. How to fix?
Post by: Boggin 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.

Title: Re: "failed with: The handle is invalid." Errors. How to fix?
Post by: AnyIdeas008 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.
Title: Re: "failed with: The handle is invalid." Errors. How to fix?
Post by: Boggin 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.
Title: Re: "failed with: The handle is invalid." Errors. How to fix?
Post by: AnyIdeas008 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. 
Title: Re: "failed with: The handle is invalid." Errors. How to fix?
Post by: Boggin 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.
Title: Re: "failed with: The handle is invalid." Errors. How to fix?
Post by: JMClemens 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.