Error 0x800f0922 when trying to uninstall Windows Server roles or features

Applies to: Microsoft System Center Configuration Manager 2007System Center Configuration Manager 2007 R2Microsoft System Center Configuration Manager 2007 Service Pack 2


When you try to uninstall a Windows Server role or feature by using either Server Manager or the PowerShell cmdlet Uninstall-WindowsFeature, the attempt fails, and you receive error code 0x800f0922 and the following error message:

For example, when uninstalling Windows Deployment Services (WDS), the following errors were logged in the CBS.log under "C:\Windows\Logs\CBS":


This issue can occur if there are more than 65,000 files in the Windows Temp directory. The Windows Temp directory is usually located at C:\Windows\Temp. Check Windows environment variables to confirm the location of the Windows Temp directory.


To resolve the problem, delete the contents of the Windows Temp folder (normally C:\Windows\Temp), and then again try to remove the Windows Server role or feature.