
PsExec.exe >cleanup_list_log.txt -c D:\PSTools\CleanUp_Update_V1.3.batĬleanup_list.txt: List with all PC in you domain.Ĭleanup_list_log.txt: The log created after the runĭ:\PSTools\CleanUp_Update. Additional functions The script can also send an email with the rejected updates afterwards. %systemroot%\System32\cleanmgr.exe /sagerun:11 > d:\log2.txt Even though the WSUS Cleanup Wizard supposedly cleans them up, this does not always seem to work. %SystemRoot%\System32\reg.exe add “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Update Cleanup” /v StateFlags0011 /t REG_DWORD /d 0x2 /f > d:\log1.txt bat script mentioned above in every PC in your domain using SCCM. If you want to apply the whole process automatically for all your PC in your domain you need to use PsTools: PsExec.exe. This can lead to Gigabyte large downloads.
Windows update cleanup update#
Please note that Windows Update will download all updates anew when you clear the update cache. For example, select a date for the next day.

Under Pause updates, in the Advanced options, select a date that you want to pause the updates for. To do this, press Windows key + I to open Settings, then head to Update & Security > Windows Updates > Advanced options. Disk Clean-up also shows a Windows Upgrade Log File that has 86.8 MB and I assume that is leftover from the 8.0 to 8.1 upgrade a long time ago. Windows will delete the downloaded update files if you pause automatic updates. Without a performance benefit I think I will just watch it for a while. You can use Storage Sense to delete these outdated Windows Update files. Currently my WinSxS folder has 7.92 GB and my Update Clean-up folder has 186 MB so thats not extraordinarily large.
Windows update cleanup how to#
You can re-run a check for updates once all files have been deleted. How to clean up Windows Update files via Storage Settings. In folder options, click View and select Show. Right-click on the Windows Update service, and select Start from the list of options.

With this method you will be able to automate the whole process mentioned above, f or example when you have let’s say 100-200 users. Delete downloaded Windows updates Click on View -> Options -> Change folder and search options.

Windows Update Cleanup Automatically (Windows 7 / 10) Choose the exact file location and then click the 'Scan' button to continue.
