Solved

Terminal Server sessions hanging on logoff

  • 21 July 2014
  • 3 replies
  • 75 views

Userlevel 7
Badge +56
  • Retired Webrooter
  • 6752 replies
If anyone is running WSA on a Terminal Server and having hanging issues on logoff, here's how to fix it:
 
Adding a wrsa.exe DWORD value, with no data, to the registry key:
HKLMSYSTEMCurrentControlSetControlTerminal ServerSysProcs.
 
Simply creating a .reg file with the contents below, will add this key:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]
"wrsa.exe"=dword:00000000
icon

Best answer by JohnnyS 7 April 2015, 15:59

View original

3 replies

Userlevel 5
We have discovered that key alone isn't providing the best solution for the issue. I have done some testing and the following keys together alleviate the issue:
 
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]
"wrsa.exe"=dword:00000000
 
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl]
“WaitToKillAppTimeout”=”2000”
“AutoEndTasks”=hex:0
 
We are working on a fix for this at the agent level ouside of these registry keys. We should have this fix out hopfully soon. Please keep an eye on our release notes.
I can see the key type of the first entry but i dont want to assume the other two. Can you list what type of key the last two entries are:
 
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]
DWORD: --"wrsa.exe"=dword:00000000
 
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl]
“WaitToKillAppTimeout”=”2000”  -- Is this STRING?
“AutoEndTasks”=hex:0                  -- Is this DWORD?
Userlevel 5
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]
DWORD: --"wrsa.exe"=dword:00000000
 
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl]
“WaitToKillAppTimeout”=”2000”     <--- REG_SZ
“AutoEndTasks”="1"                          <--- REG_SZ
 
Sorry for the confusion. You should set those values to what is acceptable for your environment, I recommend what I just listed above.

Reply