I gave this a shot on one of my terminal servers since I was planning to use a different tool for the exact same thing during my scheduled offline maintenance window tonight.
The console scrolled a few thousand lines of "The system cannot find the drive specified." but did manage to free up some space.
By the looks of the log, it cleaned Chrome caches but didn't hit a single IE temporary internet files cache.
*Edit: ICSweep's results confirm that there was plenty left to clean in IE cache directories.
OK, I have a Server 2008 R2 test VM and am looking at it now.
Can you comment out the line that reads @echo off and re-run the script, then copy and paste the output to Pastebin or email it to me? (my email is at top of script comments)
Basically trying to see what directory it's not finding.
I'd rather leave that up to people running the script if they want to do it; auto-installing the desktop feature on a server isn't really Tron's this scripts job.
In Windows Server 2008 R2, there are "Features" and "Roles." Roles are major things like DNS server, DHCP server, etc. Features are smaller things like "Desktop Feature" which installs (I think) screensavers, handwriting support, and some other random things. Beyond patching the common apps (Java/Reader/Flash) I try to avoid changing anything else on the system.
I apologize, I got mixed up and thought this comment was in the Tron thread.
I don't think I'll put it in this script, mainly because whenever you delete the SoftwareDistribution folder Windows forces a complete rebuild of it, and that takes a little while (at next reboot). A lot of the computers I use the script on have TempFileCleanup.bat in their startup folder, and so nuking the SoftwareDistribution folder every time the computer rebooted would cause a LOT of delays.
You can run this line though if you want, just copy and paste it into an Administrator command prompt:
yeah, i created separate batch file for WSUS cleanup, "net stop wuauserv del c:\windows\SoftwareDistribution /q /s net start wuauserv" i cannot add in tempfilecleanup.bat because i have added repository folder in BitTorrent for sync so tempfilecleanup.bat is default file published by you.
2
u/crondom90 Jan 28 '15
Thanks
1
u/saeraphas Sep 16 '14 edited Sep 16 '14
I gave this a shot on one of my terminal servers since I was planning to use a different tool for the exact same thing during my scheduled offline maintenance window tonight.
The console scrolled a few thousand lines of "The system cannot find the drive specified." but did manage to free up some space.
By the looks of the log, it cleaned Chrome caches but didn't hit a single IE temporary internet files cache.
*Edit: ICSweep's results confirm that there was plenty left to clean in IE cache directories.
1
u/pushpak359 Nov 07 '14
hi Vocatus, Can you please add C:\Windows\SoftwareDistribution folder for cleaup its to heavy because of WSUS. Thanks.