Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to delete AppData\Local\Microsoft\Windows\INetCache\IE\ temp files during logoff

Posted on 2015-01-31
4
Medium Priority
?
16,799 Views
Last Modified: 2015-02-09
Hi guys,

I'm trying to get the AppData\Local\Microsoft\Windows\INetCache\IE\ files and folders deleted when an user logoff as the files needs to be deleted afterwards. The user for example download a document from the internet using IE and edit it straight away using libre office, so the file needs to be deleted after the user logoff.

I've tried this as a test:

C:\Users\Administrator>del /q /s C:\Users\%USERNAME%\AppData\Local\Microsoft\Win
dows\INetCache\IE\*.*
Deleted file - C:\Users\administrator\AppData\Local\Microsoft\Windows\INetCache\IE\35LF6500\V5M53G7K.htm
Deleted file - C:\Users\administrator\AppData\Local\Microsoft\Windows\INetCache\IE\HTH6Y87B\snippet[1].htm
Deleted file - C:\Users\administrator\AppData\Local\Microsoft\Windows\INetCache\IE\HTH6Y87B\snippet[2].htm
C:\Users\administrator\AppData\Local\Microsoft\Windows\INetCache\IE\QR5EKELF\TestWordDoc.doc
Access is denied.
Deleted file - C:\Users\administrator\AppData\Local\Microsoft\Windows\INetCache\IE\QR5EKELF\url[2].htm

Open in new window


as you can see it deletes most of the files, but not the document that was downloaded from the internet. This won't work even elevating the cmd to administrator priviledges.

What other ways I could do to clear these files out? I'm looking for perhaps a more elegant solution like a VB script.

Thanks!
0
Comment
Question by:Alex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 25

Expert Comment

by:NVIT
ID: 40581460
Have you tried this to  delete the cache?
- Run it while user is logged on.
- Be sure to close IE before running it.
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Open in new window

0
 
LVL 4

Expert Comment

by:Adam Lewis
ID: 40582325
Have You tried any of these In IE settings?
Tools > Internet Options > General > Browsing History > Delete Browsing History on exit
Tools > Internet Options > General > Settings... > Caches and Databases > Un-check 'Allow website Caches and databases'
Tools > Internet Options > Advanced > Empty Temporary Internet Files when browser is closed
0
 

Accepted Solution

by:
Alex earned 0 total points
ID: 40588829
I ended up creating my own solution by executing a batch script to delete all files. It needed to be a group policy to work for all users
1
 

Author Closing Comment

by:Alex
ID: 40597947
sorted the problem with a batch script
1

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question