otman06 You can use these commands in command prompt
Using in Command Prompt TypeHere are the commands you can use. Go to
Start >
Run. Type
CMD and press
Enter or Run as Administrator. In the
Command Prompt window,
type (or copy and paste) the following commands, and press
Enter:
Delete Temporary Internet FilesRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
Delete CookiesRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
Delete HistoryRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
Delete Form DataRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
Delete Stored PasswordsRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
Delete AllRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
Delete All with the "Also delete files and settings stored by add-ons" options selectedRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
Now it seems that the interesting bit is that you can combine the numbers to get 2 or more functions at the same time. For example, type:RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 9
This will delete the files (+8) and history (+1) in one step. You can incorporate this into a logoff script, and assign it to users by using Group Policy (GPO).
--------------------------------------------------------------------------------------------
Creating a batch fileYou can also create a batch file that you can simply run by double-clicking on it. Save the following text as a .BAT file:
@ECHO OFF
ECHO Deleting current user's Temporary Files, Cookies, History, Form Data and Stored Passwords
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
ECHO Done!
This example uses a different approach:@ECHO OFF
ECHO Cleaning Current User's Temp Folders
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Cookies'*.*"
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Local Settings'Temp'*.*"
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Local Settings'History'*.*"
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Local Settings'Temporary Internet Files'*.*"
ECHO Done!
PAUSE
CLS
PAUSE
CLS