I need a script (.vbs,.bat,.wsh, etc.) that will enumerate all user profiles on a computer and then delete \local settings\temp and local settings\temporary internet files\
It will have to run as a startup script using local system privileges in order to access these directories.
The script file will begin by outputting the profiles to a text file for example:
dir “c:\documents and settings\”>directories.txt
The contents of this file will look something like this:
Volume in drive C has no label.
Volume Serial Number is E0000-0000
Directory of c:\documents and settings
02/15/2005 03:46 PM
The script file will read the contents of this file and discover that there the following folders for SMITHC, TAYLORA and WILLIAMSR exist and delete the ?local settings\temp? and ?local settings\temporary internet files? subdirectories of these directories
Any ideas?