objUser.SetPassword "55555555"
End If
Else
objGroup.Remove(objUser.ADsPath)
End If
Next
//妙用脚本和批处理清除电脑中的痕迹
实现本功能使用了两个文件,VBS脚本文件reg.vbs(可以自己定义文件名);批处理文件reg.bat(可以自己定义文件名)。
1.VBS脚本文件如下:
Dim WSHShell
Set WSHShell=WScript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKLMSoftwareMicrosoftWindowsCurrentVersionRunreg","reg.vbs"
WSHShell.RegWrite "HKLMSoftwareMicrosoftWindowsCurrentVersionRunOncedeldel","reg.bat"
WSHShell.RegWrite "HKCUSoftwareMicrosoftInternet ExplorerMainStart Page", "about:blank"
WSHShell.RegWrite "HKCUSoftwareMicrosoftInternet ExplorerTypedURLs",""
WSHShell.RegDelete "HKCUSoftwareMicrosoftInternet ExplorerTypedURLs"
WSHShell.RegWrite "HKCUSoftwareMicrosoftInternet ExplorerTypedURLs",""
WSHShell.RegWrite "HKCUSoftware3721InputCns",""
WSHShell.RegDelete "HKCUSoftware3721InputCns"
WSHShell.RegWrite "HKCUSoftware3721InputCns",""
本脚本前二行为定义变量,请大家照着写。从第三行开始,是对注册表的处理。第三行、第四行为在注册表中添加计算机启动时自动运行的过程文件,一个是该脚本自身为reg.vbs,另一个是reg.bat批处理文件。第五行为还原IE开始页为“about:blank”;第六、七、八行为清除IE浏览器地址栏留下的曾经浏览过的网页地址名;第九、十、十一行为清除IE地址栏里的网络实名。
2.批处理文件如下:
@deltree -y c:windowstemp*.*
@deltree -y c:windows"Temporary Internet Files"*.*
@deltree -y c:windowsHistory*.*
@deltree -y C:WindowsRecent*.*
@deltree -y C:RECYCLED*.*
@deltree -y C:WINDOWSCookies*.*







