嘗試卸載 Windows Server 角色或功能時0x800f0922錯誤

本文可協助修正卸載 Microsoft Windows Server 角色或功能時所發生的錯誤0x800f0922。

適用於:Windows Server 2012 R2、Windows Server 2016
原始 KB 編號: 4094128

徵狀

當您嘗試使用 伺服器管理員 或 PowerShell Cmdlet Uninstall-WindowsFeature卸載 Windows Server 角色或功能時,嘗試會失敗,而且您會收到錯誤碼0x800f0922和下列錯誤訊息:

CBS_E_INSTALLERS_FAILED
處理進階安裝程式和一般命令失敗

例如,在 WDS) (卸載 Windows 部署服務時,會在 下列CBS.logC:\Windows\Logs\CBS中記錄下列錯誤:

SQM:報告套件的可選取更新變更:Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384、 update: Microsoft-Windows-Deployment-Services, start: Installed, applicable: Resolved, target: Resolved, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433, download source: 0, download time (secs) : 4294967295, download status: 0x0 (S_OK) , reboot required: False, overallresult:0x800f0922 (CBS_E_INSTALLERS_FAILED)
SQM: 上傳要求報告:UpdateChange_Microsoft-Windows-Deployment-Services_Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142860,範例類型:標準
SQM:忽略上傳要求,因為範例類型未啟用:標準
TI:CBS 已查詢目前的重新啟動必要狀態:0
SQM:報告套件的可選取更新變更:Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384、 update: Microsoft-Windows-Deployment-Services-Deployment-Server, start: Staged, applicable: Resolved, target: resolved, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433, download source: 0, download time (secs) : 4294967295, download status: 0x0 (S_OK) , reboot required: False,整體結果:0x800f0922 (CBS_E_INSTALLERS_FAILED)
SQM:上傳報表要求的上傳:UpdateChange_Microsoft-Windows-Deployment-Services-Deployment-Server_Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142860,範例類型:標準
SQM:忽略上傳要求,因為範例類型未啟用:標準
TI:CBS 已查詢目前的重新啟動必要狀態:0
SQM:報告套件的可選取更新變更:Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384、 update: Microsoft-Windows-Deployment-Services-Transport-Server, start: Installed, applicable: Resolved, target: Resolved, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433, download source: 0, download time (secs) : 4294967295, download status: 0x0 (S_OK) , reboot required: False,整體結果:0x800f0922 (CBS_E_INSTALLERS_FAILED)
SQM:報表要求上傳:UpdateChange_Microsoft-Windows-Deployment-Services-Transport-Server_Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142860,範例類型:標準
SQM:忽略上傳要求,因為範例類型未啟用:標準
SQM:套件的報告套件變更:Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384、 current: Installed, pending: Default, start: Installed, applicable: Installed, target: Installed, limit: Installed, Hotpatch status: DisabledBecauseNoHotpatchPackagesInitiated, status: 0x0, failure source: Execute, reboot required: False, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433重新啟動原因: REBOOT_NOT_REQUIRED RM 應用程式工作階段: -1 RM 應用程式名稱: N/A 使用中的 FileName: N/A
SQM:報表要求上傳:PackageChangeBegin_Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142859,範例類型:標準
SQM:忽略上傳要求,因為範例類型未啟用:標準
SQM: 報告套件的套件變更完成:Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384, current: Installed, original: Installed, target: Installed, status: 0x800f0922, failure source: Execute, failure details: “ (null) ”, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433, pending decision: InteractiveInstallFailed, primitive execution context: Interactive
SQM:執行時間效能數據點無效。 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
SQM:無法初始化 Win SAT 評定。 [HRESULT = 0x80040154 - 未知的錯誤]
SQM:平均磁碟輸送量數據點無效 [HRESULT = 0x80040154 - 未知的錯誤]
SQM: 上傳要求報告:PackageChangeEnd_Microsoft-Windows-Deployment-Services-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142862,範例類型:標準
SQM:忽略上傳要求,因為範例類型未啟用:標準
TI:CBS 已查詢目前的重新啟動必要狀態:0
SQM:回報套件的可選取更新變更:Microsoft-Windows-Deployment-Services-UI-Package~31bf3856ad364e35~amd64~~6.3.9600.16384、 update: Microsoft-Windows-Deployment-Services-管理員-Pack, start: Staged, applicable: Resolved, target: Resolved, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433, download source: 0, download time (secs) : 4294967295, 下載狀態: 0x0 (S_OK) ,需要重新啟動:False,整體結果:0x800f0922 (CBS_E_INSTALLERS_FAILED)
SQM:報表要求上傳:UpdateChange_Microsoft-Windows-Deployment-Services-管理員-Pack_Microsoft-Windows-Deployment-Services-UI-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142860,範例類型:標準
SQM:忽略上傳要求,因為範例類型未啟用:標準
SQM:套件的報告套件變更:Microsoft-Windows-Deployment-Services-UI-Package~31bf3856ad364e35~amd64~~6.3.9600.16384、 current: Installed, pending: Default, start: Installed, applicable: Installed, target: Installed, limit: Installed, hotpatch status: DisabledBecauseNoHotpatchPackagesInitiated, status: 0x0, failure source: Execute, reboot required: False, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433重新啟動原因: REBOOT_NOT_REQUIRED RM 應用程式工作階段: -1 RM 應用程式名稱: N/A 使用中的 FileName: N/A
SQM: 上傳要求報告:PackageChangeBegin_Microsoft-Windows-Deployment-Services-UI-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142859,範例類型:標準
SQM:忽略上傳要求,因為未啟用範例類型:標準 SQM:套件的報告套件變更完成:Microsoft-Windows-Deployment-Services-UI-Package~31bf3856ad364e35~amd64~~6.3.9600.16384、 current: Installed, original: Installed, target: Installed, status: 0x800f0922, failure source: Execute, failure details: “ (null) ”, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 1433, first merged sequence: 1433, pending決策:InteractiveInstallFailed,基本執行內容:互動式
SQM:執行時間效能數據點無效。 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
SQM:無法初始化 Win SAT 評定。 [HRESULT = 0x80040154 - 未知的錯誤]
SQM:平均磁碟輸送量數據點無效 [HRESULT = 0x80040154 - 未知的錯誤]
SQM: 上傳要求報告:PackageChangeEnd_Microsoft-Windows-Deployment-Services-UI-Package~31bf3856ad364e35~amd64~~6.3.9600.16384,會話標識符:142862,範例類型:標準
SQM:忽略上傳要求,因為範例類型未啟用:標準
FinalCommitPackagesState:封裝的保存狀態已完成
啟用 LKG 開機選項
Exec:處理完成。 會話:30651968_3203616141,套件:Microsoft-Windows-ServerCore-Package~31bf3856ad364e35~amd64~~6.3.9600.16384 [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]
無法執行作業。 [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]
會話:30651968_3203616141完成。 需要重新啟動:沒有 [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]
無法使用背景工作會話完成Ex [HRESULT = 0x800f0922]

原因

如果 Windows Temp 目錄中有超過 65,000 個檔案,就會發生此問題。 Windows Temp 目錄位於 C:\Windows\Temp。 檢查 Windows 環境變數以確認 Windows Temp 目錄的位置。

解決方案

若要解決此問題,請刪除 Windows Temp 資料夾的內容, (通常 C:\Windows\Temp) ,然後再次嘗試移除 Windows Server 角色或功能。

資料收集

若您需要 Microsoft 支援,建議您按照使用 TSS 收集部署相關問題的資訊所述步驟來收集資訊。