Solved

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

Posted on 2015-01-31
4
12,937 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 24

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 3

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
0
 

Author Closing Comment

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

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

733 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