?
Solved

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

Posted on 2015-01-31
4
Medium Priority
?
15,452 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 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
1
 

Author Closing Comment

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

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…
Suggested Courses

764 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