Solved

Delete Temp Folders on Remote Desktop Services 2012

Posted on 2013-12-16
6
3,122 Views
Last Modified: 2013-12-29
We are currently rolling out Remote Desktop Services 2012.  Our test users hit an issue that they were unable to print from Internet Explorer they received an empty page with a file path at the bottom pointing to a Low folder within their user profile that didn't exist.  We have rectified this after some searching by turning off per session folders and creating a logon script that sets the Low folder to Low integrity level.  However by disabling per session folders within group policy the temp folders are not deleting on exit. This seems to be due to the fact under group policy  - Remote Desktop Host  - Temp Folder policy requires the 'Do not use temporary folders per session' to be disabled (i.e to allow creation) to enable the 'Do Not Delete temp folders upon exit' - to be disabled (therefore deleting temp folders)  However if I enable per session folders to allow temp folders to be deleted it then stops my users from printing from IE as the workaround requires per session folders to be switched off!  it seems I can't have both the option to set the Low integrity folder to allow printing and also to enable Temp folder to delete on log off. Any help gratefully received.
0
Comment
Question by:ernie10
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Coralon
ID: 39728335
You need to dig in deeper.. turning off per-session temp folders is a terrible idea.  (I have no idea why MS even still has that as an option..  Citrix had created that back with WinFrame when the temp directory didn't always matter very much, but those days are long past).

Can you capture a procmon trace against a failed IE print, so we can see what is really going on?

Coralon
0
 

Author Comment

by:ernie10
ID: 39728822
Coralon

Thanks for response, I have turned per user sessions back on and done a trace on one user when they try to print form IE  the error on the document is ' file:///C:/Users/%username%/AppData/Local/Temp/6/Low/oWSKXEBD.htm'.  I have captured the main part of the document where it points to the Low folder Path not found - as this seems to be the issue as it doesn't create the Low folder within the user session.  We initially thought we could create a script to sort this however couldn't get it to work with the session id changing all the time.
Trace.jpg
0
 
LVL 23

Expert Comment

by:Coralon
ID: 39730995
Unfortunately, Path Not Found is a standard response.. all it really means is that it is trying to find a path and it's not there.  It doesn't mean it won't/can't be created.. just that it's not there at that moment.  

I was hoping for the full capture to look through it.. but something to check for while this happens:
1. Are you sure the Low directory is not being created? It is a standard part of AppData? During this incident, I would verify if it is there or not. If it is not, then you have a serious server issue (like possibly rebuild it type of serious).
2. Are you seeing any access denied errors? Those are usually the culprits.  

Also.. can they print anything from that server?  (I'd publish notepad to them, and try it.)
Can they print from IE at all, or is just one particular site/page that they can't?

Coralon
0
 

Accepted Solution

by:
ernie10 earned 0 total points
ID: 39737877
We are sure the low folder is not created and this is an issue on our other RDSH server and also all windows 8 PCs for none admins.

We have now resolved this by enabling temp folders per session, and creating the low folder in a logon script for users to the path %temp%.

mkdir %temp%\Low
ICACLS %temp%\Low /setintegritylevel (OI)(CI)low
0
 

Author Closing Comment

by:ernie10
ID: 39744497
Creating the folder in the logon script using the %temp% variable enabled the folder to be created regardless of the session number allocated as the %temp% is locate in the session number folder path
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now