USB记录清除方法

有些特殊部门不允许使用移动存储设备,接受检查的时候可以用这招。
删除

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{53f56307-b6bf-11d0-94f2-00a0c91efb8b}下的所有项
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB 下所有Vid开头的项
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR 下的所有Disk&Ven开头的项
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags 下所有项
c:\windows\setupapi.log 文件

Tags: 清理记录 , windows , 系统

清除系统垃圾

  1. @echo off  
  2. del /f /s /q %systemdrive%\*.tmp  
  3. del /f /s /q %systemdrive%\*._mp  
  4. del /f /s /q %systemdrive%\*.log  
  5. del /f /s /q %systemdrive%\*.gid  
  6. del /f /s /q %systemdrive%\*.chk  
  7. del /f /s /q %systemdrive%\*.old  
  8. del /f /s /q %systemdrive%\recycled\*.*  
  9. del /f /s /q %windir%\*.bak  
  10. del /f /s /q %windir%\prefetch\*.*  
  11. del /f /s /q %windir%\temp\*.*  
  12. del /f /q %userprofile%\cookies\*.*  
  13. del /f /q %userprofile%\recent\*.*  
  14. del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"  
  15. del /f /s /q "%userprofile%\Local Settings\Temp\*.*"  
  16. del /f /s /q "%userprofile%\recent\*.*" 

Tags: 清理记录 , windows , 垃圾 , 系统