Configure Temporary Folders for an RD Session Host Server
Applies To: Windows Server 2008 R2
By default, Remote Desktop Services creates a separate temporary folder on the RD Session Host server for each active session that a user maintains on the RD Session Host server. The temporary folder is created on the RD Session Host server in a Temp folder under the user’s profile folder and is named with the "sessionid." This temporary folder is used to store individual temporary files.
To reclaim disk space, the temporary folder is deleted when the user logs off from a session.
Use the following procedure to configure temporary folders on the RD Session Host server.
Membership in the local Administrators group, or equivalent, on the RD Session Host server that you plan to configure, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at http://go.microsoft.com/fwlink/?LinkId=83477.
On the RD Session Host server, open Remote Desktop Session Host Configuration. To open Remote Desktop Session Host Configuration, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Session Host Configuration.
In the Edit settings area, under General, double-click either Delete temporary folders on exit or Use temporary folders per session.
On the General tab of the Properties dialog box, select or clear the Delete temporary folders on exit check box and the Use temporary folders per session check box based on what is appropriate for your environment, and then click OK.
If you clear the Use temporary folders per session check box, a user's temporary files for all sessions on the RD Session Host server are stored in a common Temp folder under the user’s profile folder on the RD Session Host server.
You can also configure temporary folders on the RD Session Host server by using the Do not delete temp folder upon exit and the Do not use temporary folders per session Group Policy settings. These Group Policy settings are located in Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Temporary folders and can be configured by using either the Local Group Policy Editor or the Group Policy Management Console (GPMC). Note that the Group Policy setting will take precedence over the setting configured in Remote Desktop Session Host Configuration.
For more information about Group Policy settings for Remote Desktop Services, see the Remote Desktop Services Technical Reference (http://go.microsoft.com/fwlink/?LinkId=138134).