When you can't open JPG files in Photos app and get - Invalid value for registry error in Windows 10, you can try this solution and fix it.

Sometimes when you update your apps in Windows, the registry entries of previous version may remain intact. In some cases these registry entries remained intact may create problem for you.

Recently, we came around one such problem in Windows 10. Actually, when we tried to open images having JPG format with the Photos app, we were treated with following error:

Invalid value for registry

FIX - Invalid Value For Registry Error In Windows 10

We were keep getting this error for JPG files only but we believe that you may face this issue with other file formats plus other apps as well. After investigating, we concluded that the registry entry of previous version of affected app is causing this problem. Hence if you delete the older version entries, the problem can be solved very easily.

Here is the how-to part:

FIX : Invalid Value For Registry Error In Windows 10

Registry Disclaimer: The further steps will involve registry manipulation. Making mistakes while manipulating registry could affect your system adversely. So be careful while editing registry entries and create a System Restore point first.

1. Press W8K + R and put regedit in Run dialog box to open Registry Editor (if you’re not familiar with Registry Editor, then click here). Click OK.

Windows 10 Registry Editor

2. In the left pane of Registry Editor, navigate to following registry key:

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Families\Microsoft.Windows.Photos_8wekyb3d8bbwe

FIX - Invalid Value For Registry Error In Windows 10

3. At this registry location, you first need to take ownership of Microsoft.Windows.Photos_8wekyb3d8bbwe registry key using RegOwnerShipEx or this manual method. After taking ownership, expand Microsoft.Windows.Photos_8wekyb3d8bbwe key and examine sub-keys next to it. There should 50% outdated version keys and 50% keys are for newer/existing version. So all you need to do is to spot outdated version registry keys which should be equal to number of keys for newer version. For example, if you have 2 keys, one must be for newer version (higher version number) and another should be for outdated version (lower version number). Similar analogy can be applied if you’ve 4, 6, 8 and so on registry keys in total.

4. Once you spotted all outdated version keys, right click on them one by one and select Delete. After deleting lower version number entries, you can close Registry Editor and restart your machine, the problem should be fixed by that.

Hope this helps!


  • Dear Kapil, Just wanted to say a huge thank you to you for taking the time to post the solution to this issue. I’m sure this has effected many new Windows 10 users installations as this seems to be quite a common issue though few seem to have the solution. It’s easy to see what the issue is now with the second earlier Reg key that was not removed by the MS Photo app update.

    Huge thanks again!!

    Kind Regards,

    London, UK.

  • Kapil Arya

    ^^ Glad we could help :)

  • When I click on Google I get the message “Invalid value for registry.” Also, when I click on photos in Pictures File, they won’t open and I get the same message. I recently downloaded Windows 10. I’ve never had these problems until now. HELP!

  • Kapil Arya

    ^^ Have you tried above mentioned steps?

  • WOW! After 6 hours of struggling with starting Windows Store app, this solved the issue!

  • Kapil Arya

    ^^ Cool :)

  • Thank you so much – I spent hours looking at this the other day, following all sorts of crazy procedures which did nothing… this has fixed it in five minutes. Genius! Thank you…

  • Kapil Arya

    ^^ Thanks for your awesome feedback!

  • Thanks a lot, finally managed to fix the issue I had with Groove Music by removing outdated keys of ZuneMusic!! ;)

  • Kapil Arya

    ^^ Awesome :)

  • Cannot delete outdated versions. lol.

  • Kapil Arya

    ^^ Please take the ownership of the key first then delete: https://www.kapilarya.com/manually-take-ownership-windows-8

  • i have an problem bt not like that when i star my laptop all icons on dekstop are visible and suddenly chrome,adobe,vlc,all icons are get invisible and i didn open the videos chrome
    it give me msg INVALID VALUE FOR REGISTRY plz help me

  • Kapil Arya

    ^^ Try third DISM command mentioned here: https://www.kapilarya.com/fix-do-inbox-corruption-repair-using-dism-in-windows-8

  • cant delete that lower version numbers..please help..

  • Kapil Arya

    ^^ Refer previous comments.

  • Thank you! Thank you! Thank you!
    I had the issue with Microsoft Edge showing the same error, and fixed it in the same way by deleting the older key underneath Microsoft.MicrosoftEdge_8wekyb(…). For some reason that one was set read-only so I had first to take ownership, set myself to have full access and then delete it. Finally I can use edge again.

  • Kapil Arya

    ^^ Thanks for your valuable feedback ☺️

  • The guide says I should have an even number of keys, but I have three keys. I’m unsure if I should delete the two older ones or if there might be a different problem.

  • Kapil Arya

    ^^ Create a System Restore point. Then keep the latest/newer version entry and delete outdated 2 entries.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    Recent Comments

    • Prabhat Jain : Still the same issue. Is there a way to determine which policy/setting...

      5 hours ago

    • ani : I dont see the Bluetooth Device RFCOMM option in the microsoft list...

      21 hours ago

    • Kapil Arya : ^^ Thanks for adding it!...

      21 hours ago

    • svs : In some website isnt mention about the non meter connection is require...

      1 day ago

    • Kapil Arya : ^^ You need to correctly identify the drive on which Windows is instal...

      2 days ago