首页  >  文章  >  系统教程  >  如何在 Windows 11 PC 上重置 SoftwareDistribution 和 Catroot2 文件夹

如何在 Windows 11 PC 上重置 SoftwareDistribution 和 Catroot2 文件夹

WBOY
WBOY原创
2024-06-14 19:19:41725浏览

SoftwareDistribution 文件夹是存储在 PC 上安装 Windows 更新所需文件的目录。它是更新文件的临时存储库。因此,SoftwareDistribution 文件夹是更新 Windows 的重要组件。

Catroot 2 是存储 Windows 11 更新签名数据的文件夹。这些是加密服务进行更新验证所需的文件。

这两个文件夹都包含安装 Windows 更新所需的文件。由于这些文件夹中的数据损坏,可能会出现 Windows 更新安装问题。当用户手动选择检查并安装更新时,这些错误通常会出现在带有变量代码(例如 0x800f0922)的“设置”中。

因此,重置这些文件夹是解决 Windows 11 更新安装问题的一种故障排除方法。重置 SoftwareDistribution 和 Catroot2 文件夹会删除它们可能包含的损坏数据,从而重建它们。您可以通过删除这些文件夹的内容或重命名它们来重置这些文件夹。

如何通过删除 SoftwareDistribution 和 Catroot2 文件夹的内容来重置 SoftwareDistribution 和 Catroot2 文件夹

这种重置 SoftwareDistribution 和 Catroot2 文件夹的方法涉及通过文件资源管理器手动删除其中的数据。还需要通过命令提示符禁用和重新启用某些服务,以确保它们不使用其中的文件。删除 SoftwareDistribution 和 Catroot2 文件夹中的文件,如下所示:

  1. 打开可使用 Windows 徽标 + S 热键访问的文件查找实用程序。
  2. 通过在搜索文本框中输入关键字 cmd 来找到命令提示符。
  3. 通过单击搜索工具右侧的“以管理员身份运行”选项,选择以管理员权限打开命令提示符。
  4. 输入并执行以下单独的命令以禁用更新 Windows 11 所需的服务:
    <code class="hljs xml">net stop bitsnet stop wuauservnet stop cryptsvcnet stop msiserver</code> 
  5. 按键盘上的 Windows 键 + E 转到文件资源管理器。
  6. 打开此路径下的 SoftwareDistribution 文件夹:
    <code class="hljs ">C:\Windows\SoftwareDistribution</code> 
  7. 按 Ctrl + A 选择 SoftwareDistribution 文件夹中的所有文件。
  8. 右键单击​​并选择“删除”(垃圾桶按钮)以删除所选内容。How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  9. 在资源管理器的地址栏中输入以下路径来调出 catroot2 文件夹:
    <code class="hljs ">C:\Windows\System32\catroot2</code> 
  10. 重复上面的第七步和第八步以擦除该文件夹中的所有内容。How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  11. 返回命令提示符并执行这些单独的命令以重新启动禁用的服务。
    <code class="hljs xml">net start bitsnet start wuauservnet start cryptSvcnet start msiserver</code> 
  12. 重新启动PC 并在清除这些文件夹后检查更新。

如何通过重命名 SoftwareDistribution 和 Catroot2 文件夹来重置它们

重命名 SoftwareDistribution 和 Catroot2 目录是重置这些文件夹的另一种方法。 Windows 将在您重命名这些文件夹后重新创建它们。您可以使用命令提示符重命名 SoftwareDistribution 和 catroot2 文件夹,如下所示:

  1. Run the Command Prompt with elevated admin rights.
  2. Repeat step four of the preceding method to execute the commands for disabling services.How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  3. Input this command to rename the SoftwareDistribution folder and press Return:
    <code class="hljs css">ren %systemroot%\softwaredistributionsoftwaredistribution.bak</code> 
    How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  4. Enter and execute this rename command for the catroot2 folder:
    <code class="hljs css">ren %systemroot%\system32\catroot2catroot2.bak</code> 
    How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  5. Repeat step 11 of the preceding method by executing the four commands for restarting the disabled services.How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  6. Exit Command Prompt and select to restart your PC.

How to Reset the SoftwareDistribution and Catroot2 Folders With FixWin 11

FixWin 11 is one of the best freely available Windows repair tools that includes troubleshooting options. Among them are two options for resetting the catroot2 and SoftwareDistribution folders. This is how you can select those quick fix options in FixWin 11:

  1. Open this FixWin 11 page on the Softpedia website.
  2. Click on the Free Download button for FixWin.
  3. Select Secure Download (US) to obtain FixWin’s ZIP archive.
  4. Activate a File Explorer window and go to your browser’s downloads folder.
  5. Extract the FixWin archive by going through the steps in this article about unzipping ZIP files on Windows.How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  1. Double-click the FixWin 11.1.exe file in the extracted folder for FixWin.
  2. Click Additional Fixes on the left of the FixWin window.
  3. Select the Quick Fixes tab.
  4. Press the Reset Software Distribution folder button.How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  5. Click the Reset catroo2 Folder option.
  6. Exit FixWin and reboot your PC after selecting those options.

Fix Windows Update Issues by Resetting the SoftwareDistribution and Catroot2 Folders

It’s important to resolve update issues when they arise for the sake of keeping Windows updated. Resetting the catroo2 and SoftwareDistribution folders is one of the most effective troubleshooting methods for fixing Windows update errors.

So, try doing that whenever you need to fix an error code shown within the Windows Update tab of Settings.

以上是如何在 Windows 11 PC 上重置 SoftwareDistribution 和 Catroot2 文件夹的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn