Use the logout script to automatically clear the traces of the Internet (2)

  
        Clear IE History

IE history, the usual method is to remove the "Internet Options" "General" "Clear History." However, we can also use the shutdown script to achieve automatic cleanup. Add a command "DEL/Q/S "C:\\Documents and Settings\\<username>\\Local Settings\\History"" to the Cleanup.bat batch file created earlier.

IE address bar to clear in front of record

clear IE history is incomplete, when we enter and have entered the URL string as the IE address bar, will still be displayed Relevant URL records. To clear these records, you must delete all key values ​​under the registry [HKEY CURRENT USER\\Software\\Microsoft\\Internet Explorer\\TypedURLs] branch.

this file with Notepad to create a script, the script reads as follows:

Dim WSHShell

Set WSHShell = WScript.CreateObject ( "WScript.Shell")

WSHShell.RegWrite "HKCU\\Software\\Microsoft\\Internet Explorer\\TypedURLs\\", ""WSHShell.RegDelete "HKCU\\Software\\Microsoft\\Internet Explorer\\TypedURLs\\"The above script has four sentences: the first sentence defines a variable WSHShell, The second sentence creates an object, and the third sentence is written to the registry. If the item does not exist in the registry, an error message will appear when executing the script. Save the above as Cleanup.vbs after entering the above. Note that the suffix must be vbs in order to ensure the normal execution of the script.

after their completion, expand "User Configuration" "Windows Settings", "Scripts (logon /logoff)" node, double-click in the right pane of the "write-off" project, in the pop-up window in Group Policy Click the "Add" button in the "Logout Properties" dialog box to add Cleanup.vbs as a logout script (Figure 2). This will automatically clear the IE address bar record when the computer logs out or shuts down.



2 is added as a logoff script

front
introduces the method of the shutdown and logoff scripts automatically clean up traces of the Internet, if you have other The project needs to be cleaned up, or you can refer to the above method. Here to remind the reader that before using the script to achieve automatic cleaning, it is best to clean it manually by hand.

Copyright © Windows knowledge All Rights Reserved