在Windows 10中使用“(Windows 10)照片(Photos)”应用打开图像时,您是否一直看到标有“文件系统错误 ( -2147219196 )”的消息?尽管听起来像是磁盘错误,但它主要源于文件损坏或权限损坏。
完成以下修复程序以修复Windows 10中的“文件系统错误 ( (Windows 10)-2147219196 )”,然后再次像往常一样开始使用照片。(Photos)
运行Windows 应用商店应用疑难解答(Windows Store Apps Troubleshooter)
Windows 10 包含一个内置的疑难解答程序,可自动处理与属于 Microsoft Store 的应用程序(apps belonging to the Microsoft Store)(例如照片(Photos))相关的错误。我们强烈建议在深入研究其余修复程序之前运行它。
1. 打开开始(Start)菜单并选择设置(Settings)。
2. 选择标有更新和恢复(Update & Recovery)的选项。
3. 选择侧边栏上的疑难解答(Troubleshoot)。
4. 选择其他疑难解答(Additional troubleshooters)。
5. 选择Windows 应用商店应用程序(Windows Store Apps)>运行疑难解答(Run the troubleshooter)。
修复 Microsoft 照片应用
如果Microsoft Store疑难解答程序无法修复Windows 10中的“文件系统错误 ( (Windows 10)-2147219196 )” ,则下一步将涉及修复照片(Photos)应用程序。
1. 打开设置(Settings)应用程序并选择应用程序(Apps)。
2.向下滚动(Scroll)应用程序列表并选择Microsoft 照片(Microsoft Photos)>高级选项(Advanced options)。
3. 选择终止(Terminate)以关闭与照片(Photos)应用程序相关的所有实时进程。然后,选择修复(Repair)。
重置 Microsoft 照片应用
如果修复照片(Photos)也没有任何作用,请尝试将应用程序重置为其默认值。为此,只需按照上面部分中的说明进行操作,但选择终止(Terminate )>重置(Reset )。
安装 Microsoft Store 更新
假设上述修复没有使“文件系统错误(-2147219196)”弹出窗口消失,最好检查并安装与照片(Photos)和其他与商店相关的应用程序相关的任何更新。
1. 打开微软商店。
2. 选择窗口左下方的库图标。(Library icon )在旧版本的Microsoft Store上,打开商店(Store)菜单(带有三个点的图标),然后选择下载和更新(Downloads and updates)。
3. 选择获取更新以更新( Get updates )Windows 10中的所有Microsoft Store应用程序。
重新注册照片应用程序
以下修复涉及使用Windows 10(Windows 10)重新注册照片(Photos)应用程序。该过程包括通过提升的命令提示符(Command Prompt)控制台执行命令。
1.在开始(Start)菜单中输入cmd ,然后按(cmd )Ctrl + Shift + Enter以打开具有管理权限的命令提示符。(Command Prompt)
2. 复制并粘贴以下命令:
PowerShell -ExecutionPolicy Unrestricted -Command “& {$manifest = (Get-AppxPackage *Photos*).InstallLocation + ‘\AppxManifest.xml’ ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}”
3. 按回车(Enter)。
重新注册(Re-register)所有Microsoft Store 应用(Microsoft Store Apps)
如果重新注册照片(Photos)应用程序没有帮助,请尝试通过提升的Windows PowerShell控制台在您的 PC 上重新注册所有Microsoft Store应用程序。(Microsoft Store)
1. 按Windows + X(或右键单击开始(Start )按钮)并选择Windows PowerShell (Admin)。
2. 复制并粘贴以下命令:
Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
3. 按回车(Enter)。
重新安装照片应用程序
如果文件损坏是“文件系统错误 ( -2147219196 )”的原因,则完全删除并重新安装Windows 照片(Windows Photos)应用程序可能会解决此问题。但是,该过程需要以SYSTEM(SYSTEM)用户身份运行命令。为此,您需要一个名为PsExec的工具。
1. 前往Windows Sysinternals 上的 PsExec 页面(PsExec page on Windows Sysinternals)并选择下载 PsTools(Download PsTools)。
2. 右键单击下载的ZIP文件并选择提取文件(Extract files)。然后,将文件夹路径设置为C:/PSTools并选择Extract。
3. 打开提升的Windows PowerShell控制台并执行以下命令:
Get-AppxPackage *photos* | Remove-AppxPackage
4. 打开提升的命令提示符(Command Prompt)控制台并执行以下命令:
C:\PSTools\PsExec.exe -sid C:\Windows\System32\cmd.exe
5. 同意SysInternals软件许可条款。一个单独的命令提示符(Command Prompt)控制台将自动启动。
6. 执行以下命令:
rd /s “C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2021.21090.10008.0_x64__8wekyb38bbwe
注意:(Note:)照片(Photos)应用程序的目录会随着每次Windows更新而改变。要使用正确的名称自动填充命令,请在rd /s “C:\Program Files\WindowsApps\Microsoft.Windows.Photos_FilesWindowsAppsMicrosoft.Windows.Photos_(Tab) . 您可能必须循环浏览匹配的条目(反复按Tab),直到您看到x64包含在文件名中。
7. 退出所有命令提示符(Command Prompt)窗口并通过Microsoft Store重新安装(Microsoft Store)照片(Photos)。
将照片应用所有权更改(Change Photos App Ownership)为 TrustedInstaller
如果问题仍然存在,请将照片(Photos)应用程序的所有权更改为TrustedInstaller ( Windows 10中的特殊用户帐户)并查看是否有帮助。
1. 打开提升的Windows PowerShell控制台并执行以下命令:
takeown /F “%ProgramFiles%\WindowsApps” /r /d y
2. 打开文件资源管理器并在菜单栏上选择查看(View)>隐藏项目。(Hidden items)
3. 前往以下位置:
本地磁盘 C(Local Disk C ) >程序文件( Program Files )> WindowsApps
4. 右键单击标有Microsoft.Windows.Photos_[版本号]( Microsoft.Windows.Photos_[version number])的文件夹并选择属性(Properties)。
注意:(Note:)如果您看到多个外观相似的文件夹,请选择包含x64作为其文件名一部分的目录。
5. 切换到安全(Security)选项卡并选择高级(Advanced)。
6. 选择所有者旁边的更改。(Change)
7.在空白框中输入NT SERVICE\TrustedInstaller并选择OK。
8. 选中替换子容器和对象的所有者(Replace owner on subcontainers and objects)旁边的框。
9. 选择应用(Apply),然后选择确定(OK)。通过退出文件夹的“属性(Properties)”窗口来执行此操作。
10. 重新注册Windows 照片(Windows Photos)应用程序(上述说明)。
安装待处理的 Windows 10 更新
Windows 10 更新可以提高应用程序和操作系统的稳定性。如果您仍然看到“文件系统错误 ( -2147219196 )”消息,那么是时候使用Windows 更新(Windows Update)了。
1. 打开设置(Settings )应用程序并选择更新和安全(Update & Security)或Windows 更新(Windows Update)。
2. 选择检查更新(Check for Updates)。
3. 选择下载并安装(Download and install )以应用任何待处理的更新。
卸载最新的 Windows 更新
在极少数情况下,Windows 10 更新最终可能会造成破坏。如果在安装操作系统更新后立即出现 “照片”应用的问题,您可能需要考虑将其卸载。(Photos)
1. 打开设置(Settings )应用程序并选择更新和安全(Update & Security)或Windows 更新(Windows Update)。
2. 选择查看更新历史(View update history)。
3. 选择卸载更新(Uninstall updates)。
4. 选择最近的更新(跳过任何安全或服务堆栈更新)。
5. 选择卸载(Uninstall)。
运行 SFC 和 DISM 扫描
如果上述修复都没有帮助,那么是时候运行系统文件检查器 (SFC)(System File Checker (SFC))和部署映像服务(Deployment Image Servicing)和管理(Management)( DISM ) 工具了。这解决了操作系统的损坏问题。
系统文件检查器 (SFC)(System File Checker (SFC))
打开提升的Windows PowerShell控制台并运行以下命令:
sfc /scannow
部署映像服务和管理 (DISM) 工具(Deployment Image Servicing and Management (DISM) Tool)
系统文件检查器完成对(System File Checker)Windows 10问题的扫描后,重新启动计算机并执行以下命令:
DISM.exe /Online /Cleanup-Image /Restorehealth
完全修复Windows中的(Windows)文件系统错误(Fix File System Error)( -2147219196 )
上面的修复应该已经帮助您解决了Windows 10中(Windows 10)照片(Photos)应用程序的“文件系统错误 ( -2147219196 )”问题。如果没有,请尝试使用替代的 Windows 照片查看应用程序(alternative Windows photo viewing app),直到Microsoft在后续更新中修复该问题。如果您迫不及待,您剩下的选择包括执行系统还原(performing a system restore)并将Windows 10 恢复为出厂默认设置(reverting Windows 10 to factory defaults)。
FIX: File System Error (-2147219196) in Windows
Do уou keeр sеeing a message labeled “File system error (-2147219196)” while opening images with the Photos app in Windows 10? Despite sounding like a disk error, it’s an issue that mainly stems from file сorruption or broken рermіssіоns.
Work your way through the fixes that follow to fix “File system error (-2147219196)” in Windows 10 and start using Photos as usual again.
Run the Windows Store Apps Troubleshooter
Windows 10 includes a built-in troubleshooter that automatically deals with errors related to apps belonging to the Microsoft Store (such as Photos). We strongly recommend running it before diving into the rest of the fixes.
1. Open the Start menu and select Settings.
2. Select the option labeled Update & Recovery.
3. Select Troubleshoot on the sidebar.
4. Select Additional troubleshooters.
5. Select Windows Store Apps > Run the troubleshooter.
Repair the Microsoft Photos App
If the Microsoft Store troubleshooter fails to fix “File system error (-2147219196)” in Windows 10, the next course of action involves repairing the Photos app.
1. Open the Settings app and select Apps.
2. Scroll down the list of apps and select Microsoft Photos > Advanced options.
3. Select Terminate to shut down all live processes related to the Photos app. Then, select Repair.
Reset the Microsoft Photos App
If repairing Photos also didn’t make a difference, try resetting the app to its defaults. To do that, simply follow the instructions in the section above but select Terminate > Reset instead.
Install Microsoft Store Updates
Assuming that the fixes above didn’t make the “File system error (-2147219196)” pop-up go away, it’s best to check for and install any updates related to Photos and other Store-related apps.
1. Open the Microsoft Store.
2. Select the Library icon at the lower left of the window. On older versions of the Microsoft Store, open the Store menu (icon with three dots) and select Downloads and updates instead.
3. Select Get updates to update all Microsoft Store apps in Windows 10.
Re-Register the Photos App
The following fix involves re-registering the Photos app with Windows 10. The procedure consists in executing a command via an elevated Command Prompt console.
1. Type cmd into the Start menu and press Ctrl + Shift + Enter to open Command Prompt with administrative rights.
2. Copy and paste the following command:
PowerShell -ExecutionPolicy Unrestricted -Command “& {$manifest = (Get-AppxPackage *Photos*).InstallLocation + ‘\AppxManifest.xml’ ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}”
3. Press Enter.
Re-register All Microsoft Store Apps
If re-registering the Photos app didn’t help, try re-registering all Microsoft Store apps on your PC via an elevated Windows PowerShell console.
1. Press Windows + X (or right-click the Start button) and select Windows PowerShell (Admin).
2. Copy and paste the following command:
Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
3. Press Enter.
Reinstall the Photos App
If file corruption is the cause of the “File system error (-2147219196),” completely removing and reinstalling the Windows Photos app may fix the issue. However, the procedure requires running a command as the SYSTEM user. For that, you need a tool called PsExec.
1. Head over to the PsExec page on Windows Sysinternals and select Download PsTools.
2. Right-click the downloaded ZIP file and select Extract files. Then, set the folder path as C:/PSTools and choose Extract.
3. Open an elevated Windows PowerShell console and execute the following command:
Get-AppxPackage *photos* | Remove-AppxPackage
4. Open an elevated Command Prompt console and execute the following command:
C:\PSTools\PsExec.exe -sid C:\Windows\System32\cmd.exe
5. Agree to the SysInternals software license terms. A separate Command Prompt console will automatically launch.
6. Execute the following command:
rd /s “C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2021.21090.10008.0_x64__8wekyb38bbwe
Note: The Photos app’s directory changes with each Windows update. To auto-fill the command with the correct name, press the Tab key right after rd /s “C:\Program Files\WindowsApps\Microsoft.Windows.Photos_. You may have to cycle through matching entries (repeatedly press Tab) until you see x64 included as part of the file name.
7. Exit all Command Prompt windows and reinstall Photos via the Microsoft Store.
Change Photos App Ownership to TrustedInstaller
If the issue persists, change ownership of the Photos app to TrustedInstaller (a special user account in Windows 10) and see if that helps.
1. Open an elevated Windows PowerShell console and execute the following command:
takeown /F “%ProgramFiles%\WindowsApps” /r /d y
2. Open File Explorer and select View > Hidden items on the menu bar.
3. Head over to the following location:
Local Disk C > Program Files > WindowsApps
4. Right-click on the folder labeled Microsoft.Windows.Photos_[version number] and select Properties.
Note: If you see multiple similar-looking folders, pick the directory that contains x64 as part of its file name.
5. Switch to the Security tab and select Advanced.
6. Select Change next to Owner.
7. Type NT SERVICE\TrustedInstaller into the vacant box and select OK.
8. Check the box next to Replace owner on subcontainers and objects.
9. Select Apply, then OK. Follow that by exiting the folder’s Properties window.
10. Re-register the Windows Photos app (instructions above).
Install Pending Windows 10 Updates
Windows 10 updates can improve the stability of apps and the operating system. If you still keep seeing the “File system error (-2147219196)” message, it’s time to use Windows Update.
1. Open the Settings app and select Update & Security or Windows Update.
2. Select Check for Updates.
3. Select Download and install to apply any pending updates.
Uninstall the Most Recent Windows Update
Rarely, Windows 10 updates can end up breaking things. If the issue with the Photos app occurred right after installing an operating system update, you might want to consider uninstalling it.
1. Open the Settings app and select Update & Security or Windows Update.
2. Select View update history.
3. Select Uninstall updates.
4. Select the most recent update (skip any security or servicing stack updates).
5. Select Uninstall.
Run an SFC and DISM Scan
If none of the fixes above helped, it’s time to run the System File Checker (SFC) and the Deployment Image Servicing and Management (DISM) tool. That resolves corruption issues with the operating system.
System File Checker (SFC)
Open an elevated Windows PowerShell console and run the following command:
sfc /scannow
Deployment Image Servicing and Management (DISM) Tool
After the System File Checker finishes scanning Windows 10 for issues, restart your computer and execute the following command:
DISM.exe /Online /Cleanup-Image /Restorehealth
Fully Fix File System Error (-2147219196) in Windows
The fixes above should’ve helped you resolve the “File System Error (-2147219196)” issue with the Photos app in Windows 10. If not, try using an alternative Windows photo viewing app until Microsoft fixes the problem in a subsequent update. If you can’t wait, your remaining options involve performing a system restore and reverting Windows 10 to factory defaults.