In some cases, the 0x8000ffff update error is generated due to corrupt or missing system files. You can fix this by executing the following commands one by one in Command Prompt (Administrator) –
sfc /scannow
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth