If you're encountering the error "Removal of one or more roles, role services, or features failed. The referenced assembly could not be found. Error: 0x80073701" when trying to uninstall the IIS Web DAV Publishing feature on a Windows Server 2019 Core using PowerShell, it typically indicates an issue with the Windows component store
Run the System File Checker (SFC): Open PowerShell with administrative privileges and run the following command:
Use the Deployment Imaging Service and Management Tool (DISM): If SFC finds issues but can’t fix them, use DISM to repair the Windows image. Run these commands one by one in PowerShell:
Attempt to Remove the Feature Again: After the DISM commands complete successfully, try removing the Web DAV Publishing feature again:
Ensure Windows Updates Are Installed:
Clean Up the Component Store:
Reboot the Server
# Run SFC
sfc /scannow
# Run DISM commands
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
# Clean up component store
DISM /Online /Cleanup-Image /StartComponentCleanup
# Attempt to remove the feature again
Uninstall-WindowsFeature Web-DAV-Publishing