How to clear the IE cache by programming in PowerShell
This article mainly introduces how to clear the IE cache by programming in PowerShell. The code in this article is also applicable to batch processing programs. For more information, see
Use rundll32.exe to run the corresponding functions of Internet Options:
Temporary Internet Files (Temporary Internet Files)
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 (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