博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Termp Folder and its subfolders
阅读量:6687 次
发布时间:2019-06-25

本文共 2325 字,大约阅读时间需要 7 分钟。

If you open %TEMP% from the Start menu, it may open C:\Users\username\AppData\Local\Temp\1, C:\Users\username\AppData\Local\Temp\2, and so on. Each time the user logs off and back on, the number increments. The number resets after each reboot. Why are we seeing these folders being created under Temp? What would cause the operating system to create these folders?

The problem lay in the group policy(Run->gpedit.msc)

for Windows XP: Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Temporary folders 

for Windows 7 or Windows Server 2008 R2: Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desltop Session Host\Temporary folders

If you don't select Do not use temporary folders per session, then these TEMP subdirectories are created. There is also .

The corresponding registry keys are as following:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server

 
DeleteTempDirsOnExit
Type: REG_DWORD
Data value: 0x1 Enabled
Data value: 0x0 Disabled
Default data value: 0x1 Enabled
Deletes session-created temporary folders at logoff.
IdleWinStationPoolCount
Type: REG_DWORD
Data value: 0x2 Two Idle Sessions
Data value: 0x1 One Idle Sessions
Data value: 0x0 Zero Idle Sessions
Default data value: 0x2 Application Server
Default data value: 0x0 Remote Administration Server
The number of idle RDP sessions to maintain.
PerSessionTempDir
Type: REG_DWORD
Data value: 0x1 Enabled
Data value: 0x0 Disabled
Default data value: 0x1 Enabled
Use a unique temporary folder for each session.
ProductVersion
Type: REG_SZ
Data value: 5.0
Default data value: 5.0
Indicates the version of Terminal Services (not configurable).
TSAppCompat
Type: REG_DWORD
Data value: 0x1 Application Server
Data value: 0x0 Remote Administration Server
Default data value: 0x1 Application Server
Default data value: 0x0 Remote Administration Server
Uses Application Compatibility mode or not.
TSEnabled
Type: REG_DWORD
Data value: 0x1 Enabled
Data value: 0x0 Disabled
Indicates whether Terminal Services is enabled or not.
FlatTempDir
Type: REG_SZ
Data value: 0x1 Enabled
Data value: 0x0 Disabled
Default data value: 0x0 Disabled
Specifies whether or not a flat temporary folder will be used.

转载于:https://www.cnblogs.com/jenneyblog/archive/2012/08/17/TempFolder.html

你可能感兴趣的文章
python操作mysql总结
查看>>
JavaScript学习-自定义对象属性迭代器
查看>>
查看java源码显示source not found
查看>>
Linux常用经典命令
查看>>
命令行参数及全局替换程序
查看>>
Android Studio 快捷键
查看>>
hive的函数
查看>>
【Java学习笔记之十】Java中循环语句foreach使用总结及foreach写法失效的问题
查看>>
矩阵乘法2(codevs3147)
查看>>
如何修复Kindle频繁自动锁屏和解锁
查看>>
MongoDB在Windows下安装配置
查看>>
CAFFE安装(3):cuDNN v4
查看>>
hdu 1016 Prime Ring Problem
查看>>
Spring+SpringMVC+MyBatis深入学习及搭建(一)——MyBatis的基础知识
查看>>
如何把写好的文件放到提供的地址上提交代码
查看>>
Django 2.0 新特性
查看>>
Tornado Web 服务器
查看>>
精选7款绚丽的HTML5和jQuery图片动画特效
查看>>
【转载】桌面WPF中嵌入Unity3D(Standalone)引擎并实现socket通信
查看>>
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart
查看>>