Solved

Delete Internet Explorer temporary internet files on terminal server

Posted on 2013-11-04
8
6,762 Views
Last Modified: 2013-12-30
I need to automate the routine removal of temporary internet files from every local user profile on a terminal server, preferably using the GPO option, "Empty temporary internet files folder when browser is closed".

I have created a GPO and linked it to the Terminal Server OU (where the terminal server computer account resides). I have tried enabling the user configuration setting and loopback processing on the GPO, and have also tried enabling the computer configuration setting. I have verified through gpresult on the terminal server that the policy is being applied, but it is not deleting the files. Screenshot attached.

Terminal server is running Windows Server 2008 R2 and IE 9. I have tested this GPO on other non-terminal server servers (also Server 2008 R2 with IE9), and the GPO works as long as only ONE user is logged into that server at a time. If I log in more than one administrator user on the other servers and open multiple IE sessions, then the policy does not successfully delete the files when the browser is closed in either one or both remote desktop sessions.

I suspect there may be an inherent flaw in this policy whereby it does not work on terminal servers, where multiple users are logged in and multple IE sessions are constantly running. I have not verifed this theory yet by logging in outside business hours when no other users are logged in to see if the GPO works with only one user logged in.

Any ideas?

Thank you,

Jeff
GPO.png
0
Comment
Question by:garner-it
8 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 125 total points
ID: 39743751
While not a GPO solution, the solution here using Scheduled Tasks shows promise.

http://www.petri.co.il/forums/showthread.php?t=55025
0
 
LVL 22

Assisted Solution

by:Larry Struckmeyer MVP
Larry Struckmeyer MVP earned 125 total points
ID: 39744019
What is the goal, besides just deleting?  If to save space, what if you simply limited them to some really small number of temporary files?  A quick search turns up several GPO possibilities so I won't list any here.
0
 
LVL 15

Assisted Solution

by:joharder
joharder earned 125 total points
ID: 39744675
The GPO that is supposed to accomplish this is flaky at best.  Bottom line is that you can't depend on it.

The easiest way to effectively and completely delete Temporary Internet Files is to delete the folder contents of this specific folder via GPO.  So long as your AD is Windows Server 2008 R2, you can create a GPO based on an action for this specific location.  Set the policy to delete.  What this will do is delete the contents of that location every time GPOs are run (~90 minutes).  We've been doing it this way for about a year now with no issues whatsoever.

Doing it this way is much easier than scripting a logoff script or scheduled task.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 20

Expert Comment

by:Svet Paperov
ID: 39746215
Please, take a look at Internet Explorer Administration Kit (IEAK). It allows you to specify and lock down any option.

http://technet.microsoft.com/en-us/ie/bb219517.aspx
0
 
LVL 20

Assisted Solution

by:Svet Paperov
Svet Paperov earned 125 total points
ID: 39746236
Addition to my previous post: “Delete browsing history on exit” is not part of IEAK. Here is my GPO configuration supporting that (in the PNG file)
Delete browsing history on exit via GPO
0
 

Author Closing Comment

by:garner-it
ID: 39746583
Thank you all for your comments and proposed solutions.

o TommyBoy: The logon/logoff script looks promising and I will look into that further.

o FlyFishing: I will consider limiting the TIF size via GPO. It's already set at 250MB for each user, which I guess is the default (not sure where that setting is coming from), but I've found several users that had TIF folders of 5+GB so I'm not sure how effective that setting is.

o Joharder: I will look into the folder-based GPO policy.

o Spaperov: I didn't realize the "Delete browsing history" setting has the ability to delete temporary internet files, as I thought it was only for clearing the web site history list. Reading the policy description, it indicates it does also allow control of deleting temporary internet files, so I will look into this as an option as well.

Between these 4 options, I'm bound to get something working!

Thanks again!

Jeff
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Style on Chrome 1 33
Cannot join domain and UNC paths 9 49
How to request pages from a remote browser? 2 20
send to option in chrome 11 34
Know what services you can and cannot, should and should not combine on your server.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

679 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