There is a built-in tool in Windows 10 the Disk Cleanup Utility which can help you restore hard disk space by removing temporary files, Thumbnails, old Windows files, Windows Upgrade logs, Delivery optimization files, and many more. However, from time to time, this built-in tool also experiences some issues. One of these issues is when it gets stuck on Windows Update Cleanup. Read on to find out what you can do in such a case.
When the Disk Cleanup Utility is stuck on the Windows Update Cleanup, the process could be slow and take a long time to complete when purging the files. If this happens, click on Cancel to close the dialog box. After that, try running the Disk Cleanup Tool again as administrator and check if the files that you want to clean is still there or not. If it isn’t there, then this means that the cleanup has been done, otherwise, you need to refer to the options given below.
Option 1 – Try to manually delete the contents in the SoftwareDistribution folder
- Open the WinX Menu.
- From there, open Command Prompt as admin.
- Then type in the following command – don’t forget to hit Enter right after typing each one of them.
net stop wuauserv
net start cryptSvc
net start bits
net start msiserver
- After entering these commands, it will stop the Windows Update Service, Background Intelligent Transfer Service (BITS), Cryptographic, and the MSI Installer
- Next, go to the C:/Windows/SoftwareDistribution folder and get rid of all the folders and files thereby tapping the Ctrl + A keys to select them all and then click on Delete. Note that if the files are in use, you won’t be able to delete them.
After resetting the SoftwareDistribution folder, you need to reset the Catroot2 folder to restart the services you just stopped. To do that, follow these steps:
- Type each one of the following commands.
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
- After that, exit Command Prompt and restart your computer and then try to run Windows Update once more.
Option 2 – Try to manually delete the contents of the Windows.old folder
The Windows.old folder is the one that holds the older version of Windows when you upgrade. It comes really useful when you want to revert to the previous version of Windows 10. Thus, you can delete the Windows.old files in case the cleanup tool is stuck.
Option 3 – Try running Disk Cleanup in a Clean Boot State or Safe Mode
Another thing you can try is to restart your computer in a Clean Boot State or Safe Mode. Chances are, there are some programs that are preventing the Disk Cleanup Utility tool to run properly. After you restart your computer in a Clean Boot State or Safe Mode, try to run the Disk Cleanup tool again and then see if it now works or not.
Option 4 – Run the Windows Update Troubleshooter
You might also want to run the Windows Update Troubleshooter as it could also help in fixing this issue. To run it, go to Settings and then select Troubleshoot from the options. From there, click on Windows Update and then click the “Run the troubleshooter” button. After that, follow the next on-screen instructions and you should be good to go.
Option 5 – Run the DISM tool to fix the corruption in the Component Store
You can try running the Deployment Imaging and Servicing Management or DISM tool to fix the Wdf01000.sys Blue Screen error. Using this built-in tool, you have various options such as the “/ScanHealth”, “/CheckHealth”, and “/RestoreHealth”.
- Open the Command Prompt with admin privileges.
- Then type in the following commands and make sure to hit Enter right after you type each one of them:
- Dism /Online /Cleanup-Image /CheckHealth
- Dism /Online /Cleanup-Image /ScanHealth
- exe /Online /Cleanup-image /Restorehealth
- Do not close the window if the process takes a while as it will probably take a few minutes to finish.