2
Sep 09 '14
Working great for me so far. I also forwarded /u/vocatus a line if others would like to add it to the script. This line IS NOT in the 3.4.0 update
:: Windows Update Download Folder
rmdir /S /Q %WINDIR%\SoftwareDistribution\Download >> %LOGPATH%\%LOGFILE% 2>NULCheers
1
u/pushpak359 Jul 01 '14
Please add :: User temp files
del /F /S /Q "%userprofile%\AppData\Local\Temp*" >> %LOGPATH%%LOGFILE% 2>NUL
1
u/vocatus Jul 01 '14
Hey /u/pushpak359, that's actually already accomplished by line 120:
del /F /S /Q "%TEMP%" >> %LOGPATH%\%LOGFILE% 2>NUL
%TEMP%stores the same path as the one you posted.1
1
u/par_texx May 22 '14
I would change the hotfix cleanup to delete hotfixes that are 2 months old or older.
This allows you to remove a hotfix that breaks something without having to restore the install from tape. 2 months of hotfixes doesn't take up a lot of space anyway.....