Partager via


Temporary Folders

Applies To: Windows Server 2008

Policy settings in this node control creation and deletion of temporary folders for Terminal Service sessions.

The full path of this node in the Group Policy Management Console is:

Computer Configuration\Policies\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Temporary folders

Note

If you are using the Local Group Policy Editor, Policies is not part of the node path.

Available policy settings

Name Explanation Requirements

Do not delete temp folders upon exit

This policy setting allows you to specify whether Terminal Services retains a user's per-session temporary folders at logoff.

You can use this policy setting to maintain a user's session-specific temporary folders on a remote computer, even if the user logs off from a session. By default, Terminal Services deletes a user's temporary folders when the user logs off.

If you enable this policy setting, users' per-session temporary folders are retained when the user logs off from a session.

If you disable this policy setting, temporary folders are deleted when a user logs off, even if the administrator specifies otherwise in the Terminal Services Configuration tool.

If you do not configure this policy setting, Terminal Services deletes the temporary folders from the remote computer at logoff, unless specified otherwise by the server administrator.

Note
This policy setting only takes effect if per-session temporary folders are in use on the server. That is, if you enable the Do not use temporary folders per session policy setting, this policy setting has no effect.

At least Windows Server 2003

Do not use temporary folders per session

This policy setting allows you to prevent Terminal Services from creating session-specific temporary folders.

You can use this policy setting to disable the creation of separate temporary folders on a remote computer for each session. By default, Terminal Services creates a separate temporary folder for each active session that a user maintains on a remote computer. These temporary folders are created on the remote computer in a Temp folder under the user’s profile folder and are named with the "sessionid".

If you enable this policy setting, per-session temporary folders are not created. Instead, a user’s temporary files for all sessions on the remote computer are stored in a common Temp folder under the user’s profile folder on the remote computer.

If you disable this policy setting, per-session temporary folders are always created, even if you specify otherwise in the Terminal Services Configuration tool.

If you do not configure this policy setting, per-session temporary folders are created unless you specify otherwise in the Terminal Services Configuration tool.

At least Windows Server 2003