如果您的 Windows PC 上的Microsoft Store开始出现异常行为,则重置Windows Store缓存可以使其再次工作。这是在Windows 11和 10 中执行此操作的方法。
Windows 11和 10 中的Microsoft Store应用程序容易受到各种问题的影响。例如,它可能无法下载应用程序或更新(fail to download apps or updates),在启动时崩溃或冻结(crash or freeze at startup),或者抛出神秘的存储错误(throw out cryptic store errors)。这些通常源于过时的Microsoft Store缓存。
值得庆幸的是,Windows具有一个名为(Windows)WSReset.exe的内置实用程序,可以清除Microsoft Store缓存。本教程涵盖了启动WSReset.exe的所有方法、将(WSReset.exe)Microsoft Store重置为其默认值的一些其他方法,以及针对其他Microsoft Store问题的一些附加修复。
运行 WSReset.exe 时会发生什么
当您调用 WSReset.exe 时,它会关闭Microsoft Store并将所有应用程序和帐户设置恢复为出厂默认设置。它还会清除 Window 的存储(Store)缓存。这有助于解决由过时或损坏的应用程序数据引起的问题。
该过程简单且自动;您只需要运行WSReset.exe。您不会丢失任何已安装的应用程序,也无需再次使用您的Microsoft 帐户登录(Microsoft Account)。
WSReset.exe没有图形用户界面。相反,它显示为一个空白的命令提示符(Command Prompt)窗口。它最终会消失,并且Microsoft Store应用程序会在确认成功重置后不久自动打开。
您可以通过“开始(Start)”菜单或使用“运行”(Run)、 “ Windows PowerShell ”或“命令提示符”命令启动(Command Prompt)WSReset.exe。您甚至可以通过文件资源管理器(File Explorer)直接启动它。
此外,您可以使用设置(Settings)应用程序、注册表编辑器(Registry Editor)等其他方式清除Microsoft Store缓存,或者删除包含缓存文件的Store文件夹。(Store)
通过开始菜单(Start Menu)清除Microsoft Store Cache
调用WSReset.exe工具的最快方法是通过“开始(Start)”菜单或Windows Search运行它。
- 打开开始(Start) 菜单(menu)或Windows 搜索( Windows Search)。
- 在搜索栏中键入wsreset.exe 。
- 选择打开(Open)或按Enter键。
使用运行命令(Run Command)清除Microsoft Store 缓存(Microsoft Store Cache)
访问WSReset.exe(WSReset.exe)的另一种快速方法是将其作为运行(Run)命令启动。
- 按Windows + R 键(R keys)打开运行框(Run box)。
- 键入wsreset.exe。
- 选择确定(OK)。
通过Windows PowerShell清除Microsoft Store Cache
如果上述两种方法都无法启动WSReset,请尝试通过Windows PowerShell运行它。
- 右键单击开始(Start)并选择Windows PowerShell (Windows 10) 或Windows 终端(Windows Terminal )(Windows 11)。
- 键入wsreset.exe并按Enter。
通过命令提示符(Command Prompt)清除Microsoft Store 缓存(Microsoft Store Cache)
也可以通过旧的命令提示符(Command Prompt)控制台调用WSReset.exe 。
- 打开“开始”菜单(Start menu),键入cmd,然后选择“打开(Open)” 。
- 键入wsreset.exe并按Enter。
通过文件资源管理器(File Explorer)清除Windows 应用商店缓存(Windows Store Cache)
您可以通过文件资源管理器(File Explorer)直接运行WSReset.exe实用程序来重置(WSReset.exe)Microsoft Store。
- 打开文件资源管理器( File Explorer)。
- 导航到以下目录:
C:Windows System32
- 找到并双击WSReset可执行文件。
其他重置Microsoft Store的(Microsoft Store)方法(Ways)
有时,WSReset.exe无法打开或生成其他错误代码,例如“ms-windows-store:PurgeCaches”。使用以下替代方法重置Microsoft Store并清除其缓存。
通过设置应用程序(Settings App)重置Microsoft Store
Windows中的设置(Settings)应用程序提供了一种简单且用户友好的方式来重置Microsoft Store。您还可以在使用该应用程序时对其进行修复。
- 打开开始菜单( Start menu )并选择设置(Settings)。
- 向下滚动应用程序和功能( Apps & Features )屏幕,选择Microsoft Store或旁边的更多图标( More icon)(三个点),然后选择高级选项(Advanced options)。
- 选择重置(Reset)按钮以删除存储(Store)缓存并将浏览器恢复为出厂默认设置。如果无法修复Microsoft Store,请选择修复(Repair)按钮来修复Microsoft Store安装。
通过注册表编辑器(Registry Editor)重置Microsoft Store
您可以通过从 PC 中删除您帐户的注册表项来强制重置Microsoft Store 。确保(Make)在开始之前备份您的系统注册表(back up your system registry)。
- 打开Windows PowerShell或命令提示符(Command Prompt)控制台。然后,运行whoami /userSID列下的字符串。
- 打开一个运行框,键入regedit,然后选择OK。
- 导航到以下文件夹:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Appx > AppxAllUserStore
- 右键单击您之前在左列中记下的SID ,然后选择(SID)Delete。
通过文件资源管理器(File Explorer)重置Windows 存储缓存(Windows Store Cache)
以下方法可让您直接通过文件资源管理器(File Explorer)删除 Microsoft Store 的缓存文件。
- 在文件资源管理器中,打开查看菜单( View menu )并选择显示(Show)>隐藏项目(Hidden items)。
- 导航到以下目录:
Local Disk (C:) > Users > [Your Username] > Appdata > Local > Packages
- 打开以下文件夹:
Microsoft.WindowsStore_8wekyb3d8bbwe
- 删除LocalCache文件夹。
可试用的其他Microsoft Store 修复(Microsoft Store Fixes)
如果清除Microsoft Store缓存没有帮助,您可以尝试以下几个额外的修复程序让应用程序再次运行。其中一些只有在您可以打开Microsoft Store时才有可能。
(Perform Automatic Repairs)使用Windows 应用商店应用程序疑难解答(Windows Store Apps Troubleshooter)执行自动修复
打开“开始”菜单(Start menu),键入Windows Store Apps,然后选择“打开(Open)” 。然后,选择高级(Advanced)>自动应用修复(Apply repairs automatically )>下一步(Next)以检测和修复Microsoft Store 相关问题。
更新Microsoft Store以修复(Fix Known Issues)应用程序的已知问题
打开微软商店。选择左下角的库,然后选择(Library)Microsoft Store旁边的更新(Update )。
注销(Out)并重新(Back)登录以修复卡住的商店下载(Fix Stuck Store Downloads)和更新
打开微软商店(Microsoft Store)。选择您的个人资料肖像,然后在您的Microsoft 帐户下选择(Microsoft Account)退出( Sign out)。接下来(Next),重新启动您的 PC 并重新登录应用程序。
重新注册(Re-register)Microsoft Store以修复损坏(Fix Broken Registry)的注册表项
右键单击Start button,选择Windows PowerShell/Terminal (Admin),然后运行以下命令:
Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
重新安装Microsoft Store以修复损坏的应用程序安装(Corrupt App Installation)
打开提升的Windows PowerShell控制台并运行以下两个命令:
- Get-AppxPackage -allusers *WindowsStore* | Remove-AppxPackage
- Get-AppxPackage -allusers *WindowsStore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
更新 Microsoft Windows(Update Microsoft Windows)以修复与系统相关的问题(Fix System-Related Issues)
打开设置(Settings )应用程序,选择Windows 更新(Windows Update),然后选择检查更新(Check for Update)。如果您看到任何待处理的更新,请选择下载并安装(Download & Install)。
执行SFC和DISM 扫描(DISM Scan)以修复损坏的系统文件(Fix Corrupt System Files)
打开提升的Windows PowerShell控制台。然后,依次运行系统文件检查器和 DISM 工具(run the System File Checker and the DISM tool):
- sfc /scannow
- DISM /Online /Cleanup-Image /RestoreHealth
Microsoft Store 缓存清除
使用WSReset.exe工具清除Microsoft Store缓存是解决应用程序持久性问题的最佳方法。但是,有些问题需要额外的故障排除,上述修复是一个很好的起点。
How to Clear Windows Store Cache with WSReset.exe
If the Microsoft Store on your Windows РC startѕ behaving unusually, resetting the Windows Store cache could make it wоrk again. Here’s how to do that in Windows 11 аnd 10.
The Microsoft Store app in Windows 11 and 10 is susceptible to various issues. For example, it could fail to download apps or updates, crash or freeze at startup, or throw out cryptic store errors. These often stem from an obsolete Microsoft Store cache.
Thankfully, Windows features a built utility called WSReset.exe that can clear the Microsoft Store cache. This tutorial covers all the ways to launch WSReset.exe, some other methods for resetting Microsoft Store to its defaults, and some additional fixes for other Microsoft Store issues.
What Happens When You Run WSReset.exe
When you invoke WSReset.exe, it shuts down the Microsoft Store and reverts all application and account settings to factory defaults. It also clears Window’s Store cache. That helps fix issues caused by outdated or corrupt app data.
The process is straightforward and automatic; you only need to run WSReset.exe. You won’t lose any installed apps and don’t need to sign in with your Microsoft Account again.
WSReset.exe doesn’t feature a graphical user interface. Instead, it shows up as a blank Command Prompt window. It will eventually disappear, and the Microsoft Store app automatically opens soon after to confirm a successful reset.
You can launch WSReset.exe via the Start menu or with a Run, Windows PowerShell, or Command Prompt command. You can even launch it directly via File Explorer.
Additionally, you can clear the Microsoft Store cache using other means such as the Settings app, the Registry Editor, or by deleting the Store folder that holds the cache files.
Clear the Microsoft Store Cache via the Start Menu
The quickest way to invoke the WSReset.exe tool is to run it via the Start menu or Windows Search.
- Open the Start menu or Windows Search.
- Type wsreset.exe into the search bar.
- Select Open or press the Enter key.
Clear the Microsoft Store Cache with the Run Command
Another quick way to get to WSReset.exe is to launch it as a Run command.
- Press the Windows + R keys to open the Run box.
- Type wsreset.exe.
- Select OK.
Clear the Microsoft Store Cache via Windows PowerShell
If the two methods above fail to launch WSReset, try running it via Windows PowerShell.
- Right-click Start and select Windows PowerShell (Windows 10) or Windows Terminal (Windows 11).
- Type wsreset.exe and press Enter.
Clear the Microsoft Store Cache via Command Prompt
It’s also possible to invoke WSReset.exe via the older Command Prompt console.
- Open the Start menu, type cmd, and select Open.
- Type wsreset.exe and press Enter.
Clear the Windows Store Cache via File Explorer
You can reset the Microsoft Store by running the WSReset.exe utility directly via File Explorer.
- Open File Explorer.
- Navigate to the following directory:
C:\Windows\System32
- Locate and double-click the WSReset executable.
Other Ways to Reset the Microsoft Store
Sometimes, the WSReset.exe fails to open or generates additional error codes—e.g., “ms-windows-store:PurgeCaches.” Use the following alternative methods to reset the Microsoft Store and clear its cache.
Reset the Microsoft Store via the Settings App
The Settings app in Windows offers a straightforward and user-friendly way to reset the Microsoft Store. You can also repair the application while you’re at it.
- Open the Start menu and select Settings.
- Scroll down the Apps & Features screen, select Microsoft Store or the More icon (three dots) next to it, and choose Advanced options.
- Selectthe Reset button to delete the Store cache and revert the browser to factory defaults. If that fails to fix the Microsoft Store, select the Repair button to repair the Microsoft Store installation.
Reset the Microsoft Store via Registry Editor
You can force the Microsoft Store to reset by deleting your account’s registry keys from your PC. Make sure to back up your system registry before you begin.
- Open a Windows PowerShell or Command Prompt console. Then, run the whoami /user command and note the string under the SID column.
- Open a Run box, type regedit, and select OK.
- Navigate to the following folder:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Appx > AppxAllUserStore
- Right-click the SID you noted earlier on the left column and select Delete.
Reset the Windows Store Cache via File Explorer
The following approach lets you delete the Microsoft Store’s cache files directly via File Explorer.
- In File Explorer, open the View menu and select Show > Hidden items.
- Navigate to the following directory:
Local Disk (C:) > Users > [Your Username] > Appdata > Local > Packages
- Open the following folder:
Microsoft.WindowsStore_8wekyb3d8bbwe
- Delete the LocalCache folder.
Additional Microsoft Store Fixes to Try Out
If clearing the Microsoft Store cache didn’t help, here are several additional fixes you can try to get the application working again. Some of them are only possible if you can open the Microsoft Store.
Perform Automatic Repairs With Windows Store Apps Troubleshooter
Open the Start menu, type Windows Store Apps, and select Open. Then, select Advanced > Apply repairs automatically > Next to detect and fix Microsoft Store-related issues.
Update the Microsoft Store to Fix Known Issues With the Application
Open the Microsoft Store. Select Library at the lower-left corner and choose Update next to Microsoft Store.
Sign Out and Back In to Fix Stuck Store Downloads and Updates
Open the Microsoft Store. Choose your profile portrait and select Sign out under your Microsoft Account. Next, restart your PC and sign back into the application.
Re-register the Microsoft Store to Fix Broken Registry Entries
Right-click the Start button, select Windows PowerShell/Terminal (Admin), and run the following command:
Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
Reinstall the Microsoft Store to Fix a Corrupt App Installation
Open an elevated Windows PowerShell console and run the two commands below:
- Get-AppxPackage -allusers *WindowsStore* | Remove-AppxPackage
- Get-AppxPackage -allusers *WindowsStore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
Update Microsoft Windows to Fix System-Related Issues
Open the Settings app, select Windows Update, and select Check for Update. If you see any pending updates, select Download & Install.
Perform an SFC and DISM Scan to Fix Corrupt System Files
Open an elevated Windows PowerShell console. Then, run the System File Checker and the DISM tool one after the other:
- sfc /scannow
- DISM /Online /Cleanup-Image /RestoreHealth
Microsoft Store Cache Clear
Using the WSReset.exe tool to clear the Microsoft Store cache is the best way to resolve persistent issues with the application. However, some problems will require additional troubleshooting, and the above fixes are an excellent place to start.