{"id":1124,"date":"2011-03-21T19:20:29","date_gmt":"2011-03-21T13:50:29","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=1124"},"modified":"2019-06-19T18:58:31","modified_gmt":"2019-06-19T18:58:31","slug":"clear-ie-cache-command-line-rundll32","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/clear-ie-cache-command-line-rundll32\/","title":{"rendered":"Clear Internet Explorer Cache using Rundll32 Command-Line"},"content":{"rendered":"<p>The rundll32 command-line involving inetcpl.cpl and the entry point <code>ClearMyTracksByProcess<\/code> which is widely in use since Internet Explorer 7, is effective only if it&#8217;s run in low integrity level. This is because in Windows Vista and higher, Internet Explorer manages two different cache containers, one for the Protected Mode and another cache folder to store files when Internet Explorer is outside the Protected Mode.<!--more--><\/p>\n<p>When a user executes the following command in order to clear the cache:<\/p>\n<pre>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8<\/pre>\n<p>The command executes with a Medium integrity level and thus clears only the cache folder for websites visited outside of Protected Mode. Whereas all of your cache files are in the Protected mode area, that is under the <b>Low<\/b> directory.<\/p>\n<p>In order to properly clear the cache, you&#8217;ll have to run the same command again but this time launch it in Low integrity level. This is what Internet Explorer exactly does when you try to clear the cache via menu options. This is evident from the following graphic.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/ie-low-int-5.png\" alt=\"Clear Internet Explorer Cache\" width=\"555\" height=\"95\" \/><\/p>\n<h2>How to Clear Internet Explorer Cache Using Command-Line?<\/h2>\n<p>To properly clear the Internet Explorer Temporary Internet Files cache, use one of these options.<\/p>\n<p><b>Option 1: Using PsExec.exe<\/b><\/p>\n<p>Use from Windows SysInternals to launch Rundll32.exe with low Integrity Level. Download <i>PsExec.exe<\/i> from <a href=\"http:\/\/live.sysinternals.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Windows SysInternals<\/a> and save it to a convenient location. To clear IE cache, run this command:<\/p>\n<pre>&lt;Path:&gt;\\psexec.exe -l c:\\windows\\system32\\RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8<\/pre>\n<p>Example:<\/p>\n<pre>c:\\tools\\psexec.exe -l c:\\windows\\system32\\RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8<\/pre>\n<p><i>Thanks to <a href=\"http:\/\/stackoverflow.com\/questions\/33447236\/how-can-i-delete-internet-explorer-cookies-using-bat-script\" target=\"_blank\" rel=\"noopener noreferrer\">magicandre1987<\/a> at StackOverflow for the PsExec tip.<\/i><\/p>\n<p><b>Option 2: Make a Copy of Rundll32.exe and Set it to Run with Low IL<\/b><\/p>\n<p>Open your Windows\\System32 directory. Make a copy of rundll32.exe and name the copy as rundll32-low.exe<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ie-clearcache-low-il4.png\" alt=\"Clear Internet Explorer Cache\" width=\"459\" height=\"40\" border=\"1\" \/><\/p>\n<p>Now, open an elevated or administrator Command Prompt, and type in:<\/p>\n<pre>icacls rundll32-low.exe \/setintegritylevel low<\/pre>\n<p>You should &#8220;see the successfully processed 1 files&#8221; in the output.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ie-clearcache-low-il1.png\" alt=\"Clear Internet Explorer Cache\" width=\"541\" height=\"149\" border=\"0\" \/><\/p>\n<p>Optionally, make a note of the disk space consumed by Internet Explorer&#8217;s Temporary Internet Files\\Low directory, that&#8217;s where the real cache (for Protected mode) is stored.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ie-clearcache-low-il2.png\" alt=\"Clear Internet Explorer Cache\" width=\"363\" height=\"481\" border=\"0\" \/><\/p>\n<p>Press WinKey + R, and type the command-line to clear the IE cache, but this time using <b>rundll32-low.exe<\/b>.<\/p>\n<pre>RunDll32-low.exe InetCpl.cpl,ClearMyTracksByProcess 8<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ie-clearcache-low-il3.png\" alt=\"Clear Internet Explorer Cache\" width=\"424\" height=\"231\" border=\"0\" \/><\/p>\n<p>That does the job perfectly. Here you go.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ie-clearcache-low-il6.png\" alt=\"Clear Internet Explorer Cache\" width=\"363\" height=\"481\" border=\"0\" \/><\/p>\n<p>You could also make a shortcut to the above command-line if you want.<\/p>\n<p><i><b>Note:<\/b> The above method has a small drawback. The rundll32-low.exe process does clear the cache perfectly, but doesn&#8217;t exit cleanly. The process shows up in Task Manager until you exit it manually. This shouldn&#8217;t affect the performance though.<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The rundll32 command-line involving inetcpl.cpl and the entry point ClearMyTracksByProcess which is widely in use since Internet Explorer 7, is effective only if it&#8217;s run in low integrity level. This is because in Windows Vista and higher, Internet Explorer manages two different cache containers, one for the Protected Mode and another cache folder to store &#8230; <a title=\"Clear Internet Explorer Cache using Rundll32 Command-Line\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/clear-ie-cache-command-line-rundll32\/\" aria-label=\"Read more about Clear Internet Explorer Cache using Rundll32 Command-Line\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[13],"tags":[264],"class_list":["post-1124","post","type-post","status-publish","format-standard","hentry","category-internet-explorer","tag-internet-explorer"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78295,"url":"https:\/\/www.winhelponline.com\/blog\/turn-off-file-uri-history-run-dialog\/","url_meta":{"origin":1124,"position":0},"title":"How to Turn off File Path URI history in Run Dialog","author":"Ramesh","date":"April 7, 2025","format":false,"excerpt":"When you open the Run dialog and type f or \/ (forward slash), the recently accessed files may appear in the list as file path URIs. You wonder where these entries are stored, as they're not in the RunMRU registry location. Resolution The file URI history comes from the IE\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"Run dialog turn off or clear file URI history - inetcpl.cpl","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/04\/run-uri-history-clear-inetcpl.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1015,"url":"https:\/\/www.winhelponline.com\/blog\/clear-thumbnail-cache-windows\/","url_meta":{"origin":1124,"position":1},"title":"How to Clear the Thumbnail Cache in Windows 10 or 11","author":"Ramesh","date":"August 11, 2007","format":false,"excerpt":"Windows keeps a copy of all of your picture, video, and document thumbnails in a cache database so they can be displayed quickly when you open a folder. Sometimes due to thumbnail cache corruption, thumbnail previews may not work for some files, for a particular icon size or for all\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"Clear the Thumbnail Cache in Windows","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/08\/corrupt-thumbnail.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/08\/corrupt-thumbnail.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/08\/corrupt-thumbnail.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/08\/corrupt-thumbnail.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":46181,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x80070522-required-privilege-not-held\/","url_meta":{"origin":1124,"position":2},"title":"Error 0x80070522: Required privilege not held by the client when copying files","author":"Ramesh","date":"May 15, 2023","format":false,"excerpt":"When you copy files to a non-system drive's root folder, the error code 0x80070522 (\"ERROR_PRIVILEGE_NOT_HELD\") may occur. The full error message verbatim is mentioned below: An unexpected error is keeping you from copying the file. If you continue to receive this error, you can use the error code to search\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"0x80070522 unexpected error when copying a file - privilege not held. when copying files","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/0x80070522-unexpected-error-copy-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/0x80070522-unexpected-error-copy-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/0x80070522-unexpected-error-copy-2.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/0x80070522-unexpected-error-copy-2.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":167,"url":"https:\/\/www.winhelponline.com\/blog\/how-to-rebuild-the-icon-cache-in-windows\/","url_meta":{"origin":1124,"position":3},"title":"How to Rebuild Icon Cache in Windows 10 or 11","author":"Ramesh","date":"April 8, 2008","format":false,"excerpt":"We may face the icon cache corruption issue sometimes in Windows 10\/11 and earlier OS. The icon cache corruption causes the wrong icons to show up for certain programs or in certain areas of the Windows shell, or no icons at all. For example, your pinned taskbar shortcuts may show\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"clear and rebuild icon cache completely","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/cleariconcache-utility.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":316,"url":"https:\/\/www.winhelponline.com\/blog\/unspecified-error-when-adding-a-link-to-favorites-in-windows-vista\/","url_meta":{"origin":1124,"position":4},"title":"Unspecified error when adding a link to Favorites in Windows 7","author":"Ramesh","date":"March 28, 2007","format":false,"excerpt":"After reading the post Folder Redirection for Favorites on the Same\u00a0Machine\u00a0at the IE Team blog, I relocated my Favorites folder to a different drive. After the relocation, when I tried to add a URL to Favorites, I received the following error: Unable to create 'Title': Unspecified error The solution is\u2026","rel":"","context":"In &quot;Internet Explorer&quot;","block_context":{"text":"Internet Explorer","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/internet-explorer\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":744,"url":"https:\/\/www.winhelponline.com\/blog\/clear-ie-cache-per-domain\/","url_meta":{"origin":1124,"position":5},"title":"Clear IE Temporary Internet Files Cache for a Particular Site","author":"Ramesh","date":"October 21, 2008","format":false,"excerpt":"When designing Web pages, you may need to frequently empty the browser cache so that the browser reads the updated stylesheets and scripts, instead of reusing the ones from the cache. Using a cache cleanup tool like CCleaner can help, but they remove the cache for all sites. This is\u2026","rel":"","context":"In &quot;Internet Explorer&quot;","block_context":{"text":"Internet Explorer","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/internet-explorer\/"},"img":{"alt_text":"ie cache clear for particular website","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/10\/iedev-tif2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/10\/iedev-tif2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/10\/iedev-tif2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=1124"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1124\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=1124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=1124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}