Have you recently (or not that recently) updated new versions of Windows? Great, now’s the time to clear some space by deleting the temporary files and user profiles you no longer need. Why do this, you ask? Well, clearing temporary Windows Update files usually fixes most update errors.

These temporary files are used by the Windows Setup process when installing a major update — and unless you’re in the middle of a Windows installation, you don’t need them anywhere and are welcome to get rid of them once and for all!

This script deletes temporary files for Windows Update, all user profiles, as well as the system TEMP directory. The script will momentarily stop the Windows Update service until its temporary files have been deleted; and start the service again once completed. 

It’s worth noting that clearing temporary Windows Update files usually fixes most update errors.