The “Class not registered” error in Windows 11’s Photos app usually appears when the app’s registry entries or its underlying UWP components are corrupted, often after a Windows update or a third-party cleanup tool. The top fix is to reset the Photos app via Settings > Apps > Installed apps, which rebuilds its registration without affecting your photo files. This solves the issue in most cases and takes less than a minute.
What to Look For
When choosing a fix, consider these criteria:
- Non-destructive: The fix should not delete your photos, settings, or other personal data.
- Ease of execution: Steps should be simple enough for a non-technical user to follow without command-line expertise.
- Persistence: A good fix prevents the error from recurring after a reboot or future updates.
- Compatibility: The method should work on current Windows 11 versions (21H2 through 24H2) without requiring insider builds.
- Time to implement: Faster fixes are better, but a more thorough repair may be worth the extra minutes.
1. Reset the Photos App via Settings
This is the first thing to try. Open Settings (Win + I) → Apps → Installed apps. Find Microsoft Photos (or “Photos”), click the three-dot menu next to it, and select Advanced options. Scroll down and click Reset. Confirm when prompted. This clears the app’s cache and re-registers it with Windows.
Strengths: Non-destructive to your photo files; takes under a minute; fixes most registry corruption. Trade-offs: Resets your Photos app settings (like dark mode or slideshow preferences). Best for: Users who want the quickest, safest fix without touching the command line.
2. Re-register the Photos App with PowerShell
If resetting doesn’t work, re-registering the UWP app can repair its registration. Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin). Run this command:
Get-AppxPackage -Name Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Wait for it to finish, then restart your PC.
Strengths: Directly fixes broken app registration; works when Settings reset fails. Trade-offs: Requires admin rights and a basic comfort with typing commands; may take a few minutes. Best for: Users comfortable with PowerShell who want a targeted repair.
3. Repair the Photos App via Settings
Similar to reset, but less aggressive. Go to Settings → Apps → Installed apps, find Photos, click the three-dot menu, and select Advanced options. Click Repair (not Reset). This attempts to fix issues without clearing app data.
Strengths: Preserves your Photos app settings and preferences; quick. Trade-offs: May not fix deeper registry corruption; if it fails, you’ll need to reset or re-register. Best for: Users who want to try a gentler fix before resetting.
4. Run the Windows Store Apps Troubleshooter
Windows 11 includes a built-in troubleshooter for Store apps. Go to Settings → System → Troubleshoot → Other troubleshooters. Find Windows Store Apps and click Run. Follow the prompts; it will detect and fix common issues with UWP apps like Photos.
Strengths: Automated; no technical knowledge needed; may fix other app issues too. Trade-offs: Can be slow; sometimes doesn’t find the specific problem. Best for: Users who prefer a guided, hands-off approach.
5. Reinstall the Photos App
If nothing else works, uninstall and reinstall Photos. In PowerShell (admin), run:
Get-AppxPackage -Name Microsoft.Windows.Photos | Remove-AppxPackage
Then reinstall from the Microsoft Store (search for “Photos” and click Install). This gives you a fresh copy of the app.
Strengths: Completely removes any corrupted files; guaranteed to fix the registration error. Trade-offs: Loses any custom settings; requires a Microsoft account and internet access; takes longer. Best for: Users who have tried other fixes and still see the error.
6. Set Photos as Default and Check File Associations
Sometimes the error appears when Windows tries to open a photo but the default handler is misconfigured. Go to Settings → Apps → Default apps. Search for “Photos” and click it. Ensure it is set as default for .jpg, .png, .jpeg, and other image types. If not, click each and select Photos.
Strengths: Fixes the issue if it’s a file association problem; no data loss. Trade-offs: Only works if the error is association-related; won’t help if the app itself is broken. Best for: Users who only see the error when double-clicking images, not when opening Photos directly.
How to Choose
Start with the least invasive fix: the Repair option in Settings. If that doesn’t work, move to Reset. For most users, resetting resolves the error. If you’re comfortable with PowerShell, the re-register command is a strong second step. The troubleshooter is a good middle ground for non-technical users. Reinstalling is the nuclear option but guarantees a fix. Consider your comfort level with command-line tools and how much time you want to spend. All these methods are free; the only “cost” is the few minutes each takes. If you’re in a hurry, the Reset option is the fastest and most reliable.
Frequently Asked Questions
Will resetting Photos delete my pictures?
No. Resetting the app clears its cache and settings, but your actual photo files remain untouched in your folders.
Why does the error appear only after a Windows update?
Windows updates can sometimes corrupt the registration of UWP apps like Photos. Re-registering or resetting the app usually fixes it.
Can I use a third-party photo viewer instead?
Yes, but the error is specific to the Photos app. If you set another app as default, you can bypass the issue, but it’s better to fix the underlying problem.
Do I need admin rights to run PowerShell commands?
Yes, re-registering or removing the app requires an elevated PowerShell session. Right-click Start and choose “Terminal (Admin)”.
What if the error occurs when opening photos from email or browser?
That’s usually a file association issue. Check the default apps settings and ensure Photos is set for image types.
Will reinstalling Photos remove my edits or albums?
If you have edited photos using the Photos app, those edits are saved as separate files (in the same folder). Reinstalling won’t delete them, but any in-app albums or collections may be lost.
Bottom Line
For most users, the Reset option in Settings is the best first fix—it’s quick, safe, and resolves the majority of “Class not registered” errors. If that fails, the PowerShell re-register command is the most effective technical fix. Only resort to reinstalling if all else fails. These steps are free, non-destructive, and should get your Photos app working again in minutes.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Android Camera for 7 Office Tasks: Step-by-Step
- Pair Phone to Pioneer Stereo After Bluetooth Reset
- Fix Windows Not Saving Remote Desktop Credentials
- Fix Error 0x8007025d in Windows 10
- Fix Alexa App Stuck on Setup
- Essential Tips for macOS Users Switching to Windows