> How to > Data Recovery > Restore JPG/JPEG/PDF with Invalid Value for Registry Error

Restore JPG/JPEG/PDF with Invalid Value for Registry Error

Updated on Dec 29, 2018 by Jean to Data Recovery


When you are unable to open and view JPG/JPEG/PDF images in photo app and get error invalid value for registry, here are the solutions that fix invalid value for registry in Windows 10/8/7 and restore the image files.

Error "Invalid Value for Registry" When Open .jpg/.jpeg/.png/.gif/.pdf on Windows 10

"I've recently upgraded my computer from Windows 7 to Windows 10. When I try to open any of the JPEG photos in a photo app, I got an error message 'Invalid Value for Registry'. Now I'm prevented from opening and viewing any of the image files because of the invalid value for a registry. Please advise me how to fix this and restore photos with such an error."

fix invalid value for registry

As the error suggests, the problem is with the registry. To be able to open and view photos under this circumstance, you need to fix "Invalid value for Registry" error badly. 

Follow the below two steps to see how to fix Invalid Value of Registry error and restore lost image files on your own now:

To ensure that you don't lose all your photos or PNG/JPG etc. images, please refer to the first step and use professional data recovery program to restore infected photos and image files before performing the fix.

1. Restore Photos/Images with "Invalid Value for Registry" error

When "Invalid Value for Registry" error occurs, you can not open, view and edit the photos anymore until you fix the problem alright. However, registry problem is serious and it can easily lead to photos corruption, damage, and loss. At this moment, get hurry and download EaseUS Data Recovery Wizard, a piece of highly praised file recovery software to restore all photos from your computer to an external storage device, to keep them safe.


- Launch EaseUS Data Recovery Wizard.
- Choose the Drive X: where you wish to perform the photo recovery.
- Click the Scan button.

select the hard drive and click scan


- Scan data all over the hard drive.
- Check "Deleted files" result especially if the photos were deleted.

scan all photos on the hard drive


- Click "Filter" and choose "Graphics" to display only image files.
- Choose the targeted photos and click the Recover button.

select pictures and recover

Tip: Search more under "Extra Files" if you didn't find the photos by following the above steps.

2. Fix "Invalid Value for Registry" Error in Windows 10/8/7

Now you can feel free to fix the registry problem in Windows 10 with the solution here, which is also applicable in Windows 7 and 8. 

1. Press Windows + R and put regedit in the Run dialog box to open Registry Editor. 

Fix invalid value for registry.

2. Click Yes to run Registry Editor. 

Run Registry Editor to fix invalid value error.

3. 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

Locate and find relative registry key that cause invalid value for registry error.

4. At this registry location, you first need to take ownership of Microsoft.Windows:

  • Select Administrator (Desktop Name \ Administrator) and click Advanced.

Take ownership of registry key to fix invalid value error.

  • Click Change next to SYSTEM.

Fix invalid registry error.

  • Enter your User Name and click Check Names to get the right form and click OK to confirm.

Fix Invalid Value for Registry error.

  • Check to Replace owner on the sub-containers and objects and select Apply. Then click OK to keep all changes.

Keep all changes to remove invalid value error.

  • Finally, choose the User Name (Your Desktop Name \ Administrator) option and check to Allow boxes for Full Control and Read, click Apply. And select OK to keep all changes.

Fix and remove invalid value registry error from computer.

5. Once you spotted all outdated version keys, right click on them one by one and select Delete. 

(Note: The last step - 5 will remove some of your keys in Registry and cause some file loss or program failure issue. Please to be very careful and select the right keys to delete.)

After deleting lower version number entries, you can close Registry Editor and restart your machine, the "Invalid Value for Registry" problem should be fixed by that.