Terminal Services creates a per user session temporary folder as a sub-folder of %TEMP%. This default behavior uses a hexadecimal representation of the Session ID for the folder name.
If you wish your clients to share the same %TEMP% folder, you can run the Flattemp.exe tool:
flattemp /enable - Enable flat temporary folders. flattemp /disable - Disable flat temporary folders. flattemp /query - Query current setting.NOTE: The default setting is disable.
You can also use the Terminal Services Configuration MMC snap-in:
1. Select Server Settings and double-click Use temporary folders per session.
2. In the Use temporary folder per session dialogue, select the appropriate configuration option.
NOTE: The default setting is Yes.
NOTE: The Terminal Services Configuration MMC settings are located at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server. The PerSessionTempDir value name, a REG_DWORD data type, contains a 0x1, the default, when per user session temporary folders are used. a data value of 0x0 disables per user session temporary folders.
NOTE: The Flattemp.exe settings are located at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server. The FlatTempDir string value contains a 1 if flat temporary folders are enabled. the Value Name is not present if you disable flat temporary folders.
NOTE If PerSessionTempDir is 0x1 and FlatTempDir is present, per user session temporary folders will not work.