How to Fix File System Error 2147219196 When Opening Windows Apps

When you try to open Windows apps like Photos or Calculator, they may not launch and might show the File System Error (-2147219196) without more information. This error usually means there’s a problem with the system files or registry.

It’s often caused by corrupted or missing files, especially after a failed Windows update or software conflict. Other causes can be outdated hardware drivers or permissions issues.

In this article, we will discuss different ways to solve this error.

1. Uninstall and Reinstall the Windows Photo App

Removing and reinstalling the Windows Photos app fixes problems like corrupted files or settings that can cause File System Error (-2147219196). This process resets the app, replacing faulty parts with new ones, to make sure it works correctly.

  1. Press the Windows key and type PowerShell in the search bar.
  2. Right-click on Windows PowerShell and select Run as administrator.

  1. Enter Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage and press Enter.



  1. Click here to download the PsTools package. Click the Download PsTools link on the webpage.

  1. Right-click the downloaded zip file and select Extract files…. Choose an appropriate location and extract the files.
  2. Press the Windows key again, type Command Prompt, and right-click it to select Run as administrator.

  1. Type <PsExec location address>PsExec.exe -sid c:\windows\system32\cmd.exe and press Enter. Note: Replace <PsExec location address> with the path where you extracted PsTools, e.g., E:\PsTools\PsExec.exe -sid c:\windows\system32\cmd.exe.

  1. Click Agree when prompted.

  1. A new Command Prompt will open. Type rd /s ‘C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2017.37071.16410.0_x64__8wekyb3d8bbwe’ and press Enter. Note: The version number for the Photos App may vary, check for the exact folder name as follows:
  1. Press Windows key + R to open the Run dialog.
  2. Type the folder path and let it auto-complete to the correct version number.
  3. Copy the completed path from the Run dialog and paste it into Command Prompt.
  4. Note: Refer to the folder name in step 4 above for guidance.
  1. Press Y when the system asks for confirmation.

After completing these steps, you should be all set. Download the Photos App from the Microsoft Store and see if the issue has been resolved.

2. Boot in Clean Boot

Eliminating software conflicts is crucial to fixing File System Error (-2147219196). A clean boot helps determine if third-party apps or services are causing problems by starting Windows with only essential services and drivers. This setup can pinpoint the issue and guide further troubleshooting.

  1. Log in to the computer with an Administrator account.
  2. Press ‘Windows + R’ to open the ‘RUN’ prompt.
    Opening the Run Prompt
  3. Type ‘msconfig’ and press ‘Enter’.
    Running MSCONFIG
  4. Click on the ‘Services’ tab and uncheck the ‘Hide all Microsoft Services’ checkbox.
    Clicking on the ‘Services’ tab and unchecking the ‘Hide all Microsoft Services’ option
  5. Select ‘Disable All’ and then click ‘OK’.
    Selecting the ‘Disable All’ option
  6. Click on the ‘Startup’ tab and select ‘Open Task Manager’.
    Opening Task Manager from the ‘Startup’ tab
  7. In Task Manager, go to the ‘Startup’ tab.
  8. For each application with ‘Enabled’ status, select it and choose the ‘Disable’ option.
    Disabling startup applications
  9. Repeat this for all listed applications and restart your computer.
  10. With your computer now in a ‘Clean Boot’ state, open the Windows Photo Viewer App and check for the issue.
  11. If the issue is resolved, re-enable each service one by one to identify the culprit, then keep that particular service disabled.

3. Run the Troubleshooter

Windows’ built-in troubleshooting tool can quickly find and fix issues causing the error. It scans for app problems, finds configuration errors, permission conflicts, or service disruptions, and applies fixes automatically, restoring app functionality without needing manual steps.

  1. Press Windows + I at the same time.
  2. Select Update & Security.
    Accessing ‘Update & Security’
  3. Choose Troubleshoot from the left pane.
    Selecting ‘Troubleshoot’ from the menu
  4. Scroll down and select Windows Store Apps.
  5. Click Run the troubleshooter.
    Running the Windows Store Apps troubleshooter
  6. The troubleshooter will automatically attempt to identify and solve the issue.

4. Fix the Permissions of the Photo App Folder

Fixing the permissions of the Photos app folder ensures the app can access the files it needs to work properly. If the permissions are wrong, the app might be blocked from essential files, causing errors like File System Error (-2147219196). Adjusting these settings restores access and resolves the issue.

  1. Click the search button, search for ‘Command Prompt,’ and run it as an administrator.
  2. Enter this command to take ownership of the ‘WindowsApps’ folder:
    TAKEOWN /F 'C:\Program Files\WindowsApps' /R /D Y
  3. Open the ‘WindowsApps’ folder located at ‘C:\Program Files\WindowsApps’ after gaining ownership.
  4. If you cannot find the folder, ensure the ‘show hidden files’ option is enabled.
    Showing Hidden Files
  5. If prompted with ‘Permission Required,’ click ‘Continue.’
    Granting permission to continue
  6. Right-click the Photos App folder (e.g., ‘Microsoft.Windows.Photos_2017.37071.16410.0_x64__8wekyb3d8bbwe’) and select Properties.
  7. Go to the ‘Security’ tab and select ‘Advanced.’
    Changing permissions for the folder
  8. In the Advanced permissions section, click ‘Change’ next to ‘Owner.’
  9. Enter ‘NT SERVICE\TrustedInstaller’ into the text box and press ‘OK.’
    Assigning ownership to TrustedInstaller
  10. Ensure ‘Replace Owner on subcontainers and objects’ is checked.
  11. Click ‘Apply,’ then ‘OK.’
    Finalizing permission changes
  12. Click OK to confirm the changes.
  13. Search for PowerShell, run it as an administrator, and execute this command:
    get-appxpackage *Microsoft.Windows.Photos* | remove-appxpackage
  14. Restart Windows after the command is completed.
  15. Launch PowerShell as an administrator again and enter this command to reinstall the Windows Photos App:
    Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register '$($_.InstallLocation)\AppXManifest.xml'}
  16. After completion, check if the issue persists.

5. Windows Update

Keeping your system updated is crucial because Windows updates often include fixes for bugs and security issues. Installing the latest updates can fix corrupted files, resolve compatibility problems, and restore normal function to affected apps.

  1. Press Windows + I simultaneously.
  2. Go to Update & Security.
  3. Click Check for Updates and wait for Windows to find new updates.
  4. Updates will download and install automatically.
  5. Restart your computer to complete the updates.
ABOUT THE AUTHOR

Kamil Anwar


Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over 9 years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-school still active on FreeNode.

Comments

15
    RI
    riccardo Jul 24, 2018

    hi Kevin, thanks for this post, it’s very well written and easy to follow. i got all the way to step 13 without any problem but then i got lost…it seems my computer doesn’t have any folder called “windows apps” and i can’t seem to find the location of my apps on the computer anywhere…which means i can’t specify the correct folder name in the last command prompt. is there anyway you can help me? thank you,
    riccardo
    EDIT: i found the windowsapps folder as a hidden file and the computer says i can’t have access to it even though i’m an administrator
    EDIT “: i managed to obtain permission to access the folders, completed the last two steps and now the photos app works once again! thank you so much.

      KA
      K. Arrows Author Jul 25, 2018

      Thank you for the update

      SD
      SDLee Jul 25, 2018

      I am having the same problem. How did you manage to gain permission to access the folders?

        MF
        MFJ Jul 25, 2018

        Where exactly are you facing problems SDLee? and what exactly is the issue?
        I might be able to help you.

        This article might help you in getting permissions to access the folder?

        https://appuals.com/fix-you-require-permission-from-trustedinstaller/

    KP
    kpax Aug 16, 2020

    Thanks for the post! I was going crazy thinking that my download function wasn’t working correctly. And when I finally decided to search for the error and found your article, I realized that it wasn’t my code that was broken: it was the Windows Photo App 🙂

    MS
    Masku_sama Apr 18, 2021

    Hi! thanks for this post, but there’s a little problem I’m facing which I hope someone can reply me back Asap. I’ve done the CMD method, but the problem is, I’m booting my Laptop in Safe Mode (it’s the last resort I could go to, since if my Laptop boots normally, a black screen gonna appear) so anyways, so I’ve had the following message “This service cannot be started in Safe Mode”…soo any tip doing this in safe mode..?I need this Asap. and thanks!

      MZ
      Muhammad Zubyan Author Apr 18, 2021

      Can you tell me which service do you want to enable in safe mode? So that I can give you a command to enable service in safe mode.

        MS
        Masku_sama Apr 18, 2021

        wow!thanks for reaching me back man, it means a lot, I appreciate it. it’s the Command “PsExec.exe -sid c:windowssystem32cmd.exe” which tells me to install the Pstool, but I get a message saying I can’t go on because of Safe Mode enabled (sorry cant show you a screen shot because the program is broken).!

          MZ
          Muhammad Zubyan Author Apr 18, 2021

          Unfortunately, it seems like you can’t run PsExec in safe mode as they don’t install any service on your computer it’s a portable program.

          MS
          Masku_sama Apr 19, 2021

          ah!thanks;( I’ll try my best to figure out a way to solve this problem, hopefully I will succeed. so, sorry out of topic, but do you have any idea of solving the Black screen problem??

          MZ
          Muhammad Zubyan Author Apr 19, 2021

          I personally think that it’s your graphics driver that’s being problematic and giving you a black screen. So, i suggest you to try these step:-

          1. Boot into safe mode and download your graphics card driver.
          2. Uninstall the previous graphics driver.
          3. Install the driver you just downloaded.

          Check to see if that helps resolving the black screen issue.

    SL
    Scott Lafferty Feb 27, 2022

    Hi

    I am experiencing this same File System Error sometimes when I open PDF files with Drawboard PDF. I will test if other PDF applicationsa re simlarly affected.

    Any idea for a solution?

    Scott

      MZ
      Muhammad Zubyan Author Mar 1, 2022

      Run Command Prompt as an administrator and run this command:-

      wsreset

      Check to see if the issue persists.

    PR
    Protectiveswag1 Apr 6, 2022

    I’m having a problem where this same error code shows up when I try to open setting, does anyone know how I can fix it since most sources on the error code relate it to opening .pdf files.

      MZ
      Muhammad Zubyan Author Apr 8, 2022

      I think some of your services are disabled, we will have to diagnose that. Do you have Discord? We can contact you there and you can screenshare.