首頁  >  文章  >  系統教程  >  如何在 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. 以滑鼠右鍵並選擇「刪除」(垃圾桶按鈕)以刪除所選內容。 catroot2 資料夾:
    <code class="hljs ">C:\Windows\System32\catroot2</code> 
    How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  9. 重複上面的第七步和第八步以擦除該資料夾中的所有內容。命令以重新啟動已停用的服務。
  10. 如何透過重新命名 SoftwareDistribution 和 Catroot2 資料夾來重置它們 How to Reset the SoftwareDistribution and Catroot2 Folders on a Windows 11 PC
  11. 重新命名 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