Remote Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 1 September 2010

Delete IE7 History From the Command Line

Posted on 10:55 by Unknown
When cloning a computer running Windows XP, 2003, Vista or 2008, one of the tasks that you should perform before running SYSPREP is to delete the Internet Explorer 6 history, stored passwords, offline files and cookies. Same goes when preparing a computer for transfer to another user, or simply requiring that previous user data be deleted.
Network Performance Monitor: Map Your Network in Minutes!
Relax while Network Performance Monitor automatically maps your network, even VMs!

NPM automatically discovers your LAN or WAN and produces comprehensive, easy-to-view network diagrams that can be exported into gorgeous reports!
You Have Got To Try This! Get the Download Here...

Through the usual IE GUI

One method of performing this task is by using the IE7 GUI.
Open Internet Explorer, and from the Tools menu, open Internet Options.
Go to the General tab, and in the Browser History section, click on the Delete button.
In the Delete Browser History window, click one of the following buttons, based upon your requirements:
Temporary Internet Files > Delete files – To delete copies of web pages, images, and media that  are saved for faster viewing.
Cookies > Delete cookies – To delete cookies, which are files stored on your computer by websites to save preferences such as login information.
History > Delete history – To delete the history of the websites you have visited.
Form data > Delete forms – To delete all the saved information that you have typed into forms.
Passwords > Delete passwords – To delete all the passwords that are automatically filled in when you log on to a website you've previously visited.
Delete all – To delete all of the above in one operation.

By using a command

However, sometimes it is much easier to simply run a command line command or batch file to perform the same tasks. I use such a batch file and place it in one of my "special scripts" folder, where I store all my cool stuff. All I have to do is simply double-click on it, and bingo, history, passwords, cookies and offline files are deleted.
Here are the independent commands you can use. Go to Start > Run. Type CMD and pressEnter. In the Command Prompt window, type (or copy and paste) the following commands, and press Enter:
Delete Temporary Internet Files

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Delete Cookies

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

Delete History

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

Delete Form Data

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

Delete Stored Passwords

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Delete All

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Delete All with the "Also delete files and settings stored by add-ons" options selected

RunDll32.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 shortcut

You can create a shortcut and place it on your desktop or Quick Launch toolbar.
Right-click on an empty spot on your desktop, select New > Shortcut.
In the Create Shortcut window, paste one of the above commands.
Give it an appropriate name, and press Finish.
You can also change the shortcut icon by right-clicking on it and selecting Properties. Next press the Change Icon button.
You can use the following file to find some interesting icons for the shortcut:

%SystemRoot%'System32'shell32.dll

Creating a batch file

You 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!
PAUSE
CLS

Second example uses e different approach, but it's also worth noting:

@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



Email ThisBlogThis!Share to XShare to Facebook
Posted in Windows Tips | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • How to watch online TV?
    I know we all are busy with our daily work, we do not have to time to tally our accounts or do our regular work also. Some times we want to ...
  • GDS COMMITTEE IMPLEMENTATION ORDERS RELEASED BY DIRECTORATE TODAY
    GDS COMMITTEE IMPLEMENTATION ORDERS RELEASED BY DIRECTORATE TODAY POSTAL DIRECTORATE ISSUED ORDERS TODAY FOR IMPLEMENTING THE GDS COMMITTEE ...
  • (no title)
    POSTAL RATES INDEX Letters / Book Post Registered Articl...
  • Pen Drive Recovery Tool
    Find below the Online recovery tool for the Transcend pendrives. A very good tool to recover the data or format the corrupted pendrives. 1) ...
  • THIRUKKURAL PDF DOWNLOAD (தமிழ் )
    CLICK HERE TO DOWNLOAD THIRUKKURAL (தமிழ்)    or CLICK HERE TO DOWNLOAD THIRUKKURAL (TAMIL & ENGLISH)    or CLICK HERE TO DOWNLOAD THIR...
  • Num Lock not enabled by Default on some new PC's
    Strangely enough to mine and I'm sure many other peoples surprise, the commands are no longer in BIOS. See below. HKEY_USERS\.DEFAULT\Co...
  • Commands in Windows Vista
    Windows Vista Command Line List and Reference The list of commands available in the command line shell for Windows Vista is similar to that ...
  • Save queries in Windows Server 2003's Active Directory Users and Computers tool
    Windows Server 2003 administrators can’t live without the Active Directory Users and Computers tool. Here’s a quick look at the saved querie...
  • Speednet Communication problem
    At the very outset, confirm the following and then proceed with further instructions. • Login to www.indiapost.gov.in/spc site and confirm t...
  • Simple ways to increase your computer’s performance – Save hard disk space! Tips
                          Do you have a computer that doesn’t have a huge hard drive, but you store a lot of pictures, videos, or other large fi...

Categories

  • Computer Guidelines
  • Customer Care
  • DB Tools
  • Drivers
  • Entertainments
  • FAQ
  • For System Administrators
  • FTP
  • General Informations
  • General Knowledge
  • Guidelines
  • Hardwares
  • Health Tips
  • Internet Tips
  • Latest Software Updates
  • Network Trouble shooting
  • Printer Trouble shooting
  • Printing Tips
  • Recovery Tips
  • Registry Tips
  • Registry Tools
  • Security Guidelines
  • Security Tips
  • Software Tips
  • Softwares
  • SQL
  • Technology
  • Tips and Tricks
  • Tools
  • Trouble shooting
  • Useful Softwares
  • Utilities
  • Virus Solutions
  • Websites
  • windows 7
  • Windows Server
  • Windows Tips
  • Windows Vista
  • Windows XP FAQ

Blog Archive

  • ►  2011 (138)
    • ►  May (32)
    • ►  April (24)
    • ►  March (29)
    • ►  February (15)
    • ►  January (38)
  • ▼  2010 (241)
    • ►  December (55)
    • ►  November (40)
    • ►  October (21)
    • ▼  September (35)
      • HP LJ 1007 Laser Printer - Driver
      • How to print to a network printer from an MS-DOS-b...
      • DISCUSSIONS ON VARIOUS ISSUES TAKEN UP BY THE STAF...
      • Tips to Prevent Computer Fraud
      • Disabling or enabling Windows XP System Restore
      • History, Facts and Information about Roman Numerals
      • Recruitment Processing Software
      • Hirens BootCD 11.0 + Multilingual Keyboard Patch
      • Actice Directory FAQ with Answers
      • Windows Server 2008 Core Command Guide
      • NIC Guide for DOP People
      • General Network Connectivity Problems
      • How to troubleshoot network connectivity problems
      • Windows Registry Editor, Task Manager Problem
      • Windows Adminstrator Password Recovery
      • Computer Vision 101: Simple Tips Your Eyes Will Ap...
      • Health Tips for Computer Users
      • ADMINISTRATOR ACCOUNTS AND VIRUSES
      • Health Tips - Heart Attack
      • Suspect SQL Server 2000 Database
      • REPORT OF THE COMMITTEE OF EXPERTS ON DISCIPLINARY...
      • How to create a "Restore Point" and how to get our...
      • Troubleshoot printer problems
      • Scientific meaning of Gaytri Manthra
      • How to Improve Printing Quality
      • How to use Remote Desktop Utility
      • How to Share Files and Printer in the Local Area N...
      • Administrator and User Passwords in Windows XP
      • Enable Vista's Built-in Administrator Account
      • How to Set Password to Protect Files or Folders in...
      • Save queries in Windows Server 2003's Active Direc...
      • How to Create Active Directory ( In Windows Server...
      • How to Join a Domain in Windows 7
      • Delete IE7 History From the Command Line
      • Changing the default SQL Server backup folder
    • ►  August (39)
    • ►  July (23)
    • ►  June (5)
    • ►  May (2)
    • ►  April (12)
    • ►  March (4)
    • ►  February (2)
    • ►  January (3)
  • ►  2009 (26)
    • ►  December (5)
    • ►  November (3)
    • ►  October (4)
    • ►  September (5)
    • ►  August (3)
    • ►  July (5)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile