PowerShell

关注公众号 jb51net

关闭
首页 > 脚本专栏 > PowerShell > PowerShell清空IE缓存

PowerShell中编程清空IE缓存方法

投稿:junjie

这篇文章主要介绍了PowerShell中编程清空IE缓存方法,本文代码同样适用于批处理程序,需要的朋友可以参考下

使用RunDll32.exe 来运行Internet选项的对应功能:

  Temporary Internet Files (Internet临时文件)
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

  Cookies
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

  History (历史记录)
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

  Form Data (表单数据)
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

  Passwords (密码)
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

  Delete All (全部删除)
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

  Delete All - "Also delete files and settings stored by add-ons"
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

阅读全文